doway-coms 1.9.7 → 1.9.9
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
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
:replaceFields="replaceFields"
|
|
35
35
|
:dropdownMatchSelectWidth="dropdownMatchSelectWidth"
|
|
36
36
|
:treeDefaultExpandAll="treeDefaultExpandAll"
|
|
37
|
+
:treeDefaultExpandedKeys="treeDefaultExpandedKeys"
|
|
37
38
|
@change="changeData"
|
|
38
39
|
:size="size"
|
|
39
40
|
:allowClear="allowClear"
|
|
@@ -255,6 +256,7 @@ export default {
|
|
|
255
256
|
return {
|
|
256
257
|
treeData: [],
|
|
257
258
|
currentValue: '',
|
|
259
|
+
treeDefaultExpandedKeys: [],
|
|
258
260
|
}
|
|
259
261
|
},
|
|
260
262
|
mounted() {
|
|
@@ -269,10 +271,22 @@ export default {
|
|
|
269
271
|
treeData(val) {
|
|
270
272
|
if (this.treeData.length) {
|
|
271
273
|
this.currentValue = this.row[this.linkedField]
|
|
274
|
+
this.treeDefaultExpandedKeys = []
|
|
275
|
+
this.treeDefaultExpandedKeys.push(this.currentValue)
|
|
272
276
|
} else {
|
|
273
277
|
this.currentValue = this.value
|
|
274
278
|
}
|
|
275
279
|
},
|
|
280
|
+
edit(value) {
|
|
281
|
+
// debugger
|
|
282
|
+
if (value) {
|
|
283
|
+
if (this.treeData.length) {
|
|
284
|
+
this.currentValue = this.row[this.linkedField]
|
|
285
|
+
} else {
|
|
286
|
+
this.currentValue = this.value
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
},
|
|
276
290
|
},
|
|
277
291
|
computed: {},
|
|
278
292
|
methods: {
|