sone-ui-component-3.2.4 2.1.7 → 2.1.8
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/Notice.md +106 -0
- package/lib/sone-ui.common.js +71 -69
- package/lib/sone-ui.common.js.map +1 -1
- package/lib/sone-ui.umd.js +71 -69
- package/lib/sone-ui.umd.js.map +1 -1
- package/lib/sone-ui.umd.min.js +3 -3
- package/lib/sone-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/packages/tree/src/main.vue +4 -2
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -247,7 +247,8 @@ export default {
|
|
|
247
247
|
dragWidth:{
|
|
248
248
|
type:Boolean,
|
|
249
249
|
default:false
|
|
250
|
-
}
|
|
250
|
+
},
|
|
251
|
+
allowShowLabel:{type: String, default: '有些需要一直展示有些字段,用这个字来控制'}
|
|
251
252
|
},
|
|
252
253
|
data() {
|
|
253
254
|
return {
|
|
@@ -296,6 +297,7 @@ export default {
|
|
|
296
297
|
},
|
|
297
298
|
methods: {
|
|
298
299
|
changeFilterText(val){
|
|
300
|
+
console.log(val)
|
|
299
301
|
this.$refs.tree.filter(val)
|
|
300
302
|
this.$emit('searchInput', val)
|
|
301
303
|
},
|
|
@@ -385,7 +387,7 @@ export default {
|
|
|
385
387
|
filterNode(value, data) {
|
|
386
388
|
if (this.searchType !== 'normal') return
|
|
387
389
|
if (!value) return true;
|
|
388
|
-
return data[this.treeProps.label].indexOf(value) !== -1;
|
|
390
|
+
return data[this.treeProps.label].indexOf(value) !== -1||data[this.treeProps.label]===this.allowShowLabel;
|
|
389
391
|
},
|
|
390
392
|
handleNodeClick(data) {
|
|
391
393
|
this.handleMenuFlag = false
|