feat: ncc制造,树参照包含下级需求,checkStrictly 动态改变后,拿到组件内部属性 this.checkedKeys

This commit is contained in:
yangchch6 2020-04-16 14:28:38 +08:00
parent 31a8f155fe
commit 5335f5730e
4 changed files with 13 additions and 1 deletions

View File

@ -115,6 +115,10 @@ var Tree = function (_React$Component) {
prevProps: this.props
});
}
// ncc制造树参照包含下级需求checkStrictly 动态改变后,拿到组件内部属性 this.checkedKeys
if (this.props._getTreeObj) {
this.props._getTreeObj(this);
}
// 启用懒加载,计算树节点真实高度
if (!lazyLoad) return;
var treenodes = this.tree.querySelectorAll('.u-tree-treenode-close')[0];

4
dist/demo.js vendored
View File

@ -34397,6 +34397,10 @@
prevProps: this.props
});
}
// ncc制造树参照包含下级需求checkStrictly 动态改变后,拿到组件内部属性 this.checkedKeys
if (this.props._getTreeObj) {
this.props._getTreeObj(this);
}
// 启用懒加载,计算树节点真实高度
if (!lazyLoad) return;
var treenodes = this.tree.querySelectorAll('.u-tree-treenode-close')[0];

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -66,6 +66,10 @@ class Tree extends React.Component {
prevProps: this.props
})
}
// ncc制造树参照包含下级需求checkStrictly 动态改变后,拿到组件内部属性 this.checkedKeys
if(this.props._getTreeObj){
this.props._getTreeObj(this);
}
// 启用懒加载,计算树节点真实高度
if(!lazyLoad) return;
const treenodes = this.tree.querySelectorAll('.u-tree-treenode-close')[0];