96 lines
2.0 KiB
Vue
96 lines
2.0 KiB
Vue
<script>
|
|
import BaseComponent from 'primevue/basecomponent';
|
|
import TreeSelectStyle from 'primevue/treeselect/style';
|
|
|
|
export default {
|
|
name: 'BaseTreeSelect',
|
|
extends: BaseComponent,
|
|
props: {
|
|
modelValue: null,
|
|
options: Array,
|
|
scrollHeight: {
|
|
type: String,
|
|
default: '400px'
|
|
},
|
|
placeholder: {
|
|
type: String,
|
|
default: null
|
|
},
|
|
variant: {
|
|
type: String,
|
|
default: 'outlined'
|
|
},
|
|
invalid: {
|
|
type: Boolean,
|
|
default: false
|
|
},
|
|
disabled: {
|
|
type: Boolean,
|
|
default: false
|
|
},
|
|
tabindex: {
|
|
type: Number,
|
|
default: null
|
|
},
|
|
selectionMode: {
|
|
type: String,
|
|
default: 'single'
|
|
},
|
|
appendTo: {
|
|
type: [String, Object],
|
|
default: 'body'
|
|
},
|
|
emptyMessage: {
|
|
type: String,
|
|
default: null
|
|
},
|
|
display: {
|
|
type: String,
|
|
default: 'comma'
|
|
},
|
|
metaKeySelection: {
|
|
type: Boolean,
|
|
default: false
|
|
},
|
|
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
|
|
},
|
|
panelProps: {
|
|
type: null,
|
|
default: null
|
|
},
|
|
ariaLabelledby: {
|
|
type: String,
|
|
default: null
|
|
},
|
|
ariaLabel: {
|
|
type: String,
|
|
default: null
|
|
}
|
|
},
|
|
style: TreeSelectStyle,
|
|
provide() {
|
|
return {
|
|
$parentInstance: this
|
|
};
|
|
}
|
|
};
|
|
</script>
|