doway-coms 1.9.7 → 1.9.8

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.7",
3
+ "version": "1.9.8",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -258,7 +258,7 @@ export default {
258
258
  }
259
259
  },
260
260
  mounted() {
261
- this.searchData()
261
+ // this.searchData()
262
262
  if (this.treeData.length) {
263
263
  this.currentValue = this.row[this.linkedField]
264
264
  } else {
@@ -273,6 +273,15 @@ export default {
273
273
  this.currentValue = this.value
274
274
  }
275
275
  },
276
+ edit(value) {
277
+ if (value) {
278
+ if (this.treeData.length) {
279
+ this.currentValue = this.row[this.linkedField]
280
+ } else {
281
+ this.currentValue = this.value
282
+ }
283
+ }
284
+ },
276
285
  },
277
286
  computed: {},
278
287
  methods: {