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