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/Notice.md +106 -0
- package/lib/sone-ui.common.js +83 -74
- package/lib/sone-ui.common.js.map +1 -1
- package/lib/sone-ui.umd.js +83 -74
- 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/table/src/main.vue +7 -0
- package/packages/tree/src/main.vue +4 -2
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -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
|