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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sone-ui-component-3.2.4",
3
- "version": "2.1.7",
3
+ "version": "2.1.8",
4
4
  "private": false,
5
5
  "main": "lib/sone-ui.common.js",
6
6
  "files": [
@@ -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
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.7',
58
+ version: '2.1.8',
59
59
  locale: locale.use,
60
60
  i18n: locale.i18n,
61
61
  install,