vsyswin-ui 0.2.55 → 0.2.56
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 +13 -7
- package/lib/vsyswin-ui.common.js.map +1 -1
- package/lib/vsyswin-ui.umd.js +13 -7
- package/lib/vsyswin-ui.umd.js.map +1 -1
- package/lib/vsyswin-ui.umd.min.js +1 -1
- package/lib/vsyswin-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/packages/simple-search-bar/src/simple-search-bar.vue +8 -2
package/package.json
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
<div class="header-filter">
|
|
3
3
|
<div class="header-filter-input">
|
|
4
4
|
<slot name="filterInput">
|
|
5
|
-
<el-input class="header-filter-input"
|
|
5
|
+
<el-input class="header-filter-input" size="small" :placeholder="placeholder" @keyup.enter.native="search"
|
|
6
|
+
v-model.trim="keyword" @input="auto && search" @clear="search" clearable>
|
|
6
7
|
<el-button type="primary" slot="append" icon="el-icon-search" @click="search()"></el-button>
|
|
7
8
|
</el-input>
|
|
8
9
|
</slot>
|
|
@@ -32,10 +33,15 @@ export default {
|
|
|
32
33
|
placeholder: {
|
|
33
34
|
type: String,
|
|
34
35
|
default: '请输入搜索关键字'
|
|
36
|
+
},
|
|
37
|
+
// 在input框输入是否自动搜索->也即,是否会自动触发@input事件
|
|
38
|
+
auto: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: false
|
|
35
41
|
}
|
|
36
42
|
},
|
|
37
43
|
methods: {
|
|
38
|
-
search: debounce(200, function() {
|
|
44
|
+
search: debounce(200, function () {
|
|
39
45
|
// 执行搜索事件
|
|
40
46
|
this.$emit('input', this.keyword)
|
|
41
47
|
this.$emit('search', this.keyword)
|