doway-coms 1.9.8 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doway-coms",
3
- "version": "1.9.8",
3
+ "version": "1.9.9",
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
+ :treeDefaultExpandedKeys="treeDefaultExpandedKeys"
37
38
  @change="changeData"
38
39
  :size="size"
39
40
  :allowClear="allowClear"
@@ -255,10 +256,11 @@ export default {
255
256
  return {
256
257
  treeData: [],
257
258
  currentValue: '',
259
+ treeDefaultExpandedKeys: [],
258
260
  }
259
261
  },
260
262
  mounted() {
261
- // this.searchData()
263
+ this.searchData()
262
264
  if (this.treeData.length) {
263
265
  this.currentValue = this.row[this.linkedField]
264
266
  } else {
@@ -269,11 +271,14 @@ 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
  },
276
280
  edit(value) {
281
+ // debugger
277
282
  if (value) {
278
283
  if (this.treeData.length) {
279
284
  this.currentValue = this.row[this.linkedField]