@wx-design/components 1.1.15 → 1.1.16

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": "1.1.15",
3
+ "version": "1.1.16",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -5,7 +5,7 @@ import {
5
5
  VxeColumnSlotTypes,
6
6
  VxeTableInstance,
7
7
  VxeTableConstructor,
8
- VxeTablePrivateMethods
8
+ VxeTablePrivateMethods,
9
9
  } from "vxe-table";
10
10
  import type {
11
11
  InputProps,
@@ -94,6 +94,12 @@ export interface SabColumnSlots<D = VxeTableDataRow> {
94
94
  }
95
95
  ) => any)
96
96
  | string;
97
+ /**
98
+ * TODO: 自定义popover的单元格内容
99
+ */
100
+ popoverCell:
101
+ | ((params: VxeColumnSlotTypes.DefaultSlotParams<D>) => any)
102
+ | string;
97
103
  }
98
104
 
99
105
  // 单选框属性
@@ -178,9 +184,9 @@ export type BooleanEditorProps<D = VxeTableDataRow> = Partial<SwitchProps> &
178
184
  // 图片类型参数
179
185
  export type ImageViewProps<D = VxeTableDataRow> = Partial<ImageProps> & {
180
186
  // 在表格内直接展示图片
181
- showThumb?: boolean
187
+ showThumb?: boolean;
182
188
  // 最多显示几张图片,默认3张, -1则不限制
183
- maxCount?: number
189
+ maxCount?: number;
184
190
  };
185
191
 
186
192
  // 单元格编辑器参数
@@ -198,7 +204,7 @@ export type SabCellEditorParams =
198
204
  // 弹出层配置
199
205
  export type SabPopoverParams = Partial<PopoverProps & DialogProps> & {
200
206
  // 触发元素, cell 整个单元格,buttton 按钮,默认 button
201
- triggerEl?: 'button' | 'cell'
207
+ triggerEl?: "button" | "cell";
202
208
  // 触发事件,默认 click
203
209
  // 如果 showType === dialog 则只支持 click
204
210
  trigger?: "click" | "hover" | "focus" | "contextmenu";
@@ -258,7 +264,7 @@ export type SabColumnProps<D = VxeTableDataRow> = VxeColumnProps<D> & {
258
264
  // vxe-table 表格宽度设置 auto 会是默认自适应内容宽度
259
265
  // sab-table 做了处理,把 auto 置为空字符串了
260
266
  // 如果不需要置空,请开始这个开关
261
- enableAutoWidth?: boolean
267
+ enableAutoWidth?: boolean;
262
268
 
263
269
  // 其他
264
270
  // 参与批量操作, 如果单元格支持编辑的话,默认 true,否则false
@@ -268,7 +274,11 @@ export type SabColumnProps<D = VxeTableDataRow> = VxeColumnProps<D> & {
268
274
  // 参与表格尾部汇总
269
275
  withSummary?: boolean;
270
276
  // 自定义表格尾部数据汇总处理
271
- footerMethod?(column: SabColumnProps<D>, data: D[], $table: VxeTableConstructor<any> & VxeTablePrivateMethods<any>): any;
277
+ footerMethod?(
278
+ column: SabColumnProps<D>,
279
+ data: D[],
280
+ $table: VxeTableConstructor<any> & VxeTablePrivateMethods<any>
281
+ ): any;
272
282
 
273
283
  // 表头分组
274
284
  children?: SabColumnProps<D>[];