|
@@ -35,6 +35,7 @@
|
|
is-type
|
|
is-type
|
|
:is-color="false"
|
|
:is-color="false"
|
|
check-strictly
|
|
check-strictly
|
|
|
|
+ :h-props="treeProps"
|
|
@check="addTreeNodeCheckChange"
|
|
@check="addTreeNodeCheckChange"
|
|
@load="rightTreeLoadNode"
|
|
@load="rightTreeLoadNode"
|
|
@node-tap="rightElTreeClick"
|
|
@node-tap="rightElTreeClick"
|
|
@@ -146,7 +147,15 @@ const treeNodeLoading = () => {
|
|
|
|
|
|
|
|
|
|
const rightTree = ref(null)
|
|
const rightTree = ref(null)
|
|
-
|
|
|
|
|
|
+const treeProps = ref({
|
|
|
|
+ label: 'title',
|
|
|
|
+ children: 'children',
|
|
|
|
+ isLeaf: 'notExsitChild',
|
|
|
|
+ disabled: (data) => {
|
|
|
|
+ // 当节点类型为6时才能选择
|
|
|
|
+ return data.nodeType !== 6
|
|
|
|
+ },
|
|
|
|
+})
|
|
//监听
|
|
//监听
|
|
watch(() => [
|
|
watch(() => [
|
|
props.linkModal,
|
|
props.linkModal,
|