doway-coms 1.9.5 → 1.9.6

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": "doway-coms",
3
- "version": "1.9.5",
3
+ "version": "1.9.6",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -34,6 +34,7 @@
34
34
  :replaceFields="replaceFields"
35
35
  :dropdownMatchSelectWidth="dropdownMatchSelectWidth"
36
36
  :treeDefaultExpandAll="treeDefaultExpandAll"
37
+ @change="changeData"
37
38
  :size="size"
38
39
  :allowClear="allowClear"
39
40
  @focus="searchData"
@@ -280,6 +281,7 @@ export default {
280
281
  * 查询数据
281
282
  */
282
283
  searchData() {
284
+ console.log(this.$refs.treeSelectView)
283
285
  let tempExp = {
284
286
  operator: 'or',
285
287
  expressions: [],
@@ -357,6 +359,12 @@ export default {
357
359
  this.$set(this.row, this.linkedField, value)
358
360
  this.$set(this.row, this.field, node.title)
359
361
  },
362
+ changeData(value) {
363
+ if (!value) {
364
+ this.$set(this.row, this.linkedField, '')
365
+ this.$set(this.row, this.field, '')
366
+ }
367
+ },
360
368
  },
361
369
  }
362
370
  </script>