@lx-frontend/wrap-element-ui 1.0.3 → 1.0.4
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
|
@@ -21,7 +21,7 @@ export function useRowBgColor({ colorList, emit }: IUseRowBgColorParams) {
|
|
|
21
21
|
const setRowStyle = (scope) => {
|
|
22
22
|
const row = scope.row;
|
|
23
23
|
return {
|
|
24
|
-
backgroundColor: row.colorId ? getColorById(row.colorId) : ''
|
|
24
|
+
backgroundColor: row.__static_bg_color__ ?? (row.colorId ? getColorById(row.colorId) : '')
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
27
|
|
|
@@ -79,6 +79,8 @@ export type IDefaultOperationType = 'edit' | 'delete' | 'top'
|
|
|
79
79
|
export type ITableDataItem = {
|
|
80
80
|
colorId?: number;
|
|
81
81
|
isPinned?: boolean;
|
|
82
|
+
// 固定背景色:如果行数据中有该值,行背景色将以该值为准,优先级大于colorId指定的背景色(颜色实例不受影响)
|
|
83
|
+
__static_bg_color__?: string;
|
|
82
84
|
[k: string]: any;
|
|
83
85
|
}
|
|
84
86
|
|