|
@@ -15,7 +15,6 @@
|
|
|
:node-key="id"
|
|
|
:data="multiple ? treeData : treeAllData"
|
|
|
:show-checkbox="multiple"
|
|
|
- :check-strictly="checkStrictly"
|
|
|
:current-node-key="!multiple ? selected : ''"
|
|
|
:highlight-current="!multiple"
|
|
|
:expand-on-click-node="false"
|
|
@@ -52,15 +51,13 @@ interface OrgTreeProps {
|
|
|
label?: string // 显示的label ==> 非必传,默认为 “label”
|
|
|
multiple?: boolean // 是否为多选 ==> 非必传,默认为 false
|
|
|
defaultValue?: any // 默认选中的值 ==> 非必传
|
|
|
- checkStrictly?: boolean
|
|
|
}
|
|
|
const loading = ref(false)
|
|
|
|
|
|
const props = withDefaults(defineProps<OrgTreeProps>(), {
|
|
|
id: 'id',
|
|
|
label: 'label',
|
|
|
- multiple: false,
|
|
|
- checkStrictly: false
|
|
|
+ multiple: false
|
|
|
})
|
|
|
|
|
|
const defaultProps = {
|