@wx-design/components 1.1.39 → 1.1.40
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/components/CellEditors/Cascader.d.ts +32 -0
- package/es/core/Table/constants.d.ts +1 -0
- package/es/index.mjs +6370 -6285
- package/lib/core/Table/components/CellEditors/Cascader.d.ts +32 -0
- package/lib/core/Table/constants.d.ts +1 -0
- package/lib/index.js +7 -7
- package/package.json +1 -1
- package/types/table/column.d.ts +19 -1
package/package.json
CHANGED
package/types/table/column.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ import type {
|
|
|
17
17
|
SwitchProps,
|
|
18
18
|
PopoverInstance,
|
|
19
19
|
ImageProps,
|
|
20
|
+
CascaderProps,
|
|
20
21
|
} from "element-plus";
|
|
21
22
|
import type { SabHeaderFilterProps } from "./";
|
|
22
23
|
|
|
@@ -149,6 +150,22 @@ export type SabCellSelectProps<D = VxeTableDataRow> = {
|
|
|
149
150
|
onChange?(value: any, extrnal: { options: D[] }): void;
|
|
150
151
|
};
|
|
151
152
|
|
|
153
|
+
export type SabCellCascaderProps<D = VxeTableDataRow> =
|
|
154
|
+
Partial<CascaderProps> & {
|
|
155
|
+
// 选项列表
|
|
156
|
+
options?: D[];
|
|
157
|
+
revalidateOnFocus?: boolean;
|
|
158
|
+
// select 变更时影响的 row.value 字段
|
|
159
|
+
effectValueField?: string;
|
|
160
|
+
dynamicOptions?: (
|
|
161
|
+
params: VxeColumnSlotTypes.DefaultSlotParams & {
|
|
162
|
+
keywords?: string;
|
|
163
|
+
}
|
|
164
|
+
) => Promise<any[]> | any[];
|
|
165
|
+
// 渲染选项展示
|
|
166
|
+
renderOption?(params: { node: any; data: D }): any;
|
|
167
|
+
};
|
|
168
|
+
|
|
152
169
|
// 动态单元格配置
|
|
153
170
|
export type DynamicCellProps<D = VxeTableDataRow> = {
|
|
154
171
|
// 动态设置单元格类型
|
|
@@ -199,7 +216,8 @@ export type SabCellEditorParams =
|
|
|
199
216
|
| Partial<SabPopoverParams>
|
|
200
217
|
| Partial<DynamicCellProps>
|
|
201
218
|
| Partial<BooleanEditorProps>
|
|
202
|
-
| Partial<ImageViewProps
|
|
219
|
+
| Partial<ImageViewProps>
|
|
220
|
+
| Partial<SabCellCascaderProps>;
|
|
203
221
|
|
|
204
222
|
// 弹出层配置
|
|
205
223
|
export type SabPopoverParams = Partial<PopoverProps & DialogProps> & {
|