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/lib/sone-ui.common.js +16 -10
- package/lib/sone-ui.common.js.map +1 -1
- package/lib/sone-ui.umd.js +16 -10
- package/lib/sone-ui.umd.js.map +1 -1
- package/lib/sone-ui.umd.min.js +2 -2
- package/lib/sone-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/packages/tree/src/main.vue +8 -2
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -271,8 +271,10 @@ export default {
|
|
|
271
271
|
};
|
|
272
272
|
},
|
|
273
273
|
watch: {
|
|
274
|
-
filterText(
|
|
275
|
-
|
|
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
|
},
|