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