vsyswin-ui 0.2.57 → 0.2.58

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.57",
3
+ "version": "0.2.58",
4
4
  "main": "lib/vsyswin-ui.umd.min.js",
5
5
  "private": false,
6
6
  "description": "Vue2.x的应用组件库.",
@@ -2,8 +2,16 @@
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" size="small" :placeholder="placeholder" @keyup.enter.native="search"
6
- v-model.trim="keyword" @input="auto && search" @clear="search" clearable>
5
+ <el-input
6
+ class="header-filter-input"
7
+ size="small"
8
+ :placeholder="placeholder"
9
+ @keyup.enter.native="search"
10
+ v-model.trim="keyword"
11
+ @input="auto && search"
12
+ @clear="search"
13
+ clearable
14
+ >
7
15
  <el-button type="primary" slot="append" icon="el-icon-search" @click="search()"></el-button>
8
16
  </el-input>
9
17
  </slot>
@@ -40,8 +48,13 @@ export default {
40
48
  default: false
41
49
  }
42
50
  },
51
+ watch: {
52
+ value(nVal) {
53
+ this.keyword = nVal
54
+ }
55
+ },
43
56
  methods: {
44
- search: debounce(200, function () {
57
+ search: debounce(200, function() {
45
58
  // 执行搜索事件
46
59
  this.$emit('input', this.keyword)
47
60
  this.$emit('search', this.keyword)