bri-components 1.4.81 → 1.4.83
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 +1 -1
- package/src/components/list/DshBox/DshPanel.vue +0 -1
- package/src/components/list/DshBox/DshTable.vue +27 -3
- package/src/components/list/DshCascaderTable.vue +1 -1
- package/src/components/list/mixins/tableBaseMixin.js +5 -10
- package/src/components/list/mixins/treeTableBaseMixin.js +0 -1
- package/src/components/small/BriButton.vue +1 -1
package/package.json
CHANGED
|
@@ -83,9 +83,33 @@
|
|
|
83
83
|
return {
|
|
84
84
|
...operationItem,
|
|
85
85
|
width: operationItem.width || getOperationItemMaxWidth(operationItem),
|
|
86
|
-
style:
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
style: {
|
|
87
|
+
...(
|
|
88
|
+
(operationItem._name_ || operationItem.name).split("/").length > 1
|
|
89
|
+
? { width: `${getOperationItemMaxWidth(operationItem)}px` }
|
|
90
|
+
: {}
|
|
91
|
+
),
|
|
92
|
+
...(
|
|
93
|
+
typeof operationItem.style === "object"
|
|
94
|
+
? operationItem.style
|
|
95
|
+
: typeof operationItem.style === "string"
|
|
96
|
+
? operationItem.style.split(";").reduce((styleObj, styleItem) => {
|
|
97
|
+
if (styleItem) {
|
|
98
|
+
const property = styleItem.split(":")[0];
|
|
99
|
+
const val = styleItem.split(":")[1];
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
...styleObj,
|
|
103
|
+
[property]: val
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
return styleObj;
|
|
108
|
+
}
|
|
109
|
+
}, {})
|
|
110
|
+
: {}
|
|
111
|
+
)
|
|
112
|
+
}
|
|
89
113
|
};
|
|
90
114
|
});
|
|
91
115
|
},
|
|
@@ -451,18 +451,13 @@ export default {
|
|
|
451
451
|
.map(rowItem => rowItem._id)
|
|
452
452
|
.filter(id => !!id);
|
|
453
453
|
},
|
|
454
|
-
// 渲染过的行
|
|
455
|
-
renderedListData () {
|
|
456
|
-
return this.allListData.filter(rowItem => {
|
|
457
|
-
this.dealSearchShow(rowItem);
|
|
458
|
-
|
|
459
|
-
return rowItem.__isRendered__;
|
|
460
|
-
});
|
|
461
|
-
},
|
|
462
454
|
// 全部数据 或 筛选时符合条件的数据
|
|
463
455
|
showListData () {
|
|
464
|
-
return this.
|
|
465
|
-
.filter(rowItem =>
|
|
456
|
+
return this.allListData
|
|
457
|
+
.filter(rowItem => {
|
|
458
|
+
this.dealSearchShow(rowItem);
|
|
459
|
+
return rowItem.__isRendered__ && !!rowItem[this.controlShowKey];
|
|
460
|
+
})
|
|
466
461
|
.map((rowItem, rowIndex) => {
|
|
467
462
|
rowItem.__index__ = rowIndex + 1;
|
|
468
463
|
return rowItem;
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
return {
|
|
57
|
-
class: ["cancel", "
|
|
57
|
+
class: ["cancel", "errorLine", "primaryLine", "linkText", "primaryText", "errorText"].includes(defaultType) ? `ivu-btn-${defaultType}` : "",
|
|
58
58
|
...this.propsObj,
|
|
59
59
|
btnType: setType,
|
|
60
60
|
customIcon: this.propsObj.customIcon ? `bico-font ${this.propsObj.customIcon}` : undefined
|