@aplus-frontend/ui 0.0.22 → 0.0.24

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.
Files changed (41) hide show
  1. package/es/src/ap-field/date/index.vue.mjs +26 -26
  2. package/es/src/ap-field/number/helper.d.ts +9 -0
  3. package/es/src/ap-field/number/helper.mjs +20 -11
  4. package/es/src/ap-table/ap-table.vue.d.ts +2137 -112
  5. package/es/src/ap-table/ap-table.vue.mjs +31 -30
  6. package/es/src/check-card/group.vue.d.ts +1 -1
  7. package/es/src/check-card/group.vue.mjs +1 -1
  8. package/es/src/check-card/index.vue.d.ts +1 -1
  9. package/es/src/check-card/index.vue2.mjs +40 -36
  10. package/es/src/check-card/interface.d.ts +1 -1
  11. package/es/src/check-card/style/index.css +1 -0
  12. package/es/src/editable-table/form-item.vue.d.ts +755 -105
  13. package/es/src/editable-table/form-item.vue.mjs +80 -65
  14. package/es/src/editable-table/hooks/use-get-columns.mjs +27 -27
  15. package/es/src/editable-table/index.vue.d.ts +527 -112
  16. package/es/src/editable-table/index.vue.mjs +93 -78
  17. package/es/src/editable-table/interface.d.ts +11 -5
  18. package/es/src/editable-table/utils.d.ts +13 -0
  19. package/es/src/editable-table/utils.mjs +26 -6
  20. package/es/src/theme/check-card/index.css +1 -0
  21. package/lib/src/ap-field/date/index.vue.js +1 -1
  22. package/lib/src/ap-field/number/helper.d.ts +9 -0
  23. package/lib/src/ap-field/number/helper.js +1 -1
  24. package/lib/src/ap-table/ap-table.vue.d.ts +2137 -112
  25. package/lib/src/ap-table/ap-table.vue.js +1 -1
  26. package/lib/src/check-card/group.vue.d.ts +1 -1
  27. package/lib/src/check-card/group.vue.js +1 -1
  28. package/lib/src/check-card/index.vue.d.ts +1 -1
  29. package/lib/src/check-card/index.vue2.js +1 -1
  30. package/lib/src/check-card/interface.d.ts +1 -1
  31. package/lib/src/check-card/style/index.css +1 -0
  32. package/lib/src/editable-table/form-item.vue.d.ts +755 -105
  33. package/lib/src/editable-table/form-item.vue.js +1 -1
  34. package/lib/src/editable-table/hooks/use-get-columns.js +1 -1
  35. package/lib/src/editable-table/index.vue.d.ts +527 -112
  36. package/lib/src/editable-table/index.vue.js +1 -1
  37. package/lib/src/editable-table/interface.d.ts +11 -5
  38. package/lib/src/editable-table/utils.d.ts +13 -0
  39. package/lib/src/editable-table/utils.js +1 -1
  40. package/lib/src/theme/check-card/index.css +1 -0
  41. package/package.json +5 -5
@@ -1,88 +1,24 @@
1
- import { EditableTableProps, EditableColumnType } from './interface';
1
+ import { EditableColumnType } from './interface';
2
2
  import { NamePath, ValidateOptions } from 'ant-design-vue/es/form/interface';
3
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, CSSProperties } from 'vue';
3
+ import { Recordable } from '../type';
4
+ import { ExtractPropTypes, PropType, VNode, RendererNode, RendererElement, CSSProperties, VNodeProps, AllowedComponentProps, ComponentCustomProps, ShallowUnwrapRef } from 'vue';
4
5
  import { SpinSize } from 'ant-design-vue/es/spin/Spin';
5
6
  import { VueTypeValidableDef } from '../../node_modules/vue-types';
6
- import { TablePaginationConfig } from 'ant-design-vue';
7
- import { TableLayout, GetRowKey } from 'ant-design-vue/es/vc-table/interface';
8
- import { SortOrder } from 'ant-design-vue/es/table/interface';
7
+ import { GetPopupContainer, FilterValue, SorterResult, TableCurrentDataSource, TableLocale, SortOrder, TableRowSelection } from 'ant-design-vue/es/table/interface';
8
+ import { RenderExpandIcon, PanelRender, TableComponents, TransformCellText, TableLayout, TableSticky, GetRowKey, RowClassName, GetComponentProps, ColumnType, Key, ExpandedRowRender, DataIndex } from 'ant-design-vue/es/vc-table/interface';
9
+ import { ButtonSize } from 'ant-design-vue/es/button';
10
+ import { TablePaginationConfig, TableColumnType } from 'ant-design-vue';
11
+ import { EllipsisConfig } from 'ant-design-vue/es/typography/Base';
12
+ import { ValueEnum } from '..';
9
13
  import { TriggerType } from 'ant-design-vue/es/tooltip/abstractTooltipProps';
