vsyswin-ui 0.2.94 → 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/lib/vsyswin-ui.common.js +56 -53
- package/lib/vsyswin-ui.common.js.map +1 -1
- package/lib/vsyswin-ui.umd.js +56 -53
- package/lib/vsyswin-ui.umd.js.map +1 -1
- package/lib/vsyswin-ui.umd.min.js +6 -6
- package/lib/vsyswin-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/packages/search-tree/src/zTree.vue +3 -0
package/package.json
CHANGED
|
@@ -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
|
// 设置默认选中的节点
|