three-trees-ui 1.0.8 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "three-trees-ui",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "publicPath": "/ui",
5
5
  "author": "hotent",
6
6
  "private": false,
@@ -64,9 +64,13 @@
64
64
  const triggerField = triggerPath[triggerPath.length - 1]
65
65
  // 修复子表初始化时会触发关联查询的问题
66
66
  _this.subOldValueMap[item.subPath] =
67
- utils.getValueByPath(
68
- _this.formInst,
69
- 'data.' + item.subPath
67
+ JSON.parse(
68
+ JSON.stringify(
69
+ utils.getValueByPath(
70
+ _this.formInst,
71
+ 'data.' + item.subPath
72
+ )
73
+ )
70
74
  ) || []
71
75
  item.triggerPath = triggerPath
72
76
  item.triggerField = triggerField
@@ -267,13 +267,18 @@
267
267
  return (
268
268
  this.data &&
269
269
  this.data.length < 1 &&
270
- this.treeData && this.treeData.length < 1
270
+ this.treeData &&
271
+ this.treeData.length < 1
271
272
  )
272
273
  },
273
274
  },
274
275
  watch: {
275
276
  filterText(val) {
276
- this.$refs.elTree.filter(val)
277
+ if (this.lazy) {
278
+ this.$emit('loadALL', val)
279
+ } else {
280
+ this.$refs.elTree.filter(val)
281
+ }
277
282
  },
278
283
  defaultCheckedKeys(val) {
279
284
  this.$refs.elTree.setCheckedKeys(val)