10
14
  import { TooltipPlacement, AdjustOverflow } from 'ant-design-vue/es/tooltip';
11
15
  import { LiteralUnion } from 'ant-design-vue/es/_util/type';
12
16
  import { PresetColorType } from 'ant-design-vue/es/_util/colors';
13
17
  import { AlignType, BuildInPlacements } from 'ant-design-vue/es/vc-trigger/interface';
18
+ import { UnwrapRefSimple } from '@vue/reactivity';
14
19
 
15
- type EditableTableSlots = {
16
- default: any;
17
- emptyText?: any;
18
- expandIcon?: any;
19
- title?: any;
20
- footer?: any;
21
- summary?: any;
22
- expandedRowRender?: any;
23
- expandColumnTitle?: any;
24
- customFilterIcon?: any;
25
- customFilterDropdown?: any;
26
- headerCell?: (props: {
27
- title: any;
28
- column: EditableColumnType;
29
- }) => void;
30
- };
31
- declare function resetFields(): void;
32
- declare function validateFields(nameList?: NamePath[] | string, options?: ValidateOptions): Promise<any>;
33
- declare function add(defaultValue?: any): void;
34
- declare function remove(index: number): void;
35
- declare function getRowsData(): any[];
36
- declare function getRowData(index: number): any;
37
- declare function setRowData(index: number, payload: any): void;
38
- declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<EditableTableProps<any>>, {
39
- bordered: boolean;
40
- childrenColumnName: string;
41
- defaultExpandAllRows: boolean;
42
- expandFixed: boolean;
43
- expandRowByClick: boolean;
44
- indentSize: number;
45
- rowKey: string;
46
- showExpandColumn: boolean;
47
- showHeader: boolean;
48
- showSorterTooltip: boolean;
49
- size: string;
50
- sortDirections: () => string[];
51
- pagination: boolean;
52
- loading: undefined;
53
- name: string;
54
- tableLayout: string;
55
- }>, {
56
- resetFields: typeof resetFields;
57
- validateFields: typeof validateFields;
58
- add: typeof add;
59
- remove: typeof remove;
60
- getRowData: typeof getRowData;
61
- getRowsData: typeof getRowsData;
62
- setRowData: typeof setRowData;
63
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
64
- "update:value": (...args: any[]) => void;
65
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<EditableTableProps<any>>, {
66
- bordered: boolean;
67
- childrenColumnName: string;
68
- defaultExpandAllRows: boolean;
69
- expandFixed: boolean;
70
- expandRowByClick: boolean;
71
- indentSize: number;
72
- rowKey: string;
73
- showExpandColumn: boolean;
74
- showHeader: boolean;
75
- showSorterTooltip: boolean;
76
- size: string;
77
- sortDirections: () => string[];
78
- pagination: boolean;
79
- loading: undefined;
80
- name: string;
81
- tableLayout: string;
82
- }>>> & {
83
- "onUpdate:value"?: ((...args: any[]) => any) | undefined;
84
- }, {
85
- loading: boolean | Partial< ExtractPropTypes<{
20
+ declare const _default: <RecordType extends Recordable<any> = any>(__VLS_props: {
21
+ loading?: boolean | Partial< ExtractPropTypes<{
86
22
  prefixCls: StringConstructor;
87
23
  spinning: {
88
24
  type: BooleanConstructor;
@@ -93,15 +29,61 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
93
29
  tip: VueTypeValidableDef<any>;
94
30
  delay: NumberConstructor;
95
31
  indicator: VueTypeValidableDef<any>;
96
- }>>;
97
- size: "small" | "middle" | "large";
98
- pagination: false | TablePaginationConfig;
99
- name: any;
100
- bordered: boolean;
101
- tableLayout: TableLayout;
102
- rowKey: string | GetRowKey<any>;
103
- sortDirections: SortOrder[];
104
- showSorterTooltip: boolean | Partial< ExtractPropTypes<{
32
+ }>> | undefined;
33
+ getPopupContainer?: GetPopupContainer | undefined;
34
+ prefixCls?: string | undefined;
35
+ id?: string | undefined;
36
+ expandIcon?: RenderExpandIcon<RecordType> | undefined;
37
+ title?: PanelRender<RecordType> | undefined;
38
+ footer?: PanelRender<RecordType> | undefined;
39
+ direction?: "ltr" | "rtl" | undefined;
40
+ size?: ButtonSize;
41
+ onChange?: (((pagination: TablePaginationConfig, filters: Record<string, FilterValue | null>, sorter: SorterResult<RecordType> | SorterResult<RecordType>[], extra: TableCurrentDataSource<RecordType>) => void) & ((value: RecordType[]) => void)) | undefined;
42
+ scroll?: ({
43
+ x?: string | number | true | undefined;
44
+ y?: string | number | undefined;
45
+ } & {
46
+ scrollToFirstRowOnChange?: boolean | undefined;
47
+ }) | undefined;
48
+ components?: TableComponents<RecordType> | undefined;
49
+ transformCellText?: TransformCellText<RecordType> | undefined;
50
+ locale?: TableLocale | undefined;
51
+ pagination?: false | TablePaginationConfig | undefined;
52
+ value?: RecordType[] | undefined;
53
+ name?: any;
54
+ 'onUpdate:value'?: (((...args: any[]) => any) & ((value: RecordType[]) => void)) | undefined;
55
+ defaultValue?: RecordType[] | undefined;
56
+ bordered?: boolean | undefined;
57
+ onExpand?: ((expanded: boolean, record: RecordType) => void) | undefined;
58
+ tableLayout?: TableLayout | undefined;
59
+ columns?: (Omit< TableColumnType<RecordType>, "children" | "ellipsis" | "customRender"> & {
60
+ children?: (Omit< TableColumnType<RecordType>, "children" | "ellipsis" | "customRender"> & any) | undefined;
61
+ tooltip?: string | undefined;
62
+ copyable?: boolean | undefined;
63
+ ellipsis?: boolean | EllipsisConfig | undefined;
64
+ editable?: boolean | ((text: any, record: RecordType, index: number) => boolean) | undefined;
65
+ valueEnum?: ValueEnum | undefined;
66
+ customRenderFormItem?: ((config: Omit< TableColumnType<RecordType>, "children" | "ellipsis" | "customRender"> & any) => any) | undefined;
67
+ valueType?: any;
68
+ fieldProps?: any;
69
+ customRender?: ((opt: {
70
+ value: any;
71
+ text: any;
72
+ record: RecordType;
73
+ index: number;
74
+ renderIndex: number;
75
+ column: TableColumnType<RecordType>;
76
+ editable?: boolean | undefined;
77
+ originalNode?: VNode<RendererNode, RendererElement, {
78
+ [key: string]: any;
79
+ }> | undefined;
80
+ }) => any) | undefined;
81
+ })[] | undefined;
82
+ sticky?: boolean | TableSticky | undefined;
83
+ rowKey?: string | GetRowKey<RecordType> | undefined;
84
+ dropdownPrefixCls?: string | undefined;
85
+ sortDirections?: SortOrder[] | undefined;
86
+ showSorterTooltip?: boolean | Partial< ExtractPropTypes<{
105
87
  title: VueTypeValidableDef<any>;
106
88
  trigger: PropType< TriggerType | TriggerType[]>;
107
89
  open: {
@@ -162,35 +144,468 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
162
144
  'onUpdate:visible': PropType<(vis: boolean) => void>;
163
145
  onOpenChange: PropType<(vis: boolean) => void>;
164
146
  'onUpdate:open': PropType<(vis: boolean) => void>;
165
- }>>;
166
- showHeader: boolean;
167
- expandFixed: boolean | "left" | "right";
168
- expandRowByClick: boolean;
169
- defaultExpandAllRows: boolean;
170
- indentSize: number;
171
- showExpandColumn: boolean;
172
- childrenColumnName: string;
173
- }, {}>, Readonly<EditableTableSlots> & EditableTableSlots>;
174
- export default _default;
175
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
176
- type __VLS_TypePropsToRuntimeProps<T> = {
177
- [K in keyof T]-?: {} extends Pick<T, K> ? {
178
- type: PropType<__VLS_NonUndefinedable<T[K]>>;
179
- } : {
180
- type: PropType<T[K]>;
181
- required: true;
147
+ }>> | undefined;
148
+ rowClassName?: string | RowClassName<RecordType> | undefined;
149
+ showHeader?: boolean | undefined;
150
+ customRow?: GetComponentProps<RecordType> | undefined;
151
+ customHeaderRow?: GetComponentProps< ColumnType<RecordType>[]> | undefined;
152
+ expandFixed?: boolean | "left" | "right" | undefined;
153
+ expandColumnWidth?: number | undefined;
154
+ expandedRowKeys?: Key[] | undefined;
155
+ defaultExpandedRowKeys?: Key[] | undefined;
156
+ expandedRowRender?: ExpandedRowRender<RecordType> | undefined;
157
+ expandRowByClick?: boolean | undefined;
158
+ onExpandedRowsChange?: ((expandedKeys: Key[]) => void) | undefined;
159
+ defaultExpandAllRows?: boolean | undefined;
160
+ indentSize?: number | undefined;
161
+ expandIconColumnIndex?: number | undefined;
162
+ showExpandColumn?: boolean | undefined;
163
+ expandedRowClassName?: RowClassName<RecordType> | undefined;
164
+ childrenColumnName?: string | undefined;
165
+ rowExpandable?: ((record: RecordType) => boolean) | undefined;
166
+ onResizeColumn?: ((w: number, col: TableColumnType<any>) => void) | undefined;
167
+ rowSelection?: TableRowSelection<RecordType> | undefined;
168
+ onFieldChange?: ((rowIndex: number, fieldName: DataIndex, newValue: any) => void) | undefined;
169
+ maxLength?: number | undefined;
170
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, __VLS_ctx?: {
171
+ attrs: any;
172
+ slots: Readonly<{
173
+ default: any;
174
+ emptyText?: any;
175
+ expandIcon?: any;
176
+ title?: any;
177
+ footer?: any;
178
+ summary?: any;
179
+ expandedRowRender?: any;
180
+ expandColumnTitle?: any;
181
+ customFilterIcon?: any;
182
+ customFilterDropdown?: any;
183
+ headerCell?: ((props: {
184
+ title: any;
185
+ column: EditableColumnType;
186
+ }) => void) | undefined;
187
+ }> & {
188
+ default: any;
189
+ emptyText?: any;
190
+ expandIcon?: any;
191
+ title?: any;
192
+ footer?: any;
193
+ summary?: any;
194
+ expandedRowRender?: any;
195
+ expandColumnTitle?: any;
196
+ customFilterIcon?: any;
197
+ customFilterDropdown?: any;
198
+ headerCell?: ((props: {
199
+ title: any;
200
+ column: EditableColumnType;
201
+ }) => void) | undefined;
182
202
  };
203
+ emit: (event: "update:value", ...args: any[]) => void;
204
+ } | undefined, __VLS_expose?: ((exposed: ShallowUnwrapRef<{
205
+ resetFields: () => void;
206
+ validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<any>;
207
+ add: (defaultValue?: Partial<RecordType> | undefined, insertIndex?: number) => void;
208
+ remove: (index: number | number[]) => void;
209
+ getRowData: (index: number) => UnwrapRefSimple<RecordType>;
210
+ getRowsData: () => UnwrapRefSimple<RecordType>[];
211
+ setRowData: (index: number, payload: any) => void;
212
+ addMultiple: (list: number | Partial<RecordType>[], insetIn?: 'prefix' | 'suffix') => void;
213
+ }>) => void) | undefined, __VLS_setup?: Promise<{
214
+ props: {
215
+ loading?: boolean | Partial< ExtractPropTypes<{
216
+ prefixCls: StringConstructor;
217
+ spinning: {
218
+ type: BooleanConstructor;
219
+ default: any;
220
+ };
221
+ size: PropType<SpinSize>;
222
+ wrapperClassName: StringConstructor;
223
+ tip: VueTypeValidableDef<any>;
224
+ delay: NumberConstructor;
225
+ indicator: VueTypeValidableDef<any>;
226
+ }>> | undefined;
227
+ getPopupContainer?: GetPopupContainer | undefined;
228
+ prefixCls?: string | undefined;
229
+ id?: string | undefined;
230
+ expandIcon?: RenderExpandIcon<RecordType> | undefined;
231
+ title?: PanelRender<RecordType> | undefined;
232
+ footer?: PanelRender<RecordType> | undefined;
233
+ direction?: "ltr" | "rtl" | undefined;
234
+ size?: ButtonSize;
235
+ onChange?: (((pagination: TablePaginationConfig, filters: Record<string, FilterValue | null>, sorter: SorterResult<RecordType> | SorterResult<RecordType>[], extra: TableCurrentDataSource<RecordType>) => void) & ((value: RecordType[]) => void)) | undefined;
236
+ scroll?: ({
237
+ x?: string | number | true | undefined;
238
+ y?: string | number | undefined;
239
+ } & {
240
+ scrollToFirstRowOnChange?: boolean | undefined;
241
+ }) | undefined;
242
+ components?: TableComponents<RecordType> | undefined;
243
+ transformCellText?: TransformCellText<RecordType> | undefined;
244
+ locale?: TableLocale | undefined;
245
+ pagination?: false | TablePaginationConfig | undefined;
246
+ value?: RecordType[] | undefined;
247
+ name?: any;
248
+ 'onUpdate:value'?: (((...args: any[]) => any) & ((value: RecordType[]) => void)) | undefined;
249
+ defaultValue?: RecordType[] | undefined;
250
+ bordered?: boolean | undefined;
251
+ onExpand?: ((expanded: boolean, record: RecordType) => void) | undefined;
252
+ tableLayout?: TableLayout | undefined;
253
+ columns?: (Omit< TableColumnType<RecordType>, "children" | "ellipsis" | "customRender"> & {
254
+ children?: (Omit< TableColumnType<RecordType>, "children" | "ellipsis" | "customRender"> & any) | undefined;
255
+ tooltip?: string | undefined;
256
+ copyable?: boolean | undefined;
257
+ ellipsis?: boolean | EllipsisConfig | undefined;
258
+ editable?: boolean | ((text: any, record: RecordType, index: number) => boolean) | undefined;
259
+ valueEnum?: ValueEnum | undefined;
260
+ customRenderFormItem?: ((config: Omit< TableColumnType<RecordType>, "children" | "ellipsis" | "customRender"> & any) => any) | undefined;
261
+ valueType?: any;
262
+ fieldProps?: any;
263
+ customRender?: ((opt: {
264
+ value: any;
265
+ text: any;
266
+ record: RecordType;
267
+ index: number;
268
+ renderIndex: number;
269
+ column: TableColumnType<RecordType>;
270
+ editable?: boolean | undefined;
271
+ originalNode?: VNode<RendererNode, RendererElement, {
272
+ [key: string]: any;
273
+ }> | undefined;
274
+ }) => any) | undefined;
275
+ })[] | undefined;
276
+ sticky?: boolean | TableSticky | undefined;
277
+ rowKey?: string | GetRowKey<RecordType> | undefined;
278
+ dropdownPrefixCls?: string | undefined;
279
+ sortDirections?: SortOrder[] | undefined;
280
+ showSorterTooltip?: boolean | Partial< ExtractPropTypes<{
281
+ title: VueTypeValidableDef<any>;
282
+ trigger: PropType< TriggerType | TriggerType[]>;
283
+ open: {
284
+ type: BooleanConstructor;
285
+ default: any;
286
+ };
287
+ visible: {
288
+ type: BooleanConstructor;
289
+ default: any;
290
+ };
291
+ placement: PropType<TooltipPlacement>;
292
+ color: PropType<LiteralUnion<PresetColorType>>;
293
+ transitionName: StringConstructor;
294
+ overlayStyle: {
295
+ type: PropType<CSSProperties>;
296
+ default: CSSProperties;
297
+ };
298
+ overlayInnerStyle: {
299
+ type: PropType<CSSProperties>;
300
+ default: CSSProperties;
301
+ };
302
+ overlayClassName: StringConstructor;
303
+ openClassName: StringConstructor;
304
+ prefixCls: StringConstructor;
305
+ mouseEnterDelay: NumberConstructor;
306
+ mouseLeaveDelay: NumberConstructor;
307
+ getPopupContainer: PropType<(triggerNode: HTMLElement) => HTMLElement>;
308
+ arrowPointAtCenter: {
309
+ type: BooleanConstructor;
310
+ default: any;
311
+ };
312
+ arrow: {
313
+ type: PropType<boolean | {
314
+ pointAtCenter?: boolean | undefined;
315
+ }>;
316
+ default: boolean | {
317
+ pointAtCenter?: boolean | undefined;
318
+ };
319
+ };
320
+ autoAdjustOverflow: {
321
+ type: PropType<boolean | AdjustOverflow>;
322
+ default: boolean | AdjustOverflow;
323
+ };
324
+ destroyTooltipOnHide: {
325
+ type: BooleanConstructor;
326
+ default: any;
327
+ };
328
+ align: {
329
+ type: PropType<AlignType>;
330
+ default: AlignType;
331
+ };
332
+ builtinPlacements: {
333
+ type: PropType<BuildInPlacements>;
334
+ default: BuildInPlacements;
335
+ };
336
+ children: ArrayConstructor;
337
+ onVisibleChange: PropType<(vis: boolean) => void>;
338
+ 'onUpdate:visible': PropType<(vis: boolean) => void>;
339
+ onOpenChange: PropType<(vis: boolean) => void>;
340
+ 'onUpdate:open': PropType<(vis: boolean) => void>;
341
+ }>> | undefined;
342
+ rowClassName?: string | RowClassName<RecordType> | undefined;
343
+ showHeader?: boolean | undefined;
344
+ customRow?: GetComponentProps<RecordType> | undefined;
345
+ customHeaderRow?: GetComponentProps< ColumnType<RecordType>[]> | undefined;
346
+ expandFixed?: boolean | "left" | "right" | undefined;
347
+ expandColumnWidth?: number | undefined;
348
+ expandedRowKeys?: Key[] | undefined;
349
+ defaultExpandedRowKeys?: Key[] | undefined;
350
+ expandedRowRender?: ExpandedRowRender<RecordType> | undefined;
351
+ expandRowByClick?: boolean | undefined;
352
+ onExpandedRowsChange?: ((expandedKeys: Key[]) => void) | undefined;
353
+ defaultExpandAllRows?: boolean | undefined;
354
+ indentSize?: number | undefined;
355
+ expandIconColumnIndex?: number | undefined;
356
+ showExpandColumn?: boolean | undefined;
357
+ expandedRowClassName?: RowClassName<RecordType> | undefined;
358
+ childrenColumnName?: string | undefined;
359
+ rowExpandable?: ((record: RecordType) => boolean) | undefined;
360
+ onResizeColumn?: ((w: number, col: TableColumnType<any>) => void) | undefined;
361
+ rowSelection?: TableRowSelection<RecordType> | undefined;
362
+ onFieldChange?: ((rowIndex: number, fieldName: DataIndex, newValue: any) => void) | undefined;
363
+ maxLength?: number | undefined;
364
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
365
+ expose(exposed: ShallowUnwrapRef<{
366
+ resetFields: () => void;
367
+ validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<any>;
368
+ add: (defaultValue?: Partial<RecordType> | undefined, insertIndex?: number) => void;
369
+ remove: (index: number | number[]) => void;
370
+ getRowData: (index: number) => UnwrapRefSimple<RecordType>;
371
+ getRowsData: () => UnwrapRefSimple<RecordType>[];
372
+ setRowData: (index: number, payload: any) => void;
373
+ addMultiple: (list: number | Partial<RecordType>[], insetIn?: 'prefix' | 'suffix') => void;
374
+ }>): void;
375
+ attrs: any;
376
+ slots: Readonly<{
377
+ default: any;
378
+ emptyText?: any;
379
+ expandIcon?: any;
380
+ title?: any;
381
+ footer?: any;
382
+ summary?: any;
383
+ expandedRowRender?: any;
384
+ expandColumnTitle?: any;
385
+ customFilterIcon?: any;
386
+ customFilterDropdown?: any;
387
+ headerCell?: ((props: {
388
+ title: any;
389
+ column: EditableColumnType;
390
+ }) => void) | undefined;
391
+ }> & {
392
+ default: any;
393
+ emptyText?: any;
394
+ expandIcon?: any;
395
+ title?: any;
396
+ footer?: any;
397
+ summary?: any;
398
+ expandedRowRender?: any;
399
+ expandColumnTitle?: any;
400
+ customFilterIcon?: any;
401
+ customFilterDropdown?: any;
402
+ headerCell?: ((props: {
403
+ title: any;
404
+ column: EditableColumnType;
405
+ }) => void) | undefined;
406
+ };
407
+ emit: (event: "update:value", ...args: any[]) => void;
408
+ }>) => VNode<RendererNode, RendererElement, {
409
+ [key: string]: any;
410
+ }> & {
411
+ __ctx?: {
412
+ props: {
413
+ loading?: boolean | Partial< ExtractPropTypes<{
414
+ prefixCls: StringConstructor;
415
+ spinning: {
416
+ type: BooleanConstructor;
417
+ default: any;
418
+ };
419
+ size: PropType<SpinSize>;
420
+ wrapperClassName: StringConstructor;
421
+ tip: VueTypeValidableDef<any>;
422
+ delay: NumberConstructor;
423
+ indicator: VueTypeValidableDef<any>;
424
+ }>> | undefined;
425
+ getPopupContainer?: GetPopupContainer | undefined;
426
+ prefixCls?: string | undefined;
427
+ id?: string | undefined;
428
+ expandIcon?: RenderExpandIcon<RecordType> | undefined;
429
+ title?: PanelRender<RecordType> | undefined;
430
+ footer?: PanelRender<RecordType> | undefined;
431
+ direction?: "ltr" | "rtl" | undefined;
432
+ size?: ButtonSize;
433
+ onChange?: (((pagination: TablePaginationConfig, filters: Record<string, FilterValue | null>, sorter: SorterResult<RecordType> | SorterResult<RecordType>[], extra: TableCurrentDataSource<RecordType>) => void) & ((value: RecordType[]) => void)) | undefined;
434
+ scroll?: ({
435
+ x?: string | number | true | undefined;
436
+ y?: string | number | undefined;
437
+ } & {
438
+ scrollToFirstRowOnChange?: boolean | undefined;
439
+ }) | undefined;
440
+ components?: TableComponents<RecordType> | undefined;
441
+ transformCellText?: TransformCellText<RecordType> | undefined;
442
+ locale?: TableLocale | undefined;
443
+ pagination?: false | TablePaginationConfig | undefined;
444
+ value?: RecordType[] | undefined;
445
+ name?: any;
446
+ 'onUpdate:value'?: (((...args: any[]) => any) & ((value: RecordType[]) => void)) | undefined;
447
+ defaultValue?: RecordType[] | undefined;
448
+ bordered?: boolean | undefined;
449
+ onExpand?: ((expanded: boolean, record: RecordType) => void) | undefined;
450
+ tableLayout?: TableLayout | undefined;
451
+ columns?: (Omit< TableColumnType<RecordType>, "children" | "ellipsis" | "customRender"> & {
452
+ children?: (Omit< TableColumnType<RecordType>, "children" | "ellipsis" | "customRender"> & any) | undefined;
453
+ tooltip?: string | undefined;
454
+ copyable?: boolean | undefined;
455
+ ellipsis?: boolean | EllipsisConfig | undefined;
456
+ editable?: boolean | ((text: any, record: RecordType, index: number) => boolean) | undefined;
457
+ valueEnum?: ValueEnum | undefined;
458
+ customRenderFormItem?: ((config: Omit< TableColumnType<RecordType>, "children" | "ellipsis" | "customRender"> & any) => any) | undefined;
459
+ valueType?: any;
460
+ fieldProps?: any;
461
+ customRender?: ((opt: {
462
+ value: any;
463
+ text: any;
464
+ record: RecordType;
465
+ index: number;
466
+ renderIndex: number;
467
+ column: TableColumnType<RecordType>;
468
+ editable?: boolean | undefined;
469
+ originalNode?: VNode<RendererNode, RendererElement, {
470
+ [key: string]: any;
471
+ }> | undefined;
472
+ }) => any) | undefined;
473
+ })[] | undefined;
474
+ sticky?: boolean | TableSticky | undefined;
475
+ rowKey?: string | GetRowKey<RecordType> | undefined;
476
+ dropdownPrefixCls?: string | undefined;
477
+ sortDirections?: SortOrder[] | undefined;
478
+ showSorterTooltip?: boolean | Partial< ExtractPropTypes<{
479
+ title: VueTypeValidableDef<any>;
480
+ trigger: PropType< TriggerType | TriggerType[]>;
481
+ open: {
482
+ type: BooleanConstructor;
483
+ default: any;
484
+ };
485
+ visible: {
486
+ type: BooleanConstructor;
487
+ default: any;
488
+ };
489
+ placement: PropType<TooltipPlacement>;
490
+ color: PropType<LiteralUnion<PresetColorType>>;
491
+ transitionName: StringConstructor;
492
+ overlayStyle: {
493
+ type: PropType<CSSProperties>;
494
+ default: CSSProperties;
495
+ };
496
+ overlayInnerStyle: {
497
+ type: PropType<CSSProperties>;
498
+ default: CSSProperties;
499
+ };
500
+ overlayClassName: StringConstructor;
501
+ openClassName: StringConstructor;
502
+ prefixCls: StringConstructor;
503
+ mouseEnterDelay: NumberConstructor;
504
+ mouseLeaveDelay: NumberConstructor;
505
+ getPopupContainer: PropType<(triggerNode: HTMLElement) => HTMLElement>;
506
+ arrowPointAtCenter: {
507
+ type: BooleanConstructor;
508
+ default: any;
509
+ };
510
+ arrow: {
511
+ type: PropType<boolean | {
512
+ pointAtCenter?: boolean | undefined;
513
+ }>;
514
+ default: boolean | {
515
+ pointAtCenter?: boolean | undefined;
516
+ };
517
+ };
518
+ autoAdjustOverflow: {
519
+ type: PropType<boolean | AdjustOverflow>;
520
+ default: boolean | AdjustOverflow;
521
+ };
522
+ destroyTooltipOnHide: {
523
+ type: BooleanConstructor;
524
+ default: any;
525
+ };
526
+ align: {
527
+ type: PropType<AlignType>;
528
+ default: AlignType;
529
+ };
530
+ builtinPlacements: {
531
+ type: PropType<BuildInPlacements>;
532
+ default: BuildInPlacements;
533
+ };
534
+ children: ArrayConstructor;
535
+ onVisibleChange: PropType<(vis: boolean) => void>;
536
+ 'onUpdate:visible': PropType<(vis: boolean) => void>;
537
+ onOpenChange: PropType<(vis: boolean) => void>;
538
+ 'onUpdate:open': PropType<(vis: boolean) => void>;
539
+ }>> | undefined;
540
+ rowClassName?: string | RowClassName<RecordType> | undefined;
541
+ showHeader?: boolean | undefined;
542
+ customRow?: GetComponentProps<RecordType> | undefined;
543
+ customHeaderRow?: GetComponentProps< ColumnType<RecordType>[]> | undefined;
544
+ expandFixed?: boolean | "left" | "right" | undefined;
545
+ expandColumnWidth?: number | undefined;
546
+ expandedRowKeys?: Key[] | undefined;
547
+ defaultExpandedRowKeys?: Key[] | undefined;
548
+ expandedRowRender?: ExpandedRowRender<RecordType> | undefined;
549
+ expandRowByClick?: boolean | undefined;
550
+ onExpandedRowsChange?: ((expandedKeys: Key[]) => void) | undefined;
551
+ defaultExpandAllRows?: boolean | undefined;
552
+ indentSize?: number | undefined;
553
+ expandIconColumnIndex?: number | undefined;
554
+ showExpandColumn?: boolean | undefined;
555
+ expandedRowClassName?: RowClassName<RecordType> | undefined;
556
+ childrenColumnName?: string | undefined;
557
+ rowExpandable?: ((record: RecordType) => boolean) | undefined;
558
+ onResizeColumn?: ((w: number, col: TableColumnType<any>) => void) | undefined;
559
+ rowSelection?: TableRowSelection<RecordType> | undefined;
560
+ onFieldChange?: ((rowIndex: number, fieldName: DataIndex, newValue: any) => void) | undefined;
561
+ maxLength?: number | undefined;
562
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
563
+ expose(exposed: ShallowUnwrapRef<{
564
+ resetFields: () => void;
565
+ validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<any>;
566
+ add: (defaultValue?: Partial<RecordType> | undefined, insertIndex?: number) => void;
567
+ remove: (index: number | number[]) => void;
568
+ getRowData: (index: number) => UnwrapRefSimple<RecordType>;
569
+ getRowsData: () => UnwrapRefSimple<RecordType>[];
570
+ setRowData: (index: number, payload: any) => void;
571
+ addMultiple: (list: number | Partial<RecordType>[], insetIn?: 'prefix' | 'suffix') => void;
572
+ }>): void;
573
+ attrs: any;
574
+ slots: Readonly<{
575
+ default: any;
576
+ emptyText?: any;
577
+ expandIcon?: any;
578
+ title?: any;
579
+ footer?: any;
580
+ summary?: any;
581
+ expandedRowRender?: any;
582
+ expandColumnTitle?: any;
583
+ customFilterIcon?: any;
584
+ customFilterDropdown?: any;
585
+ headerCell?: ((props: {
586
+ title: any;
587
+ column: EditableColumnType;
588
+ }) => void) | undefined;
589
+ }> & {
590
+ default: any;
591
+ emptyText?: any;
592
+ expandIcon?: any;
593
+ title?: any;
594
+ footer?: any;
595
+ summary?: any;
596
+ expandedRowRender?: any;
597
+ expandColumnTitle?: any;
598
+ customFilterIcon?: any;
599
+ customFilterDropdown?: any;
600
+ headerCell?: ((props: {
601
+ title: any;
602
+ column: EditableColumnType;
603
+ }) => void) | undefined;
604
+ };
605
+ emit: (event: "update:value", ...args: any[]) => void;
606
+ } | undefined;
183
607
  };
184
- type __VLS_WithDefaults<P, D> = {
185
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
186
- default: D[K];
187
- }> : P[K];
188
- };
608
+ export default _default;
189
609
  type __VLS_Prettify<T> = {
190
610
  [K in keyof T]: T[K];
191
611
  } & {};
192
- type __VLS_WithTemplateSlots<T, S> = T & {
193
- new (): {
194
- $slots: S;
195
- };
196
- };