feat: 标准库 编辑对应属性字段 体系树结构 流程
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user