修复setValue自定义数据时 操作报错

This commit is contained in:
maplemei
2019-12-04 13:21:56 +08:00
parent c6a5080161
commit 54a7bc73fd
4 changed files with 22 additions and 34 deletions

View File

@@ -55,7 +55,7 @@ class Framework extends Component{
}
exchangeValue(arr, dataObj = this.state.dataObj){
let list = arr.map(sel => typeof sel === 'object' ? sel : dataObj[sel]).filter(a => a)
let list = arr.map(sel => typeof sel === 'object' ? { ...sel, __node: {} } : dataObj[sel]).filter(a => a)
let filterGroup = true, { tree } = this.props;
if(tree.show && tree.strict === false){
filterGroup = false;