@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wx-design/components",
3
- "version": "0.6.3",
3
+ "version": "0.6.5",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -16,7 +16,7 @@ export interface SabColumnSlots<D = VxeTableDataRow> {
16
16
  params: VxeColumnSlotTypes.DefaultSlotParams<D> & {
17
17
  column: SabColumnProps<D>;
18
18
  },
19
- editorProps: SabCellEditorParams
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: SabCellEditorParams
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
  // 单元格编辑器参数
@@ -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
  // 表格插槽