@wx-design/components 0.6.3 → 0.6.5
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/es/core/Table/index.vue.d.ts +2 -0
- package/es/index.mjs +220 -200
- package/es/style.css +1 -1
- package/lib/core/Table/index.vue.d.ts +2 -0
- package/lib/index.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/types/table/column.d.ts +8 -2
- package/types/table/table.d.ts +8 -0
package/package.json
CHANGED
package/types/table/column.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export interface SabColumnSlots<D = VxeTableDataRow> {
|
|
|
16
16
|
params: VxeColumnSlotTypes.DefaultSlotParams<D> & {
|
|
17
17
|
column: SabColumnProps<D>;
|
|
18
18
|
},
|
|
19
|
-
editorProps
|
|
19
|
+
editorProps?: SabCellEditorParams
|
|
20
20
|
) => any)
|
|
21
21
|
| string;
|
|
22
22
|
/**
|
|
@@ -62,7 +62,7 @@ export interface SabColumnSlots<D = VxeTableDataRow> {
|
|
|
62
62
|
params: VxeColumnSlotTypes.EditSlotParams<D> & {
|
|
63
63
|
column: SabColumnProps<D>;
|
|
64
64
|
},
|
|
65
|
-
editorProps
|
|
65
|
+
editorProps?: SabCellEditorParams
|
|
66
66
|
) => any)
|
|
67
67
|
| string;
|
|
68
68
|
/**
|
|
@@ -112,6 +112,12 @@ export type DynamicCellProps<D = VxeTableDataRow> = {
|
|
|
112
112
|
| VxeColumnSlotTypes.DefaultSlotParams<D>
|
|
113
113
|
| VxeColumnSlotTypes.EditSlotParams<D>
|
|
114
114
|
): SabCellType;
|
|
115
|
+
// 动态传递对应 editorProps
|
|
116
|
+
getEditorProps?(
|
|
117
|
+
scope:
|
|
118
|
+
| VxeColumnSlotTypes.DefaultSlotParams<D>
|
|
119
|
+
| VxeColumnSlotTypes.EditSlotParams<D>
|
|
120
|
+
): Partial<SabCellEditorParams>;
|
|
115
121
|
};
|
|
116
122
|
|
|
117
123
|
// 单元格编辑器参数
|
package/types/table/table.d.ts
CHANGED
|
@@ -22,6 +22,14 @@ export type SabTableProps<D = VxeTableDataRow> = VxeTableProps<D> & {
|
|
|
22
22
|
autoColumnWidth?: boolean;
|
|
23
23
|
// 单击是否选中当前行
|
|
24
24
|
selectWhenClickRow?: boolean;
|
|
25
|
+
// 行背景高亮,默认 true
|
|
26
|
+
// 如果 false, 那么
|
|
27
|
+
// row-config.isCurrent = false
|
|
28
|
+
// row-config.isHover = false
|
|
29
|
+
// checkbox-config.highlight, 背景为透明
|
|
30
|
+
rowBackgroundHighlight?: boolean;
|
|
31
|
+
// TODO: 行边框高亮, 默认 true
|
|
32
|
+
rowBorderHighlight?: boolean;
|
|
25
33
|
}
|
|
26
34
|
|
|
27
35
|
// 表格插槽
|