for循环对象

for (const { name, prop, data, checkbox } of _this.childDialog) {
  if (name === _prop) {
    _this.childInfo.childData = data
    _this.childInfo.childProp = prop
    _this.childInfo.childName = name
    _this.childInfo.childCheck = checkbox
    _this.childrenShow = true
    _this.$nextTick(() => {
      _this.$refs.tree.setCheckedKeys(_this.realData[_this.childInfo.childProp].split(','))
    })
  }
}

版权声明:本文为m0_58879602原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。