@gx-design-vue/pro-table 0.0.5-rc.3 → 0.0.6
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/dist/ProTable.d.ts +461 -301
- package/dist/_utils/ant-design-vue/table/props.d.ts +2 -192
- package/dist/_utils/ant-design-vue/table/typings.d.ts +4 -6
- package/dist/_utils/typings.d.ts +0 -29
- package/dist/components/Form/index.d.ts +5 -5
- package/dist/components/ListToolBar/index.d.ts +4 -4
- package/dist/components/ToolBar/index.d.ts +2 -3
- package/dist/context/TableContext.d.ts +3 -3
- package/dist/hooks/useColumnSetting.d.ts +4 -3
- package/dist/hooks/useColums.d.ts +7 -7
- package/dist/hooks/useFetchData.d.ts +4 -5
- package/dist/hooks/usePagination.d.ts +1 -2
- package/dist/hooks/useRowSelection.d.ts +1 -1
- package/dist/hooks/useTableForm.d.ts +3 -4
- package/dist/hooks/useTableScroll.d.ts +3 -3
- package/dist/index.d.ts +2 -2
- package/dist/pro-table.mjs +21409 -1308
- package/dist/pro-table.umd.js +97 -1
- package/dist/props.d.ts +174 -119
- package/dist/types/ColumnTypings.d.ts +6 -70
- package/dist/types/TableTypings.d.ts +54 -7
- package/dist/typing.d.ts +1 -0
- package/package.json +3 -3
package/dist/props.d.ts
CHANGED
|
@@ -1,26 +1,23 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type { SizeType } from './typing';
|
|
4
|
-
import type { OptionConfig, RequsetFunction, ProFieldEmptyText, ProTablePagination, ProTableRowSelection, SearchConfig } from './types/TableTypings';
|
|
5
|
-
import type { ProColumns, ProSearchMap } from './types/ColumnTypings';
|
|
6
|
-
import type { CustomizeRender, HeaderTitleRender, OptionsExtraRender, PageItemRender, SettingExtraRender, TitleTipRender, ToolBarBtnRender } from './types/SlotsTypings';
|
|
7
|
-
import type { AlignType } from './_utils';
|
|
8
|
-
import type { ColumnsState, ColumnsStateType } from './hooks/useColumnSetting';
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { SearchConfig } from './types/TableTypings';
|
|
9
3
|
export declare const proTableProps: {
|
|
10
4
|
rowSelection: {
|
|
11
|
-
type: PropType<
|
|
5
|
+
type: PropType<(import("ant-design-vue/es/table/interface").TableRowSelection<import("./typing").DefaultRecordType> & import("ant-design-vue/es/table/interface").TableRowSelection<any> & {
|
|
6
|
+
defaultSelectKeys: (string | number)[];
|
|
7
|
+
defaultSelectRows: any[];
|
|
8
|
+
}) | undefined>;
|
|
12
9
|
default: undefined;
|
|
13
10
|
};
|
|
14
11
|
columns: {
|
|
15
|
-
type: PropType<
|
|
12
|
+
type: PropType<import(".").ProColumnsType<import("./typing").DefaultRecordType> | undefined>;
|
|
16
13
|
default: never[];
|
|
17
14
|
};
|
|
18
15
|
pagination: {
|
|
19
|
-
type: PropType<ProTablePagination>;
|
|
16
|
+
type: PropType<((false | import("ant-design-vue/es/table/interface").TablePaginationConfig) & import("./types/TableTypings").ProTablePagination) | undefined>;
|
|
20
17
|
default: () => undefined;
|
|
21
18
|
};
|
|
22
19
|
rowKey: {
|
|
23
|
-
type: PropType<string>;
|
|
20
|
+
type: PropType<string | (import("ant-design-vue/es/vc-table/interface").GetRowKey<import("./typing").DefaultRecordType> & string) | undefined>;
|
|
24
21
|
default: undefined;
|
|
25
22
|
};
|
|
26
23
|
/**
|
|
@@ -30,19 +27,19 @@ export declare const proTableProps: {
|
|
|
30
27
|
* @description 获取 dataSource 的方法
|
|
31
28
|
*/
|
|
32
29
|
request: {
|
|
33
|
-
type: PropType<RequsetFunction<
|
|
30
|
+
type: PropType<import("./types/TableTypings").RequsetFunction<import("./typing").DefaultRecordType> | undefined>;
|
|
34
31
|
default: null;
|
|
35
32
|
};
|
|
36
|
-
virtualScroll: PropType<boolean>;
|
|
37
|
-
params: PropType<
|
|
38
|
-
postData: PropType<(data: any[]) => any>;
|
|
33
|
+
virtualScroll: PropType<boolean | undefined>;
|
|
34
|
+
params: PropType<Record<string, unknown> | undefined>;
|
|
35
|
+
postData: PropType<((data: any[]) => any) | undefined>;
|
|
39
36
|
waitRequest: {
|
|
40
|
-
type: PropType<boolean>;
|
|
37
|
+
type: PropType<boolean | undefined>;
|
|
41
38
|
default: boolean;
|
|
42
39
|
};
|
|
43
|
-
polling: PropType<number>;
|
|
40
|
+
polling: PropType<number | undefined>;
|
|
44
41
|
debounceTime: {
|
|
45
|
-
type: PropType<number>;
|
|
42
|
+
type: PropType<number | undefined>;
|
|
46
43
|
default: number;
|
|
47
44
|
};
|
|
48
45
|
/**
|
|
@@ -52,11 +49,11 @@ export declare const proTableProps: {
|
|
|
52
49
|
* @description 是否显示搜索表单,传入对象时为搜索表单的配置
|
|
53
50
|
*/
|
|
54
51
|
search: {
|
|
55
|
-
type: PropType<SearchConfig>;
|
|
52
|
+
type: PropType<SearchConfig | undefined>;
|
|
56
53
|
default: () => SearchConfig;
|
|
57
54
|
};
|
|
58
55
|
searchMap: {
|
|
59
|
-
type: PropType<ProSearchMap<"text">[]>;
|
|
56
|
+
type: PropType<import(".").ProSearchMap<"text">[] | undefined>;
|
|
60
57
|
default: () => never[];
|
|
61
58
|
};
|
|
62
59
|
/**
|
|
@@ -65,14 +62,14 @@ export declare const proTableProps: {
|
|
|
65
62
|
* @lastTime 2022/2/8
|
|
66
63
|
* @description 自定义表格渲染模式:默认表格展示,也可以自定义数据列表展示
|
|
67
64
|
*/
|
|
68
|
-
|
|
65
|
+
customRender: PropType<import("./types/SlotsTypings").CustomizeRender | undefined>;
|
|
69
66
|
/**
|
|
70
67
|
* @Author gx12358
|
|
71
68
|
* @DateTime 2022/2/8
|
|
72
69
|
* @lastTime 2022/2/8
|
|
73
70
|
* @description 添加表格class
|
|
74
71
|
*/
|
|
75
|
-
tableClassName: PropType<
|
|
72
|
+
tableClassName: PropType<string | undefined>;
|
|
76
73
|
/**
|
|
77
74
|
* @Author gx12358
|
|
78
75
|
* @DateTime 2022/2/8
|
|
@@ -80,7 +77,7 @@ export declare const proTableProps: {
|
|
|
80
77
|
* @description 表格样式
|
|
81
78
|
*/
|
|
82
79
|
tableStyle: {
|
|
83
|
-
type: PropType<CSSProperties>;
|
|
80
|
+
type: PropType<import("vue").CSSProperties | undefined>;
|
|
84
81
|
};
|
|
85
82
|
/**
|
|
86
83
|
* @Author gx12358
|
|
@@ -89,19 +86,19 @@ export declare const proTableProps: {
|
|
|
89
86
|
* @description 渲染按钮工具栏,支持返回一个 dom 数组,会自动增加 margin-right
|
|
90
87
|
*/
|
|
91
88
|
toolBarBtn: {
|
|
92
|
-
type: PropType<ToolBarBtnRender>;
|
|
89
|
+
type: PropType<import("./types/SlotsTypings").ToolBarBtnRender>;
|
|
93
90
|
default: () => undefined;
|
|
94
91
|
};
|
|
95
92
|
headerTitle: {
|
|
96
|
-
type: PropType<HeaderTitleRender>;
|
|
93
|
+
type: PropType<import("./types/SlotsTypings").HeaderTitleRender>;
|
|
97
94
|
default: () => undefined;
|
|
98
95
|
};
|
|
99
96
|
titleTip: {
|
|
100
|
-
type: PropType<TitleTipRender>;
|
|
97
|
+
type: PropType<import("./types/SlotsTypings").TitleTipRender>;
|
|
101
98
|
default: () => undefined;
|
|
102
99
|
};
|
|
103
100
|
titleTipText: {
|
|
104
|
-
type: PropType<string>;
|
|
101
|
+
type: PropType<string | undefined>;
|
|
105
102
|
default: string;
|
|
106
103
|
};
|
|
107
104
|
/**
|
|
@@ -111,7 +108,7 @@ export declare const proTableProps: {
|
|
|
111
108
|
* @description table 工具栏,设为 false 时不显示
|
|
112
109
|
*/
|
|
113
110
|
options: {
|
|
114
|
-
type: PropType<boolean | OptionConfig>;
|
|
111
|
+
type: PropType<boolean | import("./types/TableTypings").OptionConfig | undefined>;
|
|
115
112
|
default: boolean;
|
|
116
113
|
};
|
|
117
114
|
/**
|
|
@@ -121,10 +118,10 @@ export declare const proTableProps: {
|
|
|
121
118
|
* @description 列状态配置,可以配置是否浮动和是否展示
|
|
122
119
|
*/
|
|
123
120
|
columnsState: {
|
|
124
|
-
type: PropType<ColumnsStateType>;
|
|
121
|
+
type: PropType<import("./hooks/useColumnSetting").ColumnsStateType | undefined>;
|
|
125
122
|
};
|
|
126
123
|
optionsExtra: {
|
|
127
|
-
type: PropType<OptionsExtraRender>;
|
|
124
|
+
type: PropType<import("./types/SlotsTypings").OptionsExtraRender>;
|
|
128
125
|
default: () => undefined;
|
|
129
126
|
};
|
|
130
127
|
/**
|
|
@@ -134,7 +131,7 @@ export declare const proTableProps: {
|
|
|
134
131
|
* @description 列设置额外的元素
|
|
135
132
|
*/
|
|
136
133
|
settingExtra: {
|
|
137
|
-
type: PropType<SettingExtraRender>;
|
|
134
|
+
type: PropType<import("./types/SlotsTypings").SettingExtraRender>;
|
|
138
135
|
default: () => undefined;
|
|
139
136
|
};
|
|
140
137
|
/**
|
|
@@ -144,7 +141,7 @@ export declare const proTableProps: {
|
|
|
144
141
|
* @description 是否展示序号栏
|
|
145
142
|
*/
|
|
146
143
|
showIndex: {
|
|
147
|
-
type: PropType<boolean>;
|
|
144
|
+
type: PropType<boolean | undefined>;
|
|
148
145
|
default: boolean;
|
|
149
146
|
};
|
|
150
147
|
/**
|
|
@@ -154,7 +151,7 @@ export declare const proTableProps: {
|
|
|
154
151
|
* @description 翻页item设置
|
|
155
152
|
*/
|
|
156
153
|
pageItemRender: {
|
|
157
|
-
type: PropType<PageItemRender>;
|
|
154
|
+
type: PropType<import("./types/SlotsTypings").PageItemRender | undefined>;
|
|
158
155
|
default: () => undefined;
|
|
159
156
|
};
|
|
160
157
|
/**
|
|
@@ -164,7 +161,7 @@ export declare const proTableProps: {
|
|
|
164
161
|
* @description 表格大小
|
|
165
162
|
*/
|
|
166
163
|
size: {
|
|
167
|
-
type: PropType<
|
|
164
|
+
type: PropType<"small" | "large" | "middle" | undefined>;
|
|
168
165
|
default: string;
|
|
169
166
|
};
|
|
170
167
|
/**
|
|
@@ -174,7 +171,7 @@ export declare const proTableProps: {
|
|
|
174
171
|
* @description 表格全局对齐方式
|
|
175
172
|
*/
|
|
176
173
|
align: {
|
|
177
|
-
type: PropType<AlignType>;
|
|
174
|
+
type: PropType<import("ant-design-vue/es/vc-table/interface").AlignType | undefined>;
|
|
178
175
|
default: string;
|
|
179
176
|
};
|
|
180
177
|
/**
|
|
@@ -184,7 +181,7 @@ export declare const proTableProps: {
|
|
|
184
181
|
* @description 是否展示外边框和列边框
|
|
185
182
|
*/
|
|
186
183
|
bordered: {
|
|
187
|
-
type: PropType<boolean>;
|
|
184
|
+
type: PropType<boolean | undefined>;
|
|
188
185
|
default: boolean;
|
|
189
186
|
};
|
|
190
187
|
/**
|
|
@@ -193,7 +190,7 @@ export declare const proTableProps: {
|
|
|
193
190
|
* @lastTime 2022/2/8
|
|
194
191
|
* @description 是否列拖动
|
|
195
192
|
*/
|
|
196
|
-
draggabled: PropType<boolean>;
|
|
193
|
+
draggabled: PropType<boolean | undefined>;
|
|
197
194
|
/**
|
|
198
195
|
* @Author gx12358
|
|
199
196
|
* @DateTime 2022/2/8
|
|
@@ -201,7 +198,7 @@ export declare const proTableProps: {
|
|
|
201
198
|
* @description 根据屏幕大小或者scrollBreakpoint或者scroll?.x是否存在判断action列是否固定
|
|
202
199
|
*/
|
|
203
200
|
autoScroll: {
|
|
204
|
-
type: PropType<boolean>;
|
|
201
|
+
type: PropType<boolean | undefined>;
|
|
205
202
|
default: boolean;
|
|
206
203
|
};
|
|
207
204
|
/**
|
|
@@ -210,21 +207,21 @@ export declare const proTableProps: {
|
|
|
210
207
|
* @lastTime 2022/2/8
|
|
211
208
|
* @description 滚动断点支持数字(屏幕宽度);也支持md、xl,xxl等
|
|
212
209
|
*/
|
|
213
|
-
scrollBreakpoint: PropType<
|
|
210
|
+
scrollBreakpoint: PropType<number | import("./typing").Breakpoint | undefined>;
|
|
214
211
|
/**
|
|
215
212
|
* @Author gx12358
|
|
216
213
|
* @DateTime 2022/2/8
|
|
217
214
|
* @lastTime 2022/2/8
|
|
218
215
|
* @description modalTable时,自动固定滚动高度
|
|
219
216
|
*/
|
|
220
|
-
modalScroll: PropType<boolean>;
|
|
217
|
+
modalScroll: PropType<boolean | undefined>;
|
|
221
218
|
/**
|
|
222
219
|
* @Author gx12358
|
|
223
220
|
* @DateTime 2022/2/8
|
|
224
221
|
* @lastTime 2022/2/8
|
|
225
222
|
* @description 从不滚动
|
|
226
223
|
*/
|
|
227
|
-
neverScroll: PropType<boolean>;
|
|
224
|
+
neverScroll: PropType<boolean | undefined>;
|
|
228
225
|
/**
|
|
229
226
|
* @Author gx12358
|
|
230
227
|
* @DateTime 2022/2/8
|
|
@@ -232,7 +229,7 @@ export declare const proTableProps: {
|
|
|
232
229
|
* @description 空值时的显示,不设置时显示 -, false 可以关闭此功能
|
|
233
230
|
*/
|
|
234
231
|
columnEmptyText: {
|
|
235
|
-
type: PropType<ProFieldEmptyText>;
|
|
232
|
+
type: PropType<import("./types/TableTypings").ProFieldEmptyText | undefined>;
|
|
236
233
|
default: boolean;
|
|
237
234
|
};
|
|
238
235
|
/**
|
|
@@ -241,154 +238,165 @@ export declare const proTableProps: {
|
|
|
241
238
|
* @lastTime 2022/2/8
|
|
242
239
|
* @description Pro-Table 的方法
|
|
243
240
|
*/
|
|
244
|
-
onReset: PropType<(params?: Partial<Record<string, any>>) => any>;
|
|
245
|
-
onReload: PropType<(params?: Partial<Record<string, any>>) => any>;
|
|
246
|
-
onSubmit: PropType<(params
|
|
247
|
-
onSizeChange: PropType<(size: string) => any>;
|
|
248
|
-
onLoadingChange: PropType<(loading: boolean) => any>;
|
|
249
|
-
onRequestError: PropType<(e: Error) => void>;
|
|
250
|
-
onBeforeSearchSubmit: PropType<RequsetFunction<
|
|
251
|
-
onColumnsStateChange: PropType<(data: ColumnsState[]) => void>;
|
|
241
|
+
onReset: PropType<((params?: Partial<Record<string, any>> | undefined) => any) | undefined>;
|
|
242
|
+
onReload: PropType<((params?: Partial<Record<string, any>> | undefined) => any) | undefined>;
|
|
243
|
+
onSubmit: PropType<((params?: Partial<Record<string, any>> | undefined) => any) | undefined>;
|
|
244
|
+
onSizeChange: PropType<((size: string) => any) | undefined>;
|
|
245
|
+
onLoadingChange: PropType<((loading: boolean) => any) | undefined>;
|
|
246
|
+
onRequestError: PropType<((e: Error) => void) | undefined>;
|
|
247
|
+
onBeforeSearchSubmit: PropType<import("./types/TableTypings").RequsetFunction<import("./typing").DefaultRecordType> | undefined>;
|
|
248
|
+
onColumnsStateChange: PropType<((data: import("./hooks/useColumnSetting").ColumnsState[]) => void) | undefined>;
|
|
252
249
|
prefixCls: {
|
|
253
250
|
type: PropType<string>;
|
|
254
|
-
default:
|
|
251
|
+
default: any;
|
|
255
252
|
};
|
|
256
253
|
tableLayout: {
|
|
257
|
-
type: PropType<import("ant-design-vue/
|
|
258
|
-
default:
|
|
254
|
+
type: PropType<import("ant-design-vue/es/vc-table/interface").TableLayout>;
|
|
255
|
+
default: any;
|
|
259
256
|
};
|
|
260
257
|
rowClassName: {
|
|
261
|
-
type: PropType<string | import("ant-design-vue/
|
|
262
|
-
default:
|
|
258
|
+
type: PropType<string | import("ant-design-vue/es/vc-table/interface").RowClassName<any>>;
|
|
259
|
+
default: any;
|
|
263
260
|
};
|
|
264
261
|
title: {
|
|
265
|
-
type: PropType<import("ant-design-vue/
|
|
266
|
-
default:
|
|
262
|
+
type: PropType<import("ant-design-vue/es/vc-table/interface").PanelRender<any>>;
|
|
263
|
+
default: any;
|
|
267
264
|
};
|
|
268
265
|
footer: {
|
|
269
|
-
type: PropType<import("ant-design-vue/
|
|
270
|
-
default:
|
|
266
|
+
type: PropType<import("ant-design-vue/es/vc-table/interface").PanelRender<any>>;
|
|
267
|
+
default: any;
|
|
271
268
|
};
|
|
272
269
|
id: {
|
|
273
|
-
type: PropType<string
|
|
274
|
-
default:
|
|
270
|
+
type: PropType<string>;
|
|
271
|
+
default: any;
|
|
275
272
|
};
|
|
276
273
|
showHeader: {
|
|
277
|
-
type: PropType<boolean
|
|
278
|
-
default:
|
|
274
|
+
type: PropType<boolean>;
|
|
275
|
+
default: any;
|
|
279
276
|
};
|
|
280
277
|
components: {
|
|
281
|
-
type: PropType<import("ant-design-vue/
|
|
282
|
-
default:
|
|
278
|
+
type: PropType<import("ant-design-vue/es/vc-table/interface").TableComponents<any>>;
|
|
279
|
+
default: any;
|
|
283
280
|
};
|
|
284
281
|
customRow: {
|
|
285
|
-
type: PropType<import("ant-design-vue/
|
|
286
|
-
default:
|
|
282
|
+
type: PropType<import("ant-design-vue/es/vc-table/interface").GetComponentProps<any>>;
|
|
283
|
+
default: any;
|
|
287
284
|
};
|
|
288
285
|
customHeaderRow: {
|
|
289
|
-
type: PropType<import("ant-design-vue/
|
|
290
|
-
default:
|
|
286
|
+
type: PropType<import("ant-design-vue/es/vc-table/interface").GetComponentProps<import("ant-design-vue/es/vc-table/interface").ColumnType<any>[]>>;
|
|
287
|
+
default: any;
|
|
291
288
|
};
|
|
292
289
|
direction: {
|
|
293
|
-
type: PropType<"ltr" | "rtl"
|
|
294
|
-
default:
|
|
290
|
+
type: PropType<"ltr" | "rtl">;
|
|
291
|
+
default: any;
|
|
295
292
|
};
|
|
296
293
|
expandFixed: {
|
|
297
|
-
type: PropType<boolean | "
|
|
298
|
-
default:
|
|
294
|
+
type: PropType<boolean | "right" | "left">;
|
|
295
|
+
default: any;
|
|
299
296
|
};
|
|
300
297
|
expandColumnWidth: {
|
|
301
|
-
type: PropType<number
|
|
302
|
-
default:
|
|
298
|
+
type: PropType<number>;
|
|
299
|
+
default: any;
|
|
303
300
|
};
|
|
304
301
|
expandedRowKeys: {
|
|
305
|
-
type: PropType<import("ant-design-vue/
|
|
306
|
-
default: import("ant-design-vue/
|
|
302
|
+
type: PropType<import("ant-design-vue/es/vc-table/interface").Key[]>;
|
|
303
|
+
default: import("ant-design-vue/es/vc-table/interface").Key[];
|
|
307
304
|
};
|
|
308
305
|
defaultExpandedRowKeys: {
|
|
309
|
-
type: PropType<import("ant-design-vue/
|
|
310
|
-
default: import("ant-design-vue/
|
|
306
|
+
type: PropType<import("ant-design-vue/es/vc-table/interface").Key[]>;
|
|
307
|
+
default: import("ant-design-vue/es/vc-table/interface").Key[];
|
|
311
308
|
};
|
|
312
309
|
expandedRowRender: {
|
|
313
|
-
type: PropType<import("ant-design-vue/
|
|
314
|
-
default:
|
|
310
|
+
type: PropType<import("ant-design-vue/es/vc-table/interface").ExpandedRowRender<any>>;
|
|
311
|
+
default: any;
|
|
315
312
|
};
|
|
316
313
|
expandRowByClick: {
|
|
317
|
-
type: PropType<boolean
|
|
318
|
-
default:
|
|
314
|
+
type: PropType<boolean>;
|
|
315
|
+
default: any;
|
|
319
316
|
};
|
|
320
317
|
expandIcon: {
|
|
321
|
-
type: PropType<import("ant-design-vue/
|
|
322
|
-
default:
|
|
318
|
+
type: PropType<import("ant-design-vue/es/vc-table/interface").RenderExpandIcon<any>>;
|
|
319
|
+
default: any;
|
|
323
320
|
};
|
|
324
321
|
onExpand: {
|
|
325
|
-
type: PropType<(
|
|
326
|
-
default:
|
|
322
|
+
type: PropType<(expanded: boolean, record: any) => void>;
|
|
323
|
+
default: any;
|
|
327
324
|
};
|
|
328
325
|
onExpandedRowsChange: {
|
|
329
|
-
type: PropType<(
|
|
330
|
-
default:
|
|
326
|
+
type: PropType<(expandedKeys: import("ant-design-vue/es/vc-table/interface").Key[]) => void>;
|
|
327
|
+
default: any;
|
|
331
328
|
};
|
|
332
329
|
'onUpdate:expandedRowKeys': {
|
|
333
|
-
type: PropType<(
|
|
334
|
-
default:
|
|
330
|
+
type: PropType<(expandedKeys: import("ant-design-vue/es/vc-table/interface").Key[]) => void>;
|
|
331
|
+
default: any;
|
|
335
332
|
};
|
|
336
333
|
defaultExpandAllRows: {
|
|
337
|
-
type: PropType<boolean
|
|
338
|
-
default:
|
|
334
|
+
type: PropType<boolean>;
|
|
335
|
+
default: any;
|
|
339
336
|
};
|
|
340
337
|
indentSize: {
|
|
341
|
-
type: PropType<number
|
|
342
|
-
default:
|
|
338
|
+
type: PropType<number>;
|
|
339
|
+
default: any;
|
|
343
340
|
};
|
|
344
341
|
expandIconColumnIndex: {
|
|
345
|
-
type: PropType<number
|
|
346
|
-
default:
|
|
342
|
+
type: PropType<number>;
|
|
343
|
+
default: any;
|
|
347
344
|
};
|
|
348
345
|
showExpandColumn: {
|
|
349
346
|
type: BooleanConstructor;
|
|
350
|
-
default:
|
|
347
|
+
default: any;
|
|
351
348
|
};
|
|
352
349
|
expandedRowClassName: {
|
|
353
|
-
type: PropType<import("ant-design-vue/
|
|
354
|
-
default:
|
|
350
|
+
type: PropType<import("ant-design-vue/es/vc-table/interface").RowClassName<any>>;
|
|
351
|
+
default: any;
|
|
355
352
|
};
|
|
356
353
|
childrenColumnName: {
|
|
357
|
-
type: PropType<string
|
|
358
|
-
default:
|
|
354
|
+
type: PropType<string>;
|
|
355
|
+
default: any;
|
|
359
356
|
};
|
|
360
357
|
rowExpandable: {
|
|
361
|
-
type: PropType<(
|
|
362
|
-
default:
|
|
358
|
+
type: PropType<(record: any) => boolean>;
|
|
359
|
+
default: any;
|
|
363
360
|
};
|
|
364
361
|
sticky: {
|
|
365
|
-
type: PropType<boolean | import("ant-design-vue/
|
|
366
|
-
default:
|
|
362
|
+
type: PropType<boolean | import("ant-design-vue/es/vc-table/interface").TableSticky>;
|
|
363
|
+
default: any;
|
|
367
364
|
};
|
|
368
365
|
dropdownPrefixCls: StringConstructor;
|
|
369
366
|
dataSource: {
|
|
370
|
-
type: PropType<any[]
|
|
371
|
-
default:
|
|
367
|
+
type: PropType<any[]>;
|
|
368
|
+
default: any;
|
|
372
369
|
};
|
|
373
370
|
loading: {
|
|
374
|
-
type: PropType<boolean | import("
|
|
375
|
-
|
|
371
|
+
type: PropType<boolean | Partial<import("vue").ExtractPropTypes<{
|
|
372
|
+
prefixCls: StringConstructor;
|
|
373
|
+
spinning: {
|
|
374
|
+
type: BooleanConstructor;
|
|
375
|
+
default: any;
|
|
376
|
+
};
|
|
377
|
+
size: PropType<import("ant-design-vue/es/spin/Spin").SpinSize>;
|
|
378
|
+
wrapperClassName: StringConstructor;
|
|
379
|
+
tip: import("vue-types").VueTypeValidableDef<any>;
|
|
380
|
+
delay: NumberConstructor;
|
|
381
|
+
indicator: import("vue-types").VueTypeValidableDef<any>;
|
|
382
|
+
}>>>;
|
|
383
|
+
default: any;
|
|
376
384
|
};
|
|
377
385
|
locale: {
|
|
378
386
|
type: PropType<import("ant-design-vue/es/table/interface").TableLocale>;
|
|
379
|
-
default:
|
|
387
|
+
default: any;
|
|
380
388
|
};
|
|
381
389
|
onChange: {
|
|
382
390
|
type: PropType<(pagination: import("ant-design-vue/es/table/interface").TablePaginationConfig, filters: Record<string, import("ant-design-vue/es/table/interface").FilterValue | null>, sorter: import("ant-design-vue/es/table/interface").SorterResult<any> | import("ant-design-vue/es/table/interface").SorterResult<any>[], extra: import("ant-design-vue/es/table/interface").TableCurrentDataSource<any>) => void>;
|
|
383
|
-
default:
|
|
391
|
+
default: any;
|
|
384
392
|
};
|
|
385
393
|
onResizeColumn: {
|
|
386
394
|
type: PropType<(w: number, col: import("ant-design-vue/es/table/interface").ColumnType<any>) => void>;
|
|
387
|
-
default:
|
|
395
|
+
default: any;
|
|
388
396
|
};
|
|
389
397
|
getPopupContainer: {
|
|
390
398
|
type: PropType<import("ant-design-vue/es/table/interface").GetPopupContainer>;
|
|
391
|
-
default:
|
|
399
|
+
default: any;
|
|
392
400
|
};
|
|
393
401
|
scroll: {
|
|
394
402
|
type: PropType<{
|
|
@@ -397,20 +405,67 @@ export declare const proTableProps: {
|
|
|
397
405
|
} & {
|
|
398
406
|
scrollToFirstRowOnChange?: boolean | undefined;
|
|
399
407
|
}>;
|
|
400
|
-
default:
|
|
408
|
+
default: any;
|
|
401
409
|
};
|
|
402
410
|
sortDirections: {
|
|
403
411
|
type: PropType<import("ant-design-vue/es/table/interface").SortOrder[]>;
|
|
404
|
-
default:
|
|
412
|
+
default: any;
|
|
405
413
|
};
|
|
406
414
|
showSorterTooltip: {
|
|
407
|
-
type: PropType<boolean | import("
|
|
415
|
+
type: PropType<boolean | Partial<import("vue").ExtractPropTypes<{
|
|
416
|
+
title: import("vue-types").VueTypeValidableDef<any>;
|
|
417
|
+
trigger: PropType<import("ant-design-vue/es/tooltip/abstractTooltipProps").TriggerType | import("ant-design-vue/es/tooltip/abstractTooltipProps").TriggerType[]>;
|
|
418
|
+
visible: {
|
|
419
|
+
type: BooleanConstructor;
|
|
420
|
+
default: any;
|
|
421
|
+
};
|
|
422
|
+
defaultVisible: {
|
|
423
|
+
type: BooleanConstructor;
|
|
424
|
+
default: any;
|
|
425
|
+
};
|
|
426
|
+
placement: PropType<import("ant-design-vue/es/tooltip").TooltipPlacement>;
|
|
427
|
+
color: StringConstructor;
|
|
428
|
+
transitionName: StringConstructor;
|
|
429
|
+
overlayStyle: {
|
|
430
|
+
type: PropType<import("vue").CSSProperties>;
|
|
431
|
+
default: import("vue").CSSProperties;
|
|
432
|
+
};
|
|
433
|
+
overlayClassName: StringConstructor;
|
|
434
|
+
openClassName: StringConstructor;
|
|
435
|
+
prefixCls: StringConstructor;
|
|
436
|
+
mouseEnterDelay: NumberConstructor;
|
|
437
|
+
mouseLeaveDelay: NumberConstructor;
|
|
438
|
+
getPopupContainer: PropType<(triggerNode: HTMLElement) => HTMLElement>;
|
|
439
|
+
arrowPointAtCenter: {
|
|
440
|
+
type: BooleanConstructor;
|
|
441
|
+
default: any;
|
|
442
|
+
};
|
|
443
|
+
autoAdjustOverflow: {
|
|
444
|
+
type: PropType<boolean | import("ant-design-vue/es/tooltip").AdjustOverflow>;
|
|
445
|
+
default: boolean | import("ant-design-vue/es/tooltip").AdjustOverflow;
|
|
446
|
+
};
|
|
447
|
+
destroyTooltipOnHide: {
|
|
448
|
+
type: BooleanConstructor;
|
|
449
|
+
default: any;
|
|
450
|
+
};
|
|
451
|
+
align: {
|
|
452
|
+
type: PropType<import("ant-design-vue/es/vc-trigger/interface").AlignType>;
|
|
453
|
+
default: import("ant-design-vue/es/vc-trigger/interface").AlignType;
|
|
454
|
+
};
|
|
455
|
+
builtinPlacements: {
|
|
456
|
+
type: PropType<import("ant-design-vue/es/vc-trigger/interface").BuildInPlacements>;
|
|
457
|
+
default: import("ant-design-vue/es/vc-trigger/interface").BuildInPlacements;
|
|
458
|
+
};
|
|
459
|
+
children: ArrayConstructor;
|
|
460
|
+
onVisibleChange: PropType<(vis: boolean) => void>;
|
|
461
|
+
'onUpdate:visible': PropType<(vis: boolean) => void>;
|
|
462
|
+
}>>>;
|
|
408
463
|
default: boolean;
|
|
409
464
|
};
|
|
410
465
|
contextSlots: {
|
|
411
466
|
type: PropType<import("ant-design-vue/es/table/context").ContextSlots>;
|
|
412
467
|
};
|
|
413
468
|
transformCellText: {
|
|
414
|
-
type: PropType<import("ant-design-vue/
|
|
469
|
+
type: PropType<import("ant-design-vue/es/vc-table/interface").TransformCellText<any>>;
|
|
415
470
|
};
|
|
416
471
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import type { VNodeChild } from 'vue';
|
|
2
|
-
import type { TooltipProps } from 'ant-design-vue/es/tooltip/Tooltip';
|
|
3
1
|
import type { RecordType, VueNode } from '@gx-design-vue/pro-utils';
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
2
|
+
import type { DefaultRecordType } from '../typing';
|
|
3
|
+
import type { ColumnType } from '../_utils';
|
|
6
4
|
/**
|
|
7
5
|
* @param text 文本框
|
|
8
6
|
* @param date 日期 YYYY-MM-DD
|
|
@@ -23,7 +21,7 @@ export declare type ProFieldValueType = 'text' | 'date' | 'select' | 'treeSelect
|
|
|
23
21
|
export declare type ProFieldValueFormat = 'YYYY-MM-DD' | 'YYYY-MM' | 'YYYY-MM-DD HH:mm:ss' | 'HH:mm:ss';
|
|
24
22
|
export declare type ProSchemaValueEnumType = {
|
|
25
23
|
/** @name 演示的文案 */
|
|
26
|
-
text:
|
|
24
|
+
text: VueNode | JSX.Element;
|
|
27
25
|
/** @name 演示的value值 */
|
|
28
26
|
value: any;
|
|
29
27
|
/** @name 是否禁用 */
|
|
@@ -66,70 +64,8 @@ export declare type ProSearchMap<ValueType = 'text'> = {
|
|
|
66
64
|
*/
|
|
67
65
|
valueEnum?: ProSchemaValueEnumType[];
|
|
68
66
|
};
|
|
69
|
-
export declare type
|
|
70
|
-
|
|
71
|
-
sorter?: boolean | CompareFn<RecordType> | {
|
|
72
|
-
compare?: CompareFn<RecordType>;
|
|
73
|
-
/** Config multiple sorter order priority */
|
|
74
|
-
multiple?: number;
|
|
75
|
-
};
|
|
76
|
-
sortOrder?: SortOrder;
|
|
77
|
-
defaultSortOrder?: SortOrder;
|
|
78
|
-
sortDirections?: SortOrder[];
|
|
79
|
-
showSorterTooltip?: boolean | TooltipProps;
|
|
80
|
-
filtered?: boolean;
|
|
81
|
-
filters?: ColumnFilterItem[];
|
|
82
|
-
filterDropdown?: VueNode | ((props: FilterDropdownProps<RecordType>) => VueNode);
|
|
83
|
-
filterMultiple?: boolean;
|
|
84
|
-
filteredValue?: FilterValue | null;
|
|
85
|
-
defaultFilteredValue?: FilterValue | null;
|
|
86
|
-
filterIcon?: VueNode | ((opt: {
|
|
87
|
-
filtered: boolean;
|
|
88
|
-
column: ProColumns;
|
|
89
|
-
}) => VueNode);
|
|
90
|
-
onFilter?: (value: string | number | boolean, record: RecordType) => boolean;
|
|
91
|
-
filterDropdownVisible?: boolean;
|
|
92
|
-
onFilterDropdownVisibleChange?: (visible: boolean) => void;
|
|
93
|
-
responsive?: Breakpoint[];
|
|
94
|
-
children?: ProColumn[];
|
|
95
|
-
colSpan?: number;
|
|
96
|
-
dataIndex?: DataIndex;
|
|
97
|
-
customRender?: (opt: {
|
|
98
|
-
value: any;
|
|
99
|
-
text: any;
|
|
100
|
-
record: RecordType;
|
|
101
|
-
index: number;
|
|
102
|
-
column: ProColumns;
|
|
103
|
-
}) => any | RenderedCell<RecordType>;
|
|
104
|
-
rowSpan?: number;
|
|
105
|
-
width?: number | string;
|
|
106
|
-
minWidth?: number;
|
|
107
|
-
maxWidth?: number;
|
|
108
|
-
resizable?: boolean;
|
|
109
|
-
customCell?: GetComponentProps<RecordType>;
|
|
110
|
-
/** @deprecated Please use `onCell` instead */
|
|
111
|
-
onCellClick?: (record: RecordType, e: MouseEvent) => void;
|
|
112
|
-
key?: Key;
|
|
113
|
-
class?: string;
|
|
114
|
-
className?: string;
|
|
115
|
-
fixed?: FixedType;
|
|
116
|
-
customHeaderCell?: GetComponentProps<ProColumns[]>;
|
|
117
|
-
ellipsis?: CellEllipsisType;
|
|
118
|
-
align?: AlignType;
|
|
119
|
-
customFilterDropdown?: boolean;
|
|
120
|
-
/** @deprecated Please use `v-slot:filterIcon` `v-slot:bodyCell` `v-slot:headerCell` instead */
|
|
121
|
-
slots?: {
|
|
122
|
-
filterIcon?: string;
|
|
123
|
-
filterDropdown?: string;
|
|
124
|
-
customRender?: string;
|
|
125
|
-
title?: string;
|
|
126
|
-
};
|
|
127
|
-
/**
|
|
128
|
-
* @private Internal usage.
|
|
129
|
-
*
|
|
130
|
-
* !!! DO NOT USE IN PRODUCTION ENVIRONMENT !!!
|
|
131
|
-
*/
|
|
132
|
-
__originColumn__?: any;
|
|
67
|
+
export declare type ProColumnType<RecordType = DefaultRecordType> = ColumnType<RecordType> & {
|
|
68
|
+
children?: ProColumnsType<RecordType>;
|
|
133
69
|
uuid?: string | number;
|
|
134
70
|
/** 不在列表中显示 */
|
|
135
71
|
show?: boolean;
|
|
@@ -145,11 +81,11 @@ export declare type ProColumn = {
|
|
|
145
81
|
columnEmptyText?: string;
|
|
146
82
|
valueType?: ProColumnsValueType;
|
|
147
83
|
};
|
|
84
|
+
export declare type ProColumnsType<RecordType = DefaultRecordType> = (ProColumnType<RecordType>)[];
|
|
148
85
|
export declare type ProColumnsValueType = 'text' | 'link' | 'time' | 'dateMonth' | 'dateTime' | {
|
|
149
86
|
node?: string;
|
|
150
87
|
class?: string;
|
|
151
88
|
attr?: string;
|
|
152
89
|
click?: () => void;
|
|
153
90
|
};
|
|
154
|
-
export declare type ProColumns = ProColumn[];
|
|
155
91
|
export {};
|