primevue-mirror/components/lib/picklist/BasePickList.vue

78 lines
1.6 KiB
Vue
Raw Normal View History

2023-06-02 15:43:30 +00:00
<script>
import BaseComponent from 'primevue/basecomponent';
import PickListStyle from 'primevue/picklist/style';
2023-06-02 15:43:30 +00:00
export default {
name: 'BasePickList',
extends: BaseComponent,
props: {
modelValue: {
type: Array,
default: () => [[], []]
},
selection: {
type: Array,
default: () => [[], []]
},
dataKey: {
type: String,
default: null
},
listStyle: {
type: null,
default: null
},
metaKeySelection: {
type: Boolean,
default: false
2023-06-02 15:43:30 +00:00
},
autoOptionFocus: {
type: Boolean,
2024-01-24 07:02:00 +00:00
default: true
},
focusOnHover: {
type: Boolean,
default: true
},
2023-06-02 15:43:30 +00:00
responsive: {
type: Boolean,
default: true
},
breakpoint: {
type: String,
default: '960px'
},
stripedRows: {
type: Boolean,
default: false
},
showSourceControls: {
type: Boolean,
default: true
},
showTargetControls: {
type: Boolean,
default: true
},
2024-03-21 13:21:01 +00:00
severity: {
type: String,
2024-03-22 08:57:54 +00:00
default: 'secondary'
2023-06-02 15:43:30 +00:00
},
tabindex: {
type: Number,
default: 0
2024-03-21 13:52:26 +00:00
},
disabled: {
type: Boolean,
default: false
2023-06-02 15:43:30 +00:00
}
},
style: PickListStyle,
2023-06-02 15:43:30 +00:00
provide() {
return {
$parentInstance: this
};
}
};
</script>