primevue-mirror/components/lib/tree/BaseTree.vue

82 lines
1.7 KiB
Vue
Raw Normal View History

2023-05-26 11:22:08 +00:00
<script>
import BaseComponent from 'primevue/basecomponent';
import TreeStyle from 'primevue/tree/style';
2023-05-26 11:22:08 +00:00
export default {
name: 'BaseTree',
extends: BaseComponent,
props: {
value: {
type: null,
default: null
},
expandedKeys: {
type: null,
default: null
},
selectionKeys: {
type: null,
default: null
},
selectionMode: {
type: String,
default: null
},
metaKeySelection: {
type: Boolean,
default: true
},
loading: {
type: Boolean,
default: false
},
loadingIcon: {
type: String,
default: undefined
},
filter: {
type: Boolean,
default: false
},
filterBy: {
type: String,
default: 'label'
},
filterMode: {
type: String,
default: 'lenient'
},
filterPlaceholder: {
type: String,
default: null
},
filterLocale: {
type: String,
default: undefined
},
scrollHeight: {
type: String,
default: null
},
level: {
type: Number,
default: 0
},
'aria-labelledby': {
type: String,
default: null
},
'aria-label': {
type: String,
default: null
}
},
style: TreeStyle,
provide() {
return {
$parentInstance: this
};
2023-05-26 11:22:08 +00:00
}
};
</script>