feat: 标准库 编辑对应属性字段 体系树结构 流程

This commit is contained in:
super_liu
2021-07-11 15:47:50 +08:00
parent 2ae9d80a16
commit 1ab0345cce
8 changed files with 601 additions and 145 deletions
+8
View File
@@ -22,6 +22,7 @@
<el-tree class="common-tree" :style="style" ref="tree" :data="data" :props="defaultProps"
:show-checkbox="multiple"
:node-key="nodeKey"
:disabled="disabled"
:check-strictly="checkStrictly"
default-expand-all
:expand-on-click-node="false"
@@ -77,6 +78,12 @@
return false;
}
},
disabled: {
type: Boolean,
default () {
return false;
}
},
// 默认选中的节点key数组
checkedKeys: {
type: Array,
@@ -110,6 +117,7 @@
};
},
mounted () {
debugger
if (this.checkedKeys.length > 0) {
if (this.multiple) {
this.defaultCheckedKeys = this.checkedKeys;