sone-ui-component-3.2.4 2.1.2 → 2.1.4

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": "sone-ui-component-3.2.4",
3
- "version": "2.1.2",
3
+ "version": "2.1.4",
4
4
  "private": false,
5
5
  "main": "lib/sone-ui.common.js",
6
6
  "files": [
@@ -271,8 +271,10 @@ export default {
271
271
  };
272
272
  },
273
273
  watch: {
274
- filterText(val) {
275
- this.searchType === 'normal' ? this.$refs.tree.filter(val) : this.$emit('searchInput', val)
274
+ filterText(oldVal,newVal) {
275
+ if(oldVal!==newVal){
276
+ this.searchType === 'normal' ? this.changeFilterText(newVal) : this.$emit('searchInput', newVal)
277
+ }
276
278
  },
277
279
  treeData:{
278
280
  immediate:true,
@@ -293,6 +295,10 @@ export default {
293
295
  this.resetHandleData()
294
296
  },
295
297
  methods: {
298
+ changeFilterText(val){
299
+ this.$refs.tree.filter(val)
300
+ this.$emit('searchInput', val)
301
+ },
296
302
  handldMore(node){
297
303
  this.$emit('click-more',node.data)
298
304
  },
package/src/index.js CHANGED
@@ -55,7 +55,7 @@ if (typeof window !== 'undefined' && window.Vue) {
55
55
  }
56
56
 
57
57
  export default {
58
- version: '2.1.2',
58
+ version: '2.1.4',
59
59
  locale: locale.use,
60
60
  i18n: locale.i18n,
61
61
  install,