primevue-mirror/components/lib/treeselect/BaseTreeSelect.vue

97 lines
2.0 KiB
Vue
Raw Normal View History

2023-05-26 11:58:40 +00:00
<script>
import BaseComponent from 'primevue/basecomponent';
import TreeSelectStyle from 'primevue/treeselect/style';
2023-05-26 11:58:40 +00:00
export default {
name: 'BaseTreeSelect',
extends: BaseComponent,
props: {
modelValue: null,
options: Array,
scrollHeight: {
type: String,
2024-03-26 14:21:39 +00:00
default: '14rem'
2023-05-26 11:58:40 +00:00
},
placeholder: {
type: String,
default: null
},
invalid: {
type: Boolean,
default: false
},
2024-02-02 13:26:27 +00:00
variant: {
type: String,
default: null
},
2023-05-26 11:58:40 +00:00
disabled: {
type: Boolean,
default: false
},
tabindex: {
type: Number,
default: null
},
selectionMode: {
type: String,
default: 'single'
},
appendTo: {
type: [String, Object],
2023-05-26 11:58:40 +00:00
default: 'body'
},
emptyMessage: {
type: String,
default: null
},
display: {
type: String,
default: 'comma'
},
metaKeySelection: {
type: Boolean,
default: false
2023-05-26 11:58:40 +00:00
},
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: {
2023-05-26 11:58:40 +00:00
type: String,
default: null
},
ariaLabel: {
2023-05-26 11:58:40 +00:00
type: String,
default: null
}
},
style: TreeSelectStyle,
provide() {
return {
$pcTreeSelect: this,
$parentInstance: this
};
2023-05-26 11:58:40 +00:00
}
};
</script>