sone-ui-component-3.2.4 2.1.6 → 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.6",
3
+ "version": "2.1.8",
4
4
  "private": false,
5
5
  "main": "lib/sone-ui.common.js",
6
6
  "files": [
@@ -68,6 +68,8 @@
68
68
  :border="border"
69
69
  :sum-text="option.sumText"
70
70
  :summary-method="summaryMethod"
71
+ :lazy="lazy"
72
+ :load="load"
71
73
  @cell-mouse-enter="cellMouseEnter"
72
74
  @cell-mouse-leave="cellMouseLeave"
73
75
  @filter-change="filterChange"
@@ -696,6 +698,10 @@ import IconButton from "sone-ui-component/packages/IconButton/index.vue";
696
698
  type: Boolean,
697
699
  default: false,
698
700
  },
701
+ lazy: {
702
+ type: Boolean,
703
+ default: false,
704
+ },
699
705
  option: {
700
706
  type: Object,
701
707
  default: () => {
@@ -780,6 +786,7 @@ import IconButton from "sone-ui-component/packages/IconButton/index.vue";
780
786
  },
781
787
  spanMethod: Function,
782
788
  indexMethod: Function,
789
+ load: Function,
783
790
  // 默认显示按钮图标加提示,
784
791
  tooltipDisabled: {
785
792
  type: Boolean,
@@ -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.6',
58
+ version: '2.1.8',
59
59
  locale: locale.use,
60
60
  i18n: locale.i18n,
61
61
  install,