vsyswin-ui 0.2.93 → 0.2.95

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": "vsyswin-ui",
3
- "version": "0.2.93",
3
+ "version": "0.2.95",
4
4
  "main": "lib/vsyswin-ui.umd.min.js",
5
5
  "private": false,
6
6
  "description": "Vue2.x的应用组件库.",
@@ -8,6 +8,7 @@
8
8
  type="text"
9
9
  v-model.trim="keyword"
10
10
  class="query-input"
11
+ ref='queryInputRef'
11
12
  :placeholder="placeholder"
12
13
  @focus="onQueryInputFocus"
13
14
  @blur="onQueryInputBlur"
@@ -186,6 +187,7 @@ export default {
186
187
  // 如果是搜索展开所有
187
188
  this.ztreeObj.expandAll(true)
188
189
  }
190
+ this.$refs.queryInputRef.focus()
189
191
  })
190
192
  },
191
193
  deep: true,
@@ -204,6 +206,7 @@ export default {
204
206
  onSearchTree: debounce(200, function() {
205
207
  // 根据关键字搜索树
206
208
  this.$emit('searchTree', this.keyword)
209
+ this.$refs.queryInputRef.focus()
207
210
  }),
208
211
  setSelectedNode(selectedKey, noEmit) {
209
212
  // 设置默认选中的节点
@@ -520,7 +520,7 @@ export default {
520
520
  }, 0);
521
521
  }
522
522
  if (this.decimalNum < 0) {
523
- sums[index] = (+sums[index]);
523
+ // sums[index] = sums[index];
524
524
  } else {
525
525
  sums[index] = (+sums[index]).toFixed(this.decimalNum);
526
526
  }