primevue-mirror/components/lib/cascadeselect/BaseCascadeSelect.vue

124 lines
2.7 KiB
Vue
Raw Normal View History

2023-05-26 14:33:50 +00:00
<script>
import BaseComponent from 'primevue/basecomponent';
import CascadeSelectStyle from 'primevue/cascadeselect/style';
2023-05-26 14:33:50 +00:00
export default {
name: 'BaseCascadeSelect',
extends: BaseComponent,
props: {
modelValue: null,
options: Array,
optionLabel: null,
optionValue: null,
optionDisabled: null,
optionGroupLabel: null,
optionGroupChildren: null,
placeholder: String,
disabled: Boolean,
dataKey: null,
inputId: {
type: String,
default: null
},
inputClass: {
type: [String, Object],
default: null
},
inputStyle: {
type: Object,
default: null
},
inputProps: {
type: null,
default: null
},
panelClass: {
type: [String, Object],
default: null
},
panelStyle: {
type: Object,
default: null
},
panelProps: {
type: null,
default: null
},
appendTo: {
type: [String, Object],
2023-05-26 14:33:50 +00:00
default: 'body'
},
loading: {
type: Boolean,
default: false
},
dropdownIcon: {
type: String,
default: undefined
},
loadingIcon: {
type: String,
default: undefined
},
optionGroupIcon: {
type: String,
default: undefined
},
autoOptionFocus: {
type: Boolean,
default: false
2023-05-26 14:33:50 +00:00
},
selectOnFocus: {
type: Boolean,
default: false
},
focusOnHover: {
type: Boolean,
default: true
},
2023-05-26 14:33:50 +00:00
searchLocale: {
type: String,
default: undefined
},
searchMessage: {
type: String,
default: null
},
selectionMessage: {
type: String,
default: null
},
emptySelectionMessage: {
type: String,
default: null
},
emptySearchMessage: {
type: String,
default: null
},
emptyMessage: {
type: String,
default: null
},
tabindex: {
type: Number,
default: 0
},
ariaLabelledby: {
2023-05-26 14:33:50 +00:00
type: String,
default: null
},
ariaLabel: {
2023-05-26 14:33:50 +00:00
type: String,
default: null
}
},
style: CascadeSelectStyle,
provide() {
return {
$parentInstance: this
};
2023-05-26 14:33:50 +00:00
}
};
</script>