@gx-design-vue/pro-table 0.2.0-beta.13 → 0.2.0-beta.131
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 +253 -792
- package/dist/_utils/ant-design-vue/index.d.ts +4 -2
- package/dist/_utils/ant-design-vue/input/typings.d.ts +1 -0
- package/dist/_utils/ant-design-vue/table/props.d.ts +33 -2
- package/dist/_utils/ant-design-vue/table/typings.d.ts +6 -5
- package/dist/_utils/ant-design-vue/tooltip/typings.d.ts +1 -0
- package/dist/_utils/index.d.ts +1 -1
- package/dist/components/Form/components/RequestSelect.d.ts +39 -0
- package/dist/components/Form/{useForm.d.ts → hooks/useForm.d.ts} +1 -1
- package/dist/components/Form/index.d.ts +15 -27
- package/dist/components/Form/style.d.ts +2 -5
- package/dist/components/Form/utils/config.d.ts +5 -0
- package/dist/components/Form/utils/dateFormat.d.ts +20 -0
- package/dist/components/ListToolBar/index.d.ts +20 -33
- package/dist/components/ListToolBar/style.d.ts +2 -5
- package/dist/components/ToolBar/FullscreenIcon.d.ts +1 -1
- package/dist/components/ToolBar/index.d.ts +22 -23
- package/dist/context/TableContext.d.ts +15 -16
- package/dist/hooks/tryOnActivated.d.ts +2 -0
- package/dist/hooks/useColumnSetting.d.ts +6 -7
- package/dist/hooks/useColumns.d.ts +101 -0
- package/dist/hooks/useDebounceFn.d.ts +2 -2
- package/dist/hooks/useFetchData.d.ts +21 -16
- package/dist/hooks/useLoading.d.ts +5 -8
- package/dist/hooks/usePagination.d.ts +7 -6
- package/dist/hooks/useRowSelection.d.ts +11 -8
- package/dist/hooks/useTable.d.ts +40 -11
- package/dist/hooks/useTableForm.d.ts +9 -9
- package/dist/hooks/useTableScroll.d.ts +17 -18
- package/dist/hooks/useTableSize.d.ts +4 -7
- package/dist/index.d.ts +8 -7
- package/dist/pro-table.js +2307 -0
- package/dist/pro-table.umd.cjs +12 -0
- package/dist/props.d.ts +94 -377
- package/dist/style.d.ts +2 -6
- package/dist/types/ColumnTypings.d.ts +54 -16
- package/dist/types/SlotsTypings.d.ts +47 -9
- package/dist/types/TableTypings.d.ts +124 -76
- package/dist/utils/utils.d.ts +4 -1
- package/package.json +31 -51
- package/volar.d.ts +3 -3
- package/dist/components/ColumnSetting/hooks/useRefFunction/index.d.ts +0 -1
- package/dist/components/ColumnSetting/index.d.ts +0 -35
- package/dist/components/ColumnSetting/style.d.ts +0 -6
- package/dist/components/ToolBar/DensityIcon.d.ts +0 -3
- package/dist/hooks/useColums.d.ts +0 -24
- package/dist/pro-table.mjs +0 -35100
- package/dist/pro-table.umd.js +0 -364
- package/dist/typing.d.ts +0 -1
- package/dist/utils/config.d.ts +0 -1
package/dist/props.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import type { PropType } from 'vue';
|
|
2
|
-
import type {
|
|
1
|
+
import type { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import type { ProTableProps, ProTableRowSelection, SearchConfig } from './types/TableTypings';
|
|
3
3
|
export declare const proTableProps: {
|
|
4
4
|
rowSelection: {
|
|
5
|
-
type: PropType<ProTableRowSelection
|
|
5
|
+
type: PropType<ProTableRowSelection>;
|
|
6
6
|
default: undefined;
|
|
7
7
|
};
|
|
8
8
|
columns: {
|
|
9
|
-
type: PropType<
|
|
10
|
-
default: never[];
|
|
9
|
+
type: PropType<ProTableProps["columns"]>;
|
|
10
|
+
default: () => never[];
|
|
11
11
|
};
|
|
12
12
|
pagination: {
|
|
13
|
-
type: PropType<
|
|
13
|
+
type: PropType<ProTableProps["pagination"]>;
|
|
14
14
|
default: () => undefined;
|
|
15
15
|
};
|
|
16
16
|
rowKey: {
|
|
17
|
-
type: PropType<string
|
|
18
|
-
default:
|
|
17
|
+
type: PropType<string>;
|
|
18
|
+
default: string;
|
|
19
19
|
};
|
|
20
20
|
/**
|
|
21
21
|
* @Author gx12358
|
|
@@ -24,19 +24,21 @@ export declare const proTableProps: {
|
|
|
24
24
|
* @description 获取 dataSource 的方法
|
|
25
25
|
*/
|
|
26
26
|
request: {
|
|
27
|
-
type: PropType<
|
|
28
|
-
default:
|
|
27
|
+
type: PropType<ProTableProps["request"]>;
|
|
28
|
+
default: undefined;
|
|
29
|
+
};
|
|
30
|
+
virtualScroll: PropType<ProTableProps["virtualScroll"]>;
|
|
31
|
+
params: {
|
|
32
|
+
type: PropType<ProTableProps["params"]>;
|
|
33
|
+
default: () => {};
|
|
29
34
|
};
|
|
30
|
-
virtualScroll: PropType<boolean | undefined>;
|
|
31
|
-
params: PropType<Record<string, unknown> | undefined>;
|
|
32
|
-
postData: PropType<((data: any[]) => any) | undefined>;
|
|
33
35
|
waitRequest: {
|
|
34
|
-
type: PropType<
|
|
36
|
+
type: PropType<ProTableProps["waitRequest"]>;
|
|
35
37
|
default: boolean;
|
|
36
38
|
};
|
|
37
|
-
polling: PropType<
|
|
39
|
+
polling: PropType<ProTableProps["polling"]>;
|
|
38
40
|
debounceTime: {
|
|
39
|
-
type: PropType<
|
|
41
|
+
type: PropType<ProTableProps["debounceTime"]>;
|
|
40
42
|
default: number;
|
|
41
43
|
};
|
|
42
44
|
/**
|
|
@@ -46,11 +48,11 @@ export declare const proTableProps: {
|
|
|
46
48
|
* @description 是否显示搜索表单,传入对象时为搜索表单的配置
|
|
47
49
|
*/
|
|
48
50
|
search: {
|
|
49
|
-
type: PropType<
|
|
51
|
+
type: PropType<ProTableProps["search"]>;
|
|
50
52
|
default: () => SearchConfig;
|
|
51
53
|
};
|
|
52
54
|
searchMap: {
|
|
53
|
-
type: PropType<
|
|
55
|
+
type: PropType<ProTableProps["searchMap"]>;
|
|
54
56
|
default: () => never[];
|
|
55
57
|
};
|
|
56
58
|
/**
|
|
@@ -60,45 +62,45 @@ export declare const proTableProps: {
|
|
|
60
62
|
* @description 自定义表格渲染模式:默认表格展示,也可以自定义数据列表展示
|
|
61
63
|
*/
|
|
62
64
|
customRender: {
|
|
63
|
-
type: PropType<
|
|
65
|
+
type: PropType<ProTableProps["customRender"]>;
|
|
64
66
|
default: () => undefined;
|
|
65
67
|
};
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
* @lastTime 2022/2/8
|
|
70
|
-
* @description 添加表格class
|
|
71
|
-
*/
|
|
72
|
-
tableClassName: PropType<string | undefined>;
|
|
73
|
-
/**
|
|
74
|
-
* @Author gx12358
|
|
75
|
-
* @DateTime 2022/2/8
|
|
76
|
-
* @lastTime 2022/2/8
|
|
77
|
-
* @description 表格样式
|
|
78
|
-
*/
|
|
79
|
-
tableStyle: {
|
|
80
|
-
type: PropType<import("vue").CSSProperties | undefined>;
|
|
68
|
+
useDefaultScrollStyle: {
|
|
69
|
+
type: PropType<ProTableProps["useDefaultScrollStyle"]>;
|
|
70
|
+
default: () => boolean;
|
|
81
71
|
};
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
* @DateTime 2022/2/8
|
|
85
|
-
* @lastTime 2022/2/8
|
|
86
|
-
* @description 渲染按钮工具栏,支持返回一个 dom 数组,会自动增加 margin-right
|
|
87
|
-
*/
|
|
88
|
-
toolBarBtn: {
|
|
89
|
-
type: PropType<import("./types/SlotsTypings").ToolBarBtnRender>;
|
|
72
|
+
emptyText: {
|
|
73
|
+
type: PropType<ProTableProps["emptyText"]>;
|
|
90
74
|
default: () => undefined;
|
|
91
75
|
};
|
|
76
|
+
showLoading: {
|
|
77
|
+
type: PropType<ProTableProps["showLoading"]>;
|
|
78
|
+
default: boolean;
|
|
79
|
+
};
|
|
80
|
+
tableProps: {
|
|
81
|
+
type: PropType<ProTableProps["tableProps"]>;
|
|
82
|
+
default: () => ProTableProps["tableProps"];
|
|
83
|
+
};
|
|
84
|
+
emptyTextProps: {
|
|
85
|
+
type: PropType<ProTableProps["emptyTextProps"]>;
|
|
86
|
+
default: () => ProTableProps["emptyTextProps"];
|
|
87
|
+
};
|
|
88
|
+
actionProps: {
|
|
89
|
+
type: PropType<ProTableProps["actionProps"]>;
|
|
90
|
+
default: () => {
|
|
91
|
+
placement: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
92
94
|
headerTitle: {
|
|
93
|
-
type: PropType<
|
|
95
|
+
type: PropType<ProTableProps["headerTitle"]>;
|
|
94
96
|
default: () => undefined;
|
|
95
97
|
};
|
|
96
98
|
titleTip: {
|
|
97
|
-
type: PropType<
|
|
99
|
+
type: PropType<ProTableProps["titleTip"]>;
|
|
98
100
|
default: () => undefined;
|
|
99
101
|
};
|
|
100
102
|
titleTipText: {
|
|
101
|
-
type: PropType<
|
|
103
|
+
type: PropType<ProTableProps["titleTipText"]>;
|
|
102
104
|
default: string;
|
|
103
105
|
};
|
|
104
106
|
/**
|
|
@@ -108,22 +110,9 @@ export declare const proTableProps: {
|
|
|
108
110
|
* @description table 工具栏,设为 false 时不显示
|
|
109
111
|
*/
|
|
110
112
|
options: {
|
|
111
|
-
type: PropType<
|
|
113
|
+
type: PropType<ProTableProps["options"]>;
|
|
112
114
|
default: boolean;
|
|
113
115
|
};
|
|
114
|
-
/**
|
|
115
|
-
* @Author gx12358
|
|
116
|
-
* @DateTime 2022/2/8
|
|
117
|
-
* @lastTime 2022/2/8
|
|
118
|
-
* @description 列状态配置,可以配置是否浮动和是否展示
|
|
119
|
-
*/
|
|
120
|
-
columnsState: {
|
|
121
|
-
type: PropType<import("./hooks/useColumnSetting").ColumnsStateType | undefined>;
|
|
122
|
-
};
|
|
123
|
-
optionsExtra: {
|
|
124
|
-
type: PropType<import("./types/SlotsTypings").OptionsExtraRender>;
|
|
125
|
-
default: () => undefined;
|
|
126
|
-
};
|
|
127
116
|
/**
|
|
128
117
|
* @Author gx12358
|
|
129
118
|
* @DateTime 2022/2/8
|
|
@@ -131,9 +120,13 @@ export declare const proTableProps: {
|
|
|
131
120
|
* @description 列设置额外的元素
|
|
132
121
|
*/
|
|
133
122
|
settingExtra: {
|
|
134
|
-
type: PropType<
|
|
123
|
+
type: PropType<ProTableProps["settingExtra"]>;
|
|
135
124
|
default: () => undefined;
|
|
136
125
|
};
|
|
126
|
+
keepAliveReload: {
|
|
127
|
+
type: PropType<ProTableProps["keepAliveReload"]>;
|
|
128
|
+
default: boolean;
|
|
129
|
+
};
|
|
137
130
|
/**
|
|
138
131
|
* @Author gx12358
|
|
139
132
|
* @DateTime 2022/2/8
|
|
@@ -141,7 +134,17 @@ export declare const proTableProps: {
|
|
|
141
134
|
* @description 是否展示序号栏
|
|
142
135
|
*/
|
|
143
136
|
showIndex: {
|
|
144
|
-
type: PropType<
|
|
137
|
+
type: PropType<ProTableProps["showIndex"]>;
|
|
138
|
+
default: boolean;
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* @Author gx12358
|
|
142
|
+
* @DateTime 2024/11/15
|
|
143
|
+
* @lastTime 2024/11/15
|
|
144
|
+
* @description 是否已card分割
|
|
145
|
+
*/
|
|
146
|
+
cardBordered: {
|
|
147
|
+
type: PropType<ProTableProps["showIndex"]>;
|
|
145
148
|
default: boolean;
|
|
146
149
|
};
|
|
147
150
|
/**
|
|
@@ -151,7 +154,7 @@ export declare const proTableProps: {
|
|
|
151
154
|
* @description 翻页item设置
|
|
152
155
|
*/
|
|
153
156
|
pageItemRender: {
|
|
154
|
-
type: PropType<
|
|
157
|
+
type: PropType<ProTableProps["pageItemRender"]>;
|
|
155
158
|
default: () => undefined;
|
|
156
159
|
};
|
|
157
160
|
/**
|
|
@@ -161,7 +164,7 @@ export declare const proTableProps: {
|
|
|
161
164
|
* @description 表格大小
|
|
162
165
|
*/
|
|
163
166
|
size: {
|
|
164
|
-
type: PropType<"
|
|
167
|
+
type: PropType<ProTableProps["size"]>;
|
|
165
168
|
default: string;
|
|
166
169
|
};
|
|
167
170
|
/**
|
|
@@ -171,26 +174,16 @@ export declare const proTableProps: {
|
|
|
171
174
|
* @description 表格全局对齐方式
|
|
172
175
|
*/
|
|
173
176
|
align: {
|
|
174
|
-
type: PropType<
|
|
177
|
+
type: PropType<ProTableProps["align"]>;
|
|
175
178
|
default: string;
|
|
176
179
|
};
|
|
177
|
-
/**
|
|
178
|
-
* @Author gx12358
|
|
179
|
-
* @DateTime 2022/2/8
|
|
180
|
-
* @lastTime 2022/2/8
|
|
181
|
-
* @description 是否展示外边框和列边框
|
|
182
|
-
*/
|
|
183
|
-
bordered: {
|
|
184
|
-
type: PropType<boolean | undefined>;
|
|
185
|
-
default: boolean;
|
|
186
|
-
};
|
|
187
180
|
/**
|
|
188
181
|
* @Author gx12358
|
|
189
182
|
* @DateTime 2022/2/8
|
|
190
183
|
* @lastTime 2022/2/8
|
|
191
184
|
* @description 是否列拖动
|
|
192
185
|
*/
|
|
193
|
-
|
|
186
|
+
draggable: PropType<ProTableProps["draggable"]>;
|
|
194
187
|
/**
|
|
195
188
|
* @Author gx12358
|
|
196
189
|
* @DateTime 2022/2/8
|
|
@@ -198,7 +191,7 @@ export declare const proTableProps: {
|
|
|
198
191
|
* @description 根据屏幕大小或者scrollBreakpoint或者scroll?.x是否存在判断action列是否固定
|
|
199
192
|
*/
|
|
200
193
|
autoScroll: {
|
|
201
|
-
type: PropType<
|
|
194
|
+
type: PropType<ProTableProps["autoScroll"]>;
|
|
202
195
|
default: boolean;
|
|
203
196
|
};
|
|
204
197
|
/**
|
|
@@ -207,21 +200,21 @@ export declare const proTableProps: {
|
|
|
207
200
|
* @lastTime 2022/2/8
|
|
208
201
|
* @description 滚动断点支持数字(屏幕宽度);也支持md、xl,xxl等
|
|
209
202
|
*/
|
|
210
|
-
scrollBreakpoint: PropType<
|
|
203
|
+
scrollBreakpoint: PropType<ProTableProps["scrollBreakpoint"]>;
|
|
211
204
|
/**
|
|
212
205
|
* @Author gx12358
|
|
213
206
|
* @DateTime 2022/2/8
|
|
214
207
|
* @lastTime 2022/2/8
|
|
215
208
|
* @description modalTable时,自动固定滚动高度
|
|
216
209
|
*/
|
|
217
|
-
modalScroll: PropType<
|
|
210
|
+
modalScroll: PropType<ProTableProps["modalScroll"]>;
|
|
218
211
|
/**
|
|
219
212
|
* @Author gx12358
|
|
220
213
|
* @DateTime 2022/2/8
|
|
221
214
|
* @lastTime 2022/2/8
|
|
222
215
|
* @description 从不滚动
|
|
223
216
|
*/
|
|
224
|
-
neverScroll: PropType<
|
|
217
|
+
neverScroll: PropType<ProTableProps["neverScroll"]>;
|
|
225
218
|
/**
|
|
226
219
|
* @Author gx12358
|
|
227
220
|
* @DateTime 2022/2/8
|
|
@@ -229,7 +222,7 @@ export declare const proTableProps: {
|
|
|
229
222
|
* @description 空值时的显示,不设置时显示 -, false 可以关闭此功能
|
|
230
223
|
*/
|
|
231
224
|
columnEmptyText: {
|
|
232
|
-
type: PropType<
|
|
225
|
+
type: PropType<ProTableProps["columnEmptyText"]>;
|
|
233
226
|
default: boolean;
|
|
234
227
|
};
|
|
235
228
|
/**
|
|
@@ -238,308 +231,32 @@ export declare const proTableProps: {
|
|
|
238
231
|
* @lastTime 2022/2/8
|
|
239
232
|
* @description Pro-Table 的方法
|
|
240
233
|
*/
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
tableLayout: {
|
|
254
|
-
type: PropType<import("ant-design-vue/es/vc-table/interface").TableLayout>;
|
|
255
|
-
default: import("ant-design-vue/es/vc-table/interface").TableLayout;
|
|
256
|
-
};
|
|
257
|
-
rowClassName: {
|
|
258
|
-
type: PropType<string | import("ant-design-vue/es/vc-table/interface").RowClassName<any>>;
|
|
259
|
-
default: string | import("ant-design-vue/es/vc-table/interface").RowClassName<any>;
|
|
260
|
-
};
|
|
261
|
-
title: {
|
|
262
|
-
type: PropType<import("ant-design-vue/es/vc-table/interface").PanelRender<any>>;
|
|
263
|
-
default: import("ant-design-vue/es/vc-table/interface").PanelRender<any>;
|
|
264
|
-
};
|
|
265
|
-
footer: {
|
|
266
|
-
type: PropType<import("ant-design-vue/es/vc-table/interface").PanelRender<any>>;
|
|
267
|
-
default: import("ant-design-vue/es/vc-table/interface").PanelRender<any>;
|
|
268
|
-
};
|
|
269
|
-
id: {
|
|
270
|
-
type: PropType<string>;
|
|
271
|
-
default: string;
|
|
272
|
-
};
|
|
273
|
-
showHeader: {
|
|
274
|
-
type: BooleanConstructor;
|
|
275
|
-
default: boolean;
|
|
276
|
-
};
|
|
277
|
-
components: {
|
|
278
|
-
type: PropType<import("ant-design-vue/es/vc-table/interface").TableComponents<any>>;
|
|
279
|
-
default: import("ant-design-vue/es/vc-table/interface").TableComponents<any>;
|
|
280
|
-
};
|
|
281
|
-
customRow: {
|
|
282
|
-
type: PropType<import("ant-design-vue/es/vc-table/interface").GetComponentProps<any>>;
|
|
283
|
-
default: import("ant-design-vue/es/vc-table/interface").GetComponentProps<any>;
|
|
284
|
-
};
|
|
285
|
-
customHeaderRow: {
|
|
286
|
-
type: PropType<import("ant-design-vue/es/vc-table/interface").GetComponentProps<import("ant-design-vue/es/vc-table/interface").ColumnType<any>[]>>;
|
|
287
|
-
default: import("ant-design-vue/es/vc-table/interface").GetComponentProps<import("ant-design-vue/es/vc-table/interface").ColumnType<any>[]>;
|
|
288
|
-
};
|
|
289
|
-
direction: {
|
|
290
|
-
type: PropType<"ltr" | "rtl">;
|
|
291
|
-
default: "ltr" | "rtl";
|
|
292
|
-
};
|
|
293
|
-
expandFixed: {
|
|
294
|
-
type: PropType<boolean | "right" | "left">;
|
|
295
|
-
default: boolean | "right" | "left";
|
|
296
|
-
};
|
|
297
|
-
expandColumnWidth: NumberConstructor;
|
|
298
|
-
expandedRowKeys: {
|
|
299
|
-
type: PropType<import("ant-design-vue/es/vc-table/interface").Key[]>;
|
|
300
|
-
default: import("ant-design-vue/es/vc-table/interface").Key[];
|
|
301
|
-
};
|
|
302
|
-
defaultExpandedRowKeys: {
|
|
303
|
-
type: PropType<import("ant-design-vue/es/vc-table/interface").Key[]>;
|
|
304
|
-
default: import("ant-design-vue/es/vc-table/interface").Key[];
|
|
305
|
-
};
|
|
306
|
-
expandedRowRender: {
|
|
307
|
-
type: PropType<import("ant-design-vue/es/vc-table/interface").ExpandedRowRender<any>>;
|
|
308
|
-
default: import("ant-design-vue/es/vc-table/interface").ExpandedRowRender<any>;
|
|
309
|
-
};
|
|
310
|
-
expandRowByClick: {
|
|
311
|
-
type: BooleanConstructor;
|
|
312
|
-
default: boolean;
|
|
313
|
-
};
|
|
314
|
-
expandIcon: {
|
|
315
|
-
type: PropType<import("ant-design-vue/es/vc-table/interface").RenderExpandIcon<any>>;
|
|
316
|
-
default: import("ant-design-vue/es/vc-table/interface").RenderExpandIcon<any>;
|
|
317
|
-
};
|
|
318
|
-
onExpand: {
|
|
319
|
-
type: PropType<(expanded: boolean, record: any) => void>;
|
|
320
|
-
default: (expanded: boolean, record: any) => void;
|
|
321
|
-
}; /**
|
|
322
|
-
* @Author gx12358
|
|
323
|
-
* @DateTime 2022/2/8
|
|
324
|
-
* @lastTime 2022/2/8
|
|
325
|
-
* @description 是否展示外边框和列边框
|
|
326
|
-
*/
|
|
327
|
-
onExpandedRowsChange: {
|
|
328
|
-
type: PropType<(expandedKeys: import("ant-design-vue/es/vc-table/interface").Key[]) => void>;
|
|
329
|
-
default: (expandedKeys: import("ant-design-vue/es/vc-table/interface").Key[]) => void;
|
|
330
|
-
}; /**
|
|
331
|
-
* @Author gx12358
|
|
332
|
-
* @DateTime 2022/2/8
|
|
333
|
-
* @lastTime 2022/2/8
|
|
334
|
-
* @description 是否列拖动
|
|
335
|
-
*/
|
|
336
|
-
'onUpdate:expandedRowKeys': {
|
|
337
|
-
type: PropType<(expandedKeys: import("ant-design-vue/es/vc-table/interface").Key[]) => void>;
|
|
338
|
-
default: (expandedKeys: import("ant-design-vue/es/vc-table/interface").Key[]) => void;
|
|
339
|
-
};
|
|
340
|
-
defaultExpandAllRows: {
|
|
341
|
-
type: BooleanConstructor;
|
|
342
|
-
default: boolean;
|
|
343
|
-
};
|
|
344
|
-
indentSize: NumberConstructor;
|
|
345
|
-
expandIconColumnIndex: NumberConstructor;
|
|
346
|
-
showExpandColumn: {
|
|
347
|
-
type: BooleanConstructor;
|
|
348
|
-
default: boolean;
|
|
349
|
-
};
|
|
350
|
-
expandedRowClassName: {
|
|
351
|
-
type: PropType<import("ant-design-vue/es/vc-table/interface").RowClassName<any>>;
|
|
352
|
-
default: import("ant-design-vue/es/vc-table/interface").RowClassName<any>;
|
|
353
|
-
};
|
|
354
|
-
childrenColumnName: {
|
|
355
|
-
type: PropType<string>;
|
|
356
|
-
default: string;
|
|
357
|
-
};
|
|
358
|
-
rowExpandable: {
|
|
359
|
-
type: PropType<(record: any) => boolean>;
|
|
360
|
-
default: (record: any) => boolean;
|
|
361
|
-
};
|
|
362
|
-
sticky: {
|
|
363
|
-
type: PropType<boolean | import("ant-design-vue/es/vc-table/interface").TableSticky>;
|
|
364
|
-
default: boolean | import("ant-design-vue/es/vc-table/interface").TableSticky;
|
|
365
|
-
};
|
|
366
|
-
dropdownPrefixCls: StringConstructor;
|
|
367
|
-
dataSource: {
|
|
368
|
-
type: PropType<any[]>;
|
|
369
|
-
default: any[];
|
|
234
|
+
postData: PropType<ProTableProps["postData"]>;
|
|
235
|
+
onReset: PropType<ProTableProps["onReset"]>;
|
|
236
|
+
onReload: PropType<ProTableProps["onReload"]>;
|
|
237
|
+
onSubmit: PropType<ProTableProps["onSubmit"]>;
|
|
238
|
+
onSizeChange: PropType<ProTableProps["onSizeChange"]>;
|
|
239
|
+
onLoadingChange: PropType<ProTableProps["onLoadingChange"]>;
|
|
240
|
+
onRequestError: PropType<ProTableProps["onRequestError"]>;
|
|
241
|
+
onBeforeSearchSubmit: PropType<ProTableProps["onBeforeSearchSubmit"]>;
|
|
242
|
+
transformCellText: PropType<import("ant-design-vue/es/table/Table").TableProps["transformCellText"]>;
|
|
243
|
+
bordered: {
|
|
244
|
+
type: PropType<import("ant-design-vue/es/table/Table").TableProps["bordered"]>;
|
|
245
|
+
default: undefined;
|
|
370
246
|
};
|
|
371
247
|
loading: {
|
|
372
|
-
type: PropType<boolean |
|
|
373
|
-
|
|
374
|
-
spinning: {
|
|
375
|
-
type: BooleanConstructor;
|
|
376
|
-
default: any;
|
|
377
|
-
};
|
|
378
|
-
size: PropType<import("ant-design-vue/es/spin/Spin").SpinSize>;
|
|
379
|
-
wrapperClassName: StringConstructor;
|
|
380
|
-
tip: import("vue-types").VueTypeValidableDef<any>;
|
|
381
|
-
delay: NumberConstructor;
|
|
382
|
-
indicator: import("vue-types").VueTypeValidableDef<any>;
|
|
383
|
-
}>>>;
|
|
384
|
-
default: boolean | Partial<import("vue").ExtractPropTypes<{
|
|
385
|
-
prefixCls: StringConstructor;
|
|
386
|
-
spinning: {
|
|
387
|
-
type: BooleanConstructor;
|
|
388
|
-
default: any;
|
|
389
|
-
};
|
|
390
|
-
size: PropType<import("ant-design-vue/es/spin/Spin").SpinSize>;
|
|
391
|
-
wrapperClassName: StringConstructor;
|
|
392
|
-
tip: import("vue-types").VueTypeValidableDef<any>;
|
|
393
|
-
delay: NumberConstructor;
|
|
394
|
-
indicator: import("vue-types").VueTypeValidableDef<any>;
|
|
395
|
-
}>>;
|
|
396
|
-
};
|
|
397
|
-
locale: {
|
|
398
|
-
type: PropType<import("ant-design-vue/es/table/interface").TableLocale>;
|
|
399
|
-
default: import("ant-design-vue/es/table/interface").TableLocale;
|
|
400
|
-
};
|
|
401
|
-
onChange: {
|
|
402
|
-
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>;
|
|
403
|
-
default: (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;
|
|
404
|
-
};
|
|
405
|
-
onResizeColumn: {
|
|
406
|
-
type: PropType<(w: number, col: import("ant-design-vue/es/table/interface").ColumnType<any>) => void>;
|
|
407
|
-
default: (w: number, col: import("ant-design-vue/es/table/interface").ColumnType<any>) => void;
|
|
408
|
-
};
|
|
409
|
-
getPopupContainer: {
|
|
410
|
-
type: PropType<import("ant-design-vue/es/table/interface").GetPopupContainer>;
|
|
411
|
-
default: import("ant-design-vue/es/table/interface").GetPopupContainer;
|
|
248
|
+
type: PropType<boolean | import("ant-design-vue/es/spin/Spin").SpinProps>;
|
|
249
|
+
default: undefined;
|
|
412
250
|
};
|
|
413
251
|
scroll: {
|
|
414
|
-
type: PropType<{
|
|
415
|
-
|
|
416
|
-
y?: string | number | undefined;
|
|
417
|
-
} & {
|
|
418
|
-
scrollToFirstRowOnChange?: boolean | undefined;
|
|
252
|
+
type: PropType<import("ant-design-vue/es/vc-table/Table").TableProps["scroll"] & {
|
|
253
|
+
scrollToFirstRowOnChange?: boolean;
|
|
419
254
|
}>;
|
|
420
|
-
default:
|
|
421
|
-
x?: string | number | true | undefined;
|
|
422
|
-
y?: string | number | undefined;
|
|
423
|
-
} & {
|
|
424
|
-
scrollToFirstRowOnChange?: boolean | undefined;
|
|
425
|
-
};
|
|
255
|
+
default: undefined;
|
|
426
256
|
};
|
|
427
|
-
|
|
428
|
-
type: PropType<import("ant-design-vue/es/table/interface").
|
|
429
|
-
default: import("ant-design-vue/es/table/interface").
|
|
430
|
-
};
|
|
431
|
-
showSorterTooltip: {
|
|
432
|
-
type: PropType<boolean | Partial<import("vue").ExtractPropTypes<{
|
|
433
|
-
title: import("vue-types").VueTypeValidableDef<any>;
|
|
434
|
-
trigger: PropType<import("ant-design-vue/es/tooltip/abstractTooltipProps").TriggerType | import("ant-design-vue/es/tooltip/abstractTooltipProps").TriggerType[]>;
|
|
435
|
-
open: {
|
|
436
|
-
type: BooleanConstructor;
|
|
437
|
-
default: any;
|
|
438
|
-
};
|
|
439
|
-
visible: {
|
|
440
|
-
type: BooleanConstructor;
|
|
441
|
-
default: any;
|
|
442
|
-
};
|
|
443
|
-
placement: PropType<import("ant-design-vue/es/tooltip").TooltipPlacement>;
|
|
444
|
-
color: PropType<import("ant-design-vue/es/_util/type").LiteralUnion<import("ant-design-vue/es/_util/colors").PresetColorType>>;
|
|
445
|
-
transitionName: StringConstructor;
|
|
446
|
-
overlayStyle: {
|
|
447
|
-
type: PropType<import("vue").CSSProperties>;
|
|
448
|
-
default: import("vue").CSSProperties;
|
|
449
|
-
};
|
|
450
|
-
overlayInnerStyle: {
|
|
451
|
-
type: PropType<import("vue").CSSProperties>;
|
|
452
|
-
default: import("vue").CSSProperties;
|
|
453
|
-
};
|
|
454
|
-
overlayClassName: StringConstructor;
|
|
455
|
-
openClassName: StringConstructor;
|
|
456
|
-
prefixCls: StringConstructor;
|
|
457
|
-
mouseEnterDelay: NumberConstructor;
|
|
458
|
-
mouseLeaveDelay: NumberConstructor;
|
|
459
|
-
getPopupContainer: PropType<(triggerNode: HTMLElement) => HTMLElement>;
|
|
460
|
-
arrowPointAtCenter: {
|
|
461
|
-
type: BooleanConstructor;
|
|
462
|
-
default: any;
|
|
463
|
-
};
|
|
464
|
-
autoAdjustOverflow: {
|
|
465
|
-
type: PropType<boolean | import("ant-design-vue/es/tooltip").AdjustOverflow>;
|
|
466
|
-
default: boolean | import("ant-design-vue/es/tooltip").AdjustOverflow;
|
|
467
|
-
};
|
|
468
|
-
destroyTooltipOnHide: {
|
|
469
|
-
type: BooleanConstructor;
|
|
470
|
-
default: any;
|
|
471
|
-
};
|
|
472
|
-
align: {
|
|
473
|
-
type: PropType<import("ant-design-vue/es/vc-trigger/interface").AlignType>;
|
|
474
|
-
default: import("ant-design-vue/es/vc-trigger/interface").AlignType;
|
|
475
|
-
};
|
|
476
|
-
builtinPlacements: {
|
|
477
|
-
type: PropType<import("ant-design-vue/es/vc-trigger/interface").BuildInPlacements>;
|
|
478
|
-
default: import("ant-design-vue/es/vc-trigger/interface").BuildInPlacements;
|
|
479
|
-
};
|
|
480
|
-
children: ArrayConstructor;
|
|
481
|
-
onVisibleChange: PropType<(vis: boolean) => void>;
|
|
482
|
-
'onUpdate:visible': PropType<(vis: boolean) => void>;
|
|
483
|
-
onOpenChange: PropType<(vis: boolean) => void>;
|
|
484
|
-
'onUpdate:open': PropType<(vis: boolean) => void>;
|
|
485
|
-
}>>>;
|
|
486
|
-
default: boolean | Partial<import("vue").ExtractPropTypes<{
|
|
487
|
-
title: import("vue-types").VueTypeValidableDef<any>;
|
|
488
|
-
trigger: PropType<import("ant-design-vue/es/tooltip/abstractTooltipProps").TriggerType | import("ant-design-vue/es/tooltip/abstractTooltipProps").TriggerType[]>;
|
|
489
|
-
open: {
|
|
490
|
-
type: BooleanConstructor;
|
|
491
|
-
default: any;
|
|
492
|
-
};
|
|
493
|
-
visible: {
|
|
494
|
-
type: BooleanConstructor;
|
|
495
|
-
default: any;
|
|
496
|
-
};
|
|
497
|
-
placement: PropType<import("ant-design-vue/es/tooltip").TooltipPlacement>;
|
|
498
|
-
color: PropType<import("ant-design-vue/es/_util/type").LiteralUnion<import("ant-design-vue/es/_util/colors").PresetColorType>>;
|
|
499
|
-
transitionName: StringConstructor;
|
|
500
|
-
overlayStyle: {
|
|
501
|
-
type: PropType<import("vue").CSSProperties>;
|
|
502
|
-
default: import("vue").CSSProperties;
|
|
503
|
-
};
|
|
504
|
-
overlayInnerStyle: {
|
|
505
|
-
type: PropType<import("vue").CSSProperties>;
|
|
506
|
-
default: import("vue").CSSProperties;
|
|
507
|
-
};
|
|
508
|
-
overlayClassName: StringConstructor;
|
|
509
|
-
openClassName: StringConstructor;
|
|
510
|
-
prefixCls: StringConstructor;
|
|
511
|
-
mouseEnterDelay: NumberConstructor;
|
|
512
|
-
mouseLeaveDelay: NumberConstructor;
|
|
513
|
-
getPopupContainer: PropType<(triggerNode: HTMLElement) => HTMLElement>;
|
|
514
|
-
arrowPointAtCenter: {
|
|
515
|
-
type: BooleanConstructor;
|
|
516
|
-
default: any;
|
|
517
|
-
};
|
|
518
|
-
autoAdjustOverflow: {
|
|
519
|
-
type: PropType<boolean | import("ant-design-vue/es/tooltip").AdjustOverflow>;
|
|
520
|
-
default: boolean | import("ant-design-vue/es/tooltip").AdjustOverflow;
|
|
521
|
-
};
|
|
522
|
-
destroyTooltipOnHide: {
|
|
523
|
-
type: BooleanConstructor;
|
|
524
|
-
default: any;
|
|
525
|
-
};
|
|
526
|
-
align: {
|
|
527
|
-
type: PropType<import("ant-design-vue/es/vc-trigger/interface").AlignType>;
|
|
528
|
-
default: import("ant-design-vue/es/vc-trigger/interface").AlignType;
|
|
529
|
-
};
|
|
530
|
-
builtinPlacements: {
|
|
531
|
-
type: PropType<import("ant-design-vue/es/vc-trigger/interface").BuildInPlacements>;
|
|
532
|
-
default: import("ant-design-vue/es/vc-trigger/interface").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
|
-
}>>;
|
|
540
|
-
};
|
|
541
|
-
transformCellText: {
|
|
542
|
-
type: PropType<import("ant-design-vue/es/vc-table/interface").TransformCellText<any>>;
|
|
543
|
-
default: import("ant-design-vue/es/vc-table/interface").TransformCellText<any>;
|
|
257
|
+
'onUpdate:expandedRowKeys': {
|
|
258
|
+
type: import("vue").PropType<(expandedKeys: import("ant-design-vue/es/vc-table/interface").Key[]) => void>;
|
|
259
|
+
default: (expandedKeys: import("ant-design-vue/es/vc-table/interface").Key[]) => void;
|
|
544
260
|
};
|
|
545
261
|
};
|
|
262
|
+
export type BaseTableProps = Partial<ExtractPropTypes<typeof proTableProps>>;
|
package/dist/style.d.ts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
import type { ProAliasToken } from '@gx-design-vue/pro-provider';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
componentCls: string;
|
|
5
|
-
}
|
|
6
|
-
declare const _default: (_prefixCls?: string | import("vue").Ref<string> | undefined) => import("ant-design-vue/es/theme/internal").UseComponentStyleResult;
|
|
7
|
-
export default _default;
|
|
2
|
+
import type { GenerateStyle } from 'ant-design-vue/es/theme/internal';
|
|
3
|
+
export declare const genProTableStyle: GenerateStyle<ProAliasToken>;
|