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

132 lines
2.9 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,
2024-01-31 08:02:53 +00:00
variant: {
type: String,
2024-02-02 11:46:26 +00:00
default: null
2024-01-31 08:02:53 +00:00
},
invalid: {
type: Boolean,
default: false
},
2023-05-26 14:33:50 +00:00
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>