Refactor #5437 - For scrollHeight

This commit is contained in:
tugcekucukoglu 2024-03-26 17:21:39 +03:00
parent cb6c2fffef
commit 0b5ac272ef
17 changed files with 41 additions and 11 deletions

View file

@ -46,6 +46,10 @@ export default {
type: Boolean,
default: false
},
scrollHeight: {
type: String,
default: '14rem'
},
showSourceControls: {
type: Boolean,
default: true

View file

@ -341,6 +341,11 @@ export interface PickListProps {
* @defaultValue 960px
*/
breakpoint?: string | undefined;
/**
* Height of the viewport, a scrollbar is defined if height of list exceeds this value.
* @defaultValue 14rem
*/
scrollHeight?: string | undefined;
/**
* Whether to displays rows with alternating colors.
* @defaultValue false

View file

@ -41,6 +41,7 @@
multiple
:metaKeySelection="metaKeySelection"
:listStyle="listStyle"
:scrollHeight="scrollHeight"
:tabindex="sourceList && sourceList.length > 0 ? tabindex : -1"
:dataKey="dataKey"
:autoOptionFocus="autoOptionFocus"
@ -104,6 +105,7 @@
multiple
:metaKeySelection="metaKeySelection"
:listStyle="listStyle"
:scrollHeight="scrollHeight"
:tabindex="targetList && targetList.length > 0 ? tabindex : -1"
:dataKey="dataKey"
:autoOptionFocus="autoOptionFocus"