@wx-design/components 0.3.2 → 0.4.0

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.3.2",
3
+ "version": "0.4.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -3,6 +3,7 @@ import type {
3
3
  InputProps,
4
4
  InputNumberProps,
5
5
  DatePickerProps,
6
+ PopoverProps
6
7
  } from "element-plus";
7
8
 
8
9
  export interface SabColumnSlots<D = VxeTableDataRow> {
@@ -55,7 +56,7 @@ export interface SabColumnSlots<D = VxeTableDataRow> {
55
56
  /**
56
57
  * TODO: 单元格弹出
57
58
  */
58
- popover: (params: VxeColumnSlotTypes.DefaultSlotParams<D>) => any | string;
59
+ popover: ((params: VxeColumnSlotTypes.DefaultSlotParams<D>) => any) | string;
59
60
  }
60
61
 
61
62
  // 单选框属性
@@ -81,6 +82,7 @@ export type SabCellEditorParams =
81
82
  | Partial<InputNumberProps>
82
83
  | Partial<DatePickerProps>
83
84
  | Partial<SabCellSelectProps>
85
+ | Partial<PopoverProps>
84
86
 
85
87
  // 弹出层配置
86
88
  export type SabPopoverParams = {
@@ -97,7 +99,7 @@ export type SabPopoverParams = {
97
99
  // 表格列设置
98
100
  export type SabColumnProps<D = VxeTableDataRow> = VxeColumnProps<D> & {
99
101
  // 单元格类型
100
- sabCellType?: 'input' | 'input-number' | 'select' | 'date-picker' | 'image' | 'color' | 'boolean';
102
+ sabCellType?: 'input' | 'input-number' | 'select' | 'date-picker' | 'image' | 'color' | 'boolean' | 'popover';
101
103
  // 附加的单元格编辑器参数
102
104
  editorProps?: Partial<SabCellEditorParams>;
103
105
  // 单元格是否可编辑