primevue-mirror/components/lib/listbox/BaseListbox.vue

107 lines
2.3 KiB
Vue

<script>
import BaseComponent from 'primevue/basecomponent';
import ListboxStyle from 'primevue/listbox/style';
export default {
name: 'BaseListbox',
extends: BaseComponent,
props: {
modelValue: null,
options: Array,
optionLabel: null,
optionValue: null,
optionDisabled: null,
optionGroupLabel: null,
optionGroupChildren: null,
listStyle: null,
invalid: {
type: Boolean,
default: false
},
disabled: {
type: Boolean,
default: false
},
dataKey: null,
multiple: {
type: Boolean,
default: false
},
metaKeySelection: {
type: Boolean,
default: false
},
filter: Boolean,
filterPlaceholder: String,
filterLocale: String,
filterMatchMode: {
type: String,
default: 'contains'
},
filterFields: {
type: Array,
default: null
},
filterInputProps: null,
virtualScrollerOptions: {
type: Object,
default: null
},
autoOptionFocus: {
type: Boolean,
default: true
},
selectOnFocus: {
type: Boolean,
default: false
},
focusOnHover: {
type: Boolean,
default: true
},
filterMessage: {
type: String,
default: null
},
selectionMessage: {
type: String,
default: null
},
emptySelectionMessage: {
type: String,
default: null
},
emptyFilterMessage: {
type: String,
default: null
},
emptyMessage: {
type: String,
default: null
},
filterIcon: {
type: String,
default: undefined
},
tabindex: {
type: Number,
default: 0
},
ariaLabel: {
type: String,
default: null
},
ariaLabelledby: {
type: String,
default: null
}
},
style: ListboxStyle,
provide() {
return {
$parentInstance: this
};
}
};
</script>