@gx-design-vue/pro-table 0.2.0-beta.47 → 0.2.0-beta.48
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 +156 -316
- package/dist/_utils/ant-design-vue/table/props.d.ts +31 -104
- package/dist/_utils/ant-design-vue/table/typings.d.ts +2 -2
- package/dist/components/ColumnSetting/index.d.ts +8 -8
- package/dist/components/ListToolBar/index.d.ts +10 -10
- package/dist/components/ToolBar/index.d.ts +15 -15
- package/dist/context/TableContext.d.ts +1 -2
- package/dist/hooks/useColums.d.ts +1 -1
- package/dist/hooks/useFetchData.d.ts +2 -2
- package/dist/hooks/usePagination.d.ts +2 -2
- package/dist/hooks/useTable.d.ts +1 -1
- package/dist/hooks/useTableScroll.d.ts +3 -3
- package/dist/pro-table.js +709 -719
- package/dist/pro-table.umd.cjs +1 -1
- package/dist/props.d.ts +74 -160
- package/dist/types/ColumnTypings.d.ts +1 -1
- package/dist/types/TableTypings.d.ts +6 -6
- package/package.json +15 -41
package/dist/props.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ProTableProps, ProTableRowSelection, SearchConfig } from './types/TableTypings';
|
|
3
3
|
export declare const proTableProps: {
|
|
4
4
|
rowSelection: {
|
|
5
5
|
type: PropType<ProTableRowSelection>;
|
|
6
6
|
default: undefined;
|
|
7
7
|
};
|
|
8
8
|
columns: {
|
|
9
|
-
type: PropType<
|
|
9
|
+
type: PropType<ProTableProps["columns"]>;
|
|
10
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<
|
|
17
|
+
type: PropType<ProTableProps["rowKey"]>;
|
|
18
18
|
default: undefined;
|
|
19
19
|
};
|
|
20
20
|
/**
|
|
@@ -24,19 +24,19 @@ export declare const proTableProps: {
|
|
|
24
24
|
* @description 获取 dataSource 的方法
|
|
25
25
|
*/
|
|
26
26
|
request: {
|
|
27
|
-
type: PropType<
|
|
27
|
+
type: PropType<ProTableProps["request"]>;
|
|
28
28
|
default: null;
|
|
29
29
|
};
|
|
30
|
-
virtualScroll: PropType<
|
|
31
|
-
params: PropType<
|
|
32
|
-
postData: PropType<
|
|
30
|
+
virtualScroll: PropType<ProTableProps["virtualScroll"]>;
|
|
31
|
+
params: PropType<ProTableProps["params"]>;
|
|
32
|
+
postData: PropType<ProTableProps["postData"]>;
|
|
33
33
|
waitRequest: {
|
|
34
|
-
type: PropType<
|
|
34
|
+
type: PropType<ProTableProps["waitRequest"]>;
|
|
35
35
|
default: boolean;
|
|
36
36
|
};
|
|
37
|
-
polling: PropType<
|
|
37
|
+
polling: PropType<ProTableProps["polling"]>;
|
|
38
38
|
debounceTime: {
|
|
39
|
-
type: PropType<
|
|
39
|
+
type: PropType<ProTableProps["debounceTime"]>;
|
|
40
40
|
default: number;
|
|
41
41
|
};
|
|
42
42
|
/**
|
|
@@ -46,11 +46,11 @@ export declare const proTableProps: {
|
|
|
46
46
|
* @description 是否显示搜索表单,传入对象时为搜索表单的配置
|
|
47
47
|
*/
|
|
48
48
|
search: {
|
|
49
|
-
type: PropType<
|
|
49
|
+
type: PropType<ProTableProps["search"]>;
|
|
50
50
|
default: () => SearchConfig;
|
|
51
51
|
};
|
|
52
52
|
searchMap: {
|
|
53
|
-
type: PropType<
|
|
53
|
+
type: PropType<ProTableProps["searchMap"]>;
|
|
54
54
|
default: () => never[];
|
|
55
55
|
};
|
|
56
56
|
/**
|
|
@@ -60,7 +60,7 @@ export declare const proTableProps: {
|
|
|
60
60
|
* @description 自定义表格渲染模式:默认表格展示,也可以自定义数据列表展示
|
|
61
61
|
*/
|
|
62
62
|
customRender: {
|
|
63
|
-
type: PropType<
|
|
63
|
+
type: PropType<ProTableProps["customRender"]>;
|
|
64
64
|
default: () => undefined;
|
|
65
65
|
};
|
|
66
66
|
/**
|
|
@@ -70,10 +70,10 @@ export declare const proTableProps: {
|
|
|
70
70
|
* @description 添加表格class
|
|
71
71
|
*/
|
|
72
72
|
showLoading: {
|
|
73
|
-
type: PropType<
|
|
73
|
+
type: PropType<ProTableProps["showLoading"]>;
|
|
74
74
|
default: boolean;
|
|
75
75
|
};
|
|
76
|
-
tableClassName: PropType<
|
|
76
|
+
tableClassName: PropType<ProTableProps["tableClassName"]>;
|
|
77
77
|
/**
|
|
78
78
|
* @Author gx12358
|
|
79
79
|
* @DateTime 2022/2/8
|
|
@@ -81,7 +81,7 @@ export declare const proTableProps: {
|
|
|
81
81
|
* @description 表格样式
|
|
82
82
|
*/
|
|
83
83
|
tableStyle: {
|
|
84
|
-
type: PropType<
|
|
84
|
+
type: PropType<ProTableProps["tableStyle"]>;
|
|
85
85
|
};
|
|
86
86
|
/**
|
|
87
87
|
* @Author gx12358
|
|
@@ -90,19 +90,19 @@ export declare const proTableProps: {
|
|
|
90
90
|
* @description 渲染按钮工具栏,支持返回一个 dom 数组,会自动增加 margin-right
|
|
91
91
|
*/
|
|
92
92
|
toolBarBtn: {
|
|
93
|
-
type: PropType<
|
|
93
|
+
type: PropType<ProTableProps["toolBarBtn"]>;
|
|
94
94
|
default: () => undefined;
|
|
95
95
|
};
|
|
96
96
|
headerTitle: {
|
|
97
|
-
type: PropType<
|
|
97
|
+
type: PropType<ProTableProps["headerTitle"]>;
|
|
98
98
|
default: () => undefined;
|
|
99
99
|
};
|
|
100
100
|
titleTip: {
|
|
101
|
-
type: PropType<
|
|
101
|
+
type: PropType<ProTableProps["titleTip"]>;
|
|
102
102
|
default: () => undefined;
|
|
103
103
|
};
|
|
104
104
|
titleTipText: {
|
|
105
|
-
type: PropType<
|
|
105
|
+
type: PropType<ProTableProps["titleTipText"]>;
|
|
106
106
|
default: string;
|
|
107
107
|
};
|
|
108
108
|
/**
|
|
@@ -112,7 +112,7 @@ export declare const proTableProps: {
|
|
|
112
112
|
* @description table 工具栏,设为 false 时不显示
|
|
113
113
|
*/
|
|
114
114
|
options: {
|
|
115
|
-
type: PropType<
|
|
115
|
+
type: PropType<ProTableProps["options"]>;
|
|
116
116
|
default: boolean;
|
|
117
117
|
};
|
|
118
118
|
/**
|
|
@@ -122,10 +122,10 @@ export declare const proTableProps: {
|
|
|
122
122
|
* @description 列状态配置,可以配置是否浮动和是否展示
|
|
123
123
|
*/
|
|
124
124
|
columnsState: {
|
|
125
|
-
type: PropType<
|
|
125
|
+
type: PropType<ProTableProps["columnsState"]>;
|
|
126
126
|
};
|
|
127
127
|
optionsExtra: {
|
|
128
|
-
type: PropType<
|
|
128
|
+
type: PropType<ProTableProps["optionsExtra"]>;
|
|
129
129
|
default: () => undefined;
|
|
130
130
|
};
|
|
131
131
|
/**
|
|
@@ -135,7 +135,7 @@ export declare const proTableProps: {
|
|
|
135
135
|
* @description 列设置额外的元素
|
|
136
136
|
*/
|
|
137
137
|
settingExtra: {
|
|
138
|
-
type: PropType<
|
|
138
|
+
type: PropType<ProTableProps["settingExtra"]>;
|
|
139
139
|
default: () => undefined;
|
|
140
140
|
};
|
|
141
141
|
/**
|
|
@@ -145,7 +145,7 @@ export declare const proTableProps: {
|
|
|
145
145
|
* @description 是否展示序号栏
|
|
146
146
|
*/
|
|
147
147
|
showIndex: {
|
|
148
|
-
type: PropType<
|
|
148
|
+
type: PropType<ProTableProps["showIndex"]>;
|
|
149
149
|
default: boolean;
|
|
150
150
|
};
|
|
151
151
|
/**
|
|
@@ -155,7 +155,7 @@ export declare const proTableProps: {
|
|
|
155
155
|
* @description 翻页item设置
|
|
156
156
|
*/
|
|
157
157
|
pageItemRender: {
|
|
158
|
-
type: PropType<
|
|
158
|
+
type: PropType<ProTableProps["pageItemRender"]>;
|
|
159
159
|
default: () => undefined;
|
|
160
160
|
};
|
|
161
161
|
/**
|
|
@@ -165,7 +165,7 @@ export declare const proTableProps: {
|
|
|
165
165
|
* @description 表格大小
|
|
166
166
|
*/
|
|
167
167
|
size: {
|
|
168
|
-
type: PropType<"
|
|
168
|
+
type: PropType<ProTableProps["size"]>;
|
|
169
169
|
default: string;
|
|
170
170
|
};
|
|
171
171
|
/**
|
|
@@ -175,7 +175,7 @@ export declare const proTableProps: {
|
|
|
175
175
|
* @description 表格全局对齐方式
|
|
176
176
|
*/
|
|
177
177
|
align: {
|
|
178
|
-
type: PropType<
|
|
178
|
+
type: PropType<ProTableProps["align"]>;
|
|
179
179
|
default: string;
|
|
180
180
|
};
|
|
181
181
|
/**
|
|
@@ -185,7 +185,7 @@ export declare const proTableProps: {
|
|
|
185
185
|
* @description 是否展示外边框和列边框
|
|
186
186
|
*/
|
|
187
187
|
bordered: {
|
|
188
|
-
type: PropType<
|
|
188
|
+
type: PropType<ProTableProps["bordered"]>;
|
|
189
189
|
default: boolean;
|
|
190
190
|
};
|
|
191
191
|
/**
|
|
@@ -194,7 +194,7 @@ export declare const proTableProps: {
|
|
|
194
194
|
* @lastTime 2022/2/8
|
|
195
195
|
* @description 是否列拖动
|
|
196
196
|
*/
|
|
197
|
-
draggabled: PropType<
|
|
197
|
+
draggabled: PropType<ProTableProps["draggabled"]>;
|
|
198
198
|
/**
|
|
199
199
|
* @Author gx12358
|
|
200
200
|
* @DateTime 2022/2/8
|
|
@@ -202,7 +202,7 @@ export declare const proTableProps: {
|
|
|
202
202
|
* @description 根据屏幕大小或者scrollBreakpoint或者scroll?.x是否存在判断action列是否固定
|
|
203
203
|
*/
|
|
204
204
|
autoScroll: {
|
|
205
|
-
type: PropType<
|
|
205
|
+
type: PropType<ProTableProps["autoScroll"]>;
|
|
206
206
|
default: boolean;
|
|
207
207
|
};
|
|
208
208
|
/**
|
|
@@ -211,21 +211,21 @@ export declare const proTableProps: {
|
|
|
211
211
|
* @lastTime 2022/2/8
|
|
212
212
|
* @description 滚动断点支持数字(屏幕宽度);也支持md、xl,xxl等
|
|
213
213
|
*/
|
|
214
|
-
scrollBreakpoint: PropType<
|
|
214
|
+
scrollBreakpoint: PropType<ProTableProps["scrollBreakpoint"]>;
|
|
215
215
|
/**
|
|
216
216
|
* @Author gx12358
|
|
217
217
|
* @DateTime 2022/2/8
|
|
218
218
|
* @lastTime 2022/2/8
|
|
219
219
|
* @description modalTable时,自动固定滚动高度
|
|
220
220
|
*/
|
|
221
|
-
modalScroll: PropType<
|
|
221
|
+
modalScroll: PropType<ProTableProps["modalScroll"]>;
|
|
222
222
|
/**
|
|
223
223
|
* @Author gx12358
|
|
224
224
|
* @DateTime 2022/2/8
|
|
225
225
|
* @lastTime 2022/2/8
|
|
226
226
|
* @description 从不滚动
|
|
227
227
|
*/
|
|
228
|
-
neverScroll: PropType<
|
|
228
|
+
neverScroll: PropType<ProTableProps["neverScroll"]>;
|
|
229
229
|
/**
|
|
230
230
|
* @Author gx12358
|
|
231
231
|
* @DateTime 2022/2/8
|
|
@@ -233,7 +233,7 @@ export declare const proTableProps: {
|
|
|
233
233
|
* @description 空值时的显示,不设置时显示 -, false 可以关闭此功能
|
|
234
234
|
*/
|
|
235
235
|
columnEmptyText: {
|
|
236
|
-
type: PropType<
|
|
236
|
+
type: PropType<ProTableProps["columnEmptyText"]>;
|
|
237
237
|
default: boolean;
|
|
238
238
|
};
|
|
239
239
|
/**
|
|
@@ -242,36 +242,36 @@ export declare const proTableProps: {
|
|
|
242
242
|
* @lastTime 2022/2/8
|
|
243
243
|
* @description Pro-Table 的方法
|
|
244
244
|
*/
|
|
245
|
-
onReset: PropType<
|
|
246
|
-
onReload: PropType<
|
|
247
|
-
onSubmit: PropType<
|
|
248
|
-
onSizeChange: PropType<
|
|
249
|
-
onLoadingChange: PropType<
|
|
250
|
-
onRequestError: PropType<
|
|
251
|
-
onBeforeSearchSubmit: PropType<
|
|
252
|
-
onColumnsStateChange: PropType<
|
|
245
|
+
onReset: PropType<ProTableProps["onReset"]>;
|
|
246
|
+
onReload: PropType<ProTableProps["onReload"]>;
|
|
247
|
+
onSubmit: PropType<ProTableProps["onSubmit"]>;
|
|
248
|
+
onSizeChange: PropType<ProTableProps["onSizeChange"]>;
|
|
249
|
+
onLoadingChange: PropType<ProTableProps["onLoadingChange"]>;
|
|
250
|
+
onRequestError: PropType<ProTableProps["onRequestError"]>;
|
|
251
|
+
onBeforeSearchSubmit: PropType<ProTableProps["onBeforeSearchSubmit"]>;
|
|
252
|
+
onColumnsStateChange: PropType<ProTableProps["onColumnsStateChange"]>;
|
|
253
253
|
prefixCls: {
|
|
254
254
|
type: PropType<string>;
|
|
255
255
|
default: undefined;
|
|
256
256
|
};
|
|
257
257
|
tableLayout: {
|
|
258
|
-
type: PropType<import("ant-design-vue/es/
|
|
258
|
+
type: PropType<import("ant-design-vue/es/table/Table").TableProps["tableLayout"]>;
|
|
259
259
|
default: undefined;
|
|
260
260
|
};
|
|
261
261
|
rowClassName: {
|
|
262
|
-
type: PropType<
|
|
262
|
+
type: PropType<import("ant-design-vue/es/table/Table").TableProps["rowClassName"]>;
|
|
263
263
|
default: undefined;
|
|
264
264
|
};
|
|
265
265
|
title: {
|
|
266
|
-
type: PropType<import("ant-design-vue/es/
|
|
266
|
+
type: PropType<import("ant-design-vue/es/table/Table").TableProps["title"]>;
|
|
267
267
|
default: undefined;
|
|
268
268
|
};
|
|
269
269
|
footer: {
|
|
270
|
-
type: PropType<import("ant-design-vue/es/
|
|
270
|
+
type: PropType<import("ant-design-vue/es/table/Table").TableProps["footer"]>;
|
|
271
271
|
default: undefined;
|
|
272
272
|
};
|
|
273
273
|
id: {
|
|
274
|
-
type: PropType<
|
|
274
|
+
type: PropType<import("ant-design-vue/es/table/Table").TableProps["id"]>;
|
|
275
275
|
default: undefined;
|
|
276
276
|
};
|
|
277
277
|
showHeader: {
|
|
@@ -279,23 +279,23 @@ export declare const proTableProps: {
|
|
|
279
279
|
default: undefined;
|
|
280
280
|
};
|
|
281
281
|
components: {
|
|
282
|
-
type: PropType<import("ant-design-vue/es/
|
|
282
|
+
type: PropType<import("ant-design-vue/es/table/Table").TableProps["components"]>;
|
|
283
283
|
default: undefined;
|
|
284
284
|
};
|
|
285
285
|
customRow: {
|
|
286
|
-
type: PropType<import("ant-design-vue/es/
|
|
286
|
+
type: PropType<import("ant-design-vue/es/table/Table").TableProps["customRow"]>;
|
|
287
287
|
default: undefined;
|
|
288
288
|
};
|
|
289
289
|
customHeaderRow: {
|
|
290
|
-
type: PropType<import("ant-design-vue/es/
|
|
290
|
+
type: PropType<import("ant-design-vue/es/table/Table").TableProps["customHeaderRow"]>;
|
|
291
291
|
default: undefined;
|
|
292
292
|
};
|
|
293
293
|
direction: {
|
|
294
|
-
type: PropType<"
|
|
294
|
+
type: PropType<import("ant-design-vue/es/table/Table").TableProps["direction"]>;
|
|
295
295
|
default: undefined;
|
|
296
296
|
};
|
|
297
297
|
expandFixed: {
|
|
298
|
-
type: PropType<
|
|
298
|
+
type: PropType<import("ant-design-vue/es/table/Table").TableProps["expandFixed"]>;
|
|
299
299
|
default: undefined;
|
|
300
300
|
};
|
|
301
301
|
expandColumnWidth: {
|
|
@@ -303,15 +303,15 @@ export declare const proTableProps: {
|
|
|
303
303
|
default: undefined;
|
|
304
304
|
};
|
|
305
305
|
expandedRowKeys: {
|
|
306
|
-
type: PropType<import("ant-design-vue/es/
|
|
306
|
+
type: PropType<import("ant-design-vue/es/table/Table").TableProps["expandedRowKeys"]>;
|
|
307
307
|
default: undefined;
|
|
308
308
|
};
|
|
309
309
|
defaultExpandedRowKeys: {
|
|
310
|
-
type: PropType<import("ant-design-vue/es/
|
|
310
|
+
type: PropType<import("ant-design-vue/es/table/Table").TableProps["defaultExpandedRowKeys"]>;
|
|
311
311
|
default: undefined;
|
|
312
312
|
};
|
|
313
313
|
expandedRowRender: {
|
|
314
|
-
type: PropType<import("ant-design-vue/es/
|
|
314
|
+
type: PropType<import("ant-design-vue/es/table/Table").TableProps["expandedRowRender"]>;
|
|
315
315
|
default: undefined;
|
|
316
316
|
};
|
|
317
317
|
expandRowByClick: {
|
|
@@ -319,19 +319,19 @@ export declare const proTableProps: {
|
|
|
319
319
|
default: undefined;
|
|
320
320
|
};
|
|
321
321
|
expandIcon: {
|
|
322
|
-
type: PropType<import("ant-design-vue/es/
|
|
322
|
+
type: PropType<import("ant-design-vue/es/table/Table").TableProps["expandIcon"]>;
|
|
323
323
|
default: undefined;
|
|
324
324
|
};
|
|
325
325
|
onExpand: {
|
|
326
|
-
type: PropType<(
|
|
326
|
+
type: PropType<import("ant-design-vue/es/table/Table").TableProps["onExpand"]>;
|
|
327
327
|
default: undefined;
|
|
328
328
|
};
|
|
329
329
|
onExpandedRowsChange: {
|
|
330
|
-
type: PropType<
|
|
330
|
+
type: PropType<import("ant-design-vue/es/table/Table").TableProps["onExpandedRowsChange"]>;
|
|
331
331
|
default: undefined;
|
|
332
332
|
};
|
|
333
333
|
'onUpdate:expandedRowKeys': {
|
|
334
|
-
type: PropType<
|
|
334
|
+
type: PropType<import("ant-design-vue/es/table/Table").TableProps["onExpandedRowsChange"]>;
|
|
335
335
|
default: undefined;
|
|
336
336
|
};
|
|
337
337
|
defaultExpandAllRows: {
|
|
@@ -351,25 +351,19 @@ export declare const proTableProps: {
|
|
|
351
351
|
default: undefined;
|
|
352
352
|
};
|
|
353
353
|
expandedRowClassName: {
|
|
354
|
-
type: PropType<import("ant-design-vue/es/
|
|
354
|
+
type: PropType<import("ant-design-vue/es/table/Table").TableProps["expandedRowClassName"]>;
|
|
355
355
|
default: undefined;
|
|
356
356
|
};
|
|
357
|
-
/**
|
|
358
|
-
* @Author gx12358
|
|
359
|
-
* @DateTime 2022/2/8
|
|
360
|
-
* @lastTime 2022/2/8
|
|
361
|
-
* @description 列状态配置,可以配置是否浮动和是否展示
|
|
362
|
-
*/
|
|
363
357
|
childrenColumnName: {
|
|
364
|
-
type: PropType<
|
|
358
|
+
type: PropType<import("ant-design-vue/es/table/Table").TableProps["childrenColumnName"]>;
|
|
365
359
|
default: undefined;
|
|
366
360
|
};
|
|
367
361
|
rowExpandable: {
|
|
368
|
-
type: PropType<(
|
|
362
|
+
type: PropType<import("ant-design-vue/es/table/Table").TableProps["rowExpandable"]>;
|
|
369
363
|
default: undefined;
|
|
370
364
|
};
|
|
371
365
|
sticky: {
|
|
372
|
-
type: PropType<
|
|
366
|
+
type: PropType<import("ant-design-vue/es/table/Table").TableProps["sticky"]>;
|
|
373
367
|
default: undefined;
|
|
374
368
|
};
|
|
375
369
|
dropdownPrefixCls: {
|
|
@@ -377,39 +371,23 @@ export declare const proTableProps: {
|
|
|
377
371
|
default: undefined;
|
|
378
372
|
};
|
|
379
373
|
dataSource: {
|
|
380
|
-
type: PropType<
|
|
374
|
+
type: PropType<import("ant-design-vue/es/vc-table/Table").TableProps["data"]>;
|
|
381
375
|
default: undefined;
|
|
382
376
|
};
|
|
383
377
|
loading: {
|
|
384
|
-
type: PropType<boolean |
|
|
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
|
-
}>>>;
|
|
378
|
+
type: PropType<boolean | import("ant-design-vue/es/spin/Spin").SpinProps>;
|
|
396
379
|
default: undefined;
|
|
397
380
|
};
|
|
398
381
|
locale: {
|
|
399
382
|
type: PropType<import("ant-design-vue/es/table/interface").TableLocale>;
|
|
400
|
-
default: undefined;
|
|
401
|
-
* @Author gx12358
|
|
402
|
-
* @DateTime 2022/2/8
|
|
403
|
-
* @lastTime 2022/2/8
|
|
404
|
-
* @description 翻页item设置
|
|
405
|
-
*/
|
|
383
|
+
default: undefined;
|
|
406
384
|
};
|
|
407
385
|
onChange: {
|
|
408
|
-
type: PropType<(pagination: import("./types/TableTypings").ProTablePagination, filters: Record<string, import("ant-design-vue/es/table/interface").FilterValue | null>, sorter: import("ant-design-vue/es/table/interface").SorterResult
|
|
386
|
+
type: PropType<(pagination: import("./types/TableTypings").ProTablePagination, filters: Record<string, import("ant-design-vue/es/table/interface").FilterValue | null>, sorter: import("ant-design-vue/es/table/interface").SorterResult | import("ant-design-vue/es/table/interface").SorterResult[], extra: import("ant-design-vue/es/table/interface").TableCurrentDataSource) => void>;
|
|
409
387
|
default: undefined;
|
|
410
388
|
};
|
|
411
389
|
onResizeColumn: {
|
|
412
|
-
type: PropType<(w: number, col: import("ant-design-vue/es/table/interface").ColumnType
|
|
390
|
+
type: PropType<(w: number, col: import("ant-design-vue/es/table/interface").ColumnType) => void>;
|
|
413
391
|
default: undefined;
|
|
414
392
|
};
|
|
415
393
|
getPopupContainer: {
|
|
@@ -417,11 +395,8 @@ export declare const proTableProps: {
|
|
|
417
395
|
default: undefined;
|
|
418
396
|
};
|
|
419
397
|
scroll: {
|
|
420
|
-
type: PropType<{
|
|
421
|
-
|
|
422
|
-
y?: string | number | undefined;
|
|
423
|
-
} & {
|
|
424
|
-
scrollToFirstRowOnChange?: boolean | undefined;
|
|
398
|
+
type: PropType<import("ant-design-vue/es/vc-table/Table").TableProps["scroll"] & {
|
|
399
|
+
scrollToFirstRowOnChange?: boolean;
|
|
425
400
|
}>;
|
|
426
401
|
default: undefined;
|
|
427
402
|
};
|
|
@@ -430,72 +405,11 @@ export declare const proTableProps: {
|
|
|
430
405
|
default: undefined;
|
|
431
406
|
};
|
|
432
407
|
showSorterTooltip: {
|
|
433
|
-
type: PropType<boolean |
|
|
434
|
-
title: import("vue-types").VueTypeValidableDef<any>;
|
|
435
|
-
trigger: PropType<import("ant-design-vue/es/tooltip/abstractTooltipProps").TriggerType | import("ant-design-vue/es/tooltip/abstractTooltipProps").TriggerType[]>;
|
|
436
|
-
open: {
|
|
437
|
-
type: BooleanConstructor;
|
|
438
|
-
default: any;
|
|
439
|
-
};
|
|
440
|
-
visible: {
|
|
441
|
-
type: BooleanConstructor;
|
|
442
|
-
default: any;
|
|
443
|
-
};
|
|
444
|
-
placement: PropType<import("ant-design-vue/es/tooltip").TooltipPlacement>;
|
|
445
|
-
color: PropType<import("ant-design-vue/es/_util/type").LiteralUnion<import("ant-design-vue/es/_util/colors").PresetColorType>>;
|
|
446
|
-
transitionName: StringConstructor;
|
|
447
|
-
overlayStyle: {
|
|
448
|
-
type: PropType<import("vue").CSSProperties>;
|
|
449
|
-
default: import("vue").CSSProperties;
|
|
450
|
-
};
|
|
451
|
-
overlayInnerStyle: {
|
|
452
|
-
type: PropType<import("vue").CSSProperties>;
|
|
453
|
-
default: import("vue").CSSProperties;
|
|
454
|
-
};
|
|
455
|
-
overlayClassName: StringConstructor;
|
|
456
|
-
openClassName: StringConstructor;
|
|
457
|
-
prefixCls: StringConstructor;
|
|
458
|
-
mouseEnterDelay: NumberConstructor;
|
|
459
|
-
mouseLeaveDelay: NumberConstructor;
|
|
460
|
-
getPopupContainer: PropType<(triggerNode: HTMLElement) => HTMLElement>;
|
|
461
|
-
arrowPointAtCenter: {
|
|
462
|
-
type: BooleanConstructor;
|
|
463
|
-
default: any;
|
|
464
|
-
};
|
|
465
|
-
arrow: {
|
|
466
|
-
type: PropType<boolean | {
|
|
467
|
-
pointAtCenter?: boolean | undefined;
|
|
468
|
-
}>;
|
|
469
|
-
default: boolean | {
|
|
470
|
-
pointAtCenter?: boolean | undefined;
|
|
471
|
-
};
|
|
472
|
-
};
|
|
473
|
-
autoAdjustOverflow: {
|
|
474
|
-
type: PropType<boolean | import("ant-design-vue/es/tooltip").AdjustOverflow>;
|
|
475
|
-
default: boolean | import("ant-design-vue/es/tooltip").AdjustOverflow;
|
|
476
|
-
};
|
|
477
|
-
destroyTooltipOnHide: {
|
|
478
|
-
type: BooleanConstructor;
|
|
479
|
-
default: any;
|
|
480
|
-
};
|
|
481
|
-
align: {
|
|
482
|
-
type: PropType<import("ant-design-vue/es/vc-trigger/interface").AlignType>;
|
|
483
|
-
default: import("ant-design-vue/es/vc-trigger/interface").AlignType;
|
|
484
|
-
};
|
|
485
|
-
builtinPlacements: {
|
|
486
|
-
type: PropType<import("ant-design-vue/es/vc-trigger/interface").BuildInPlacements>;
|
|
487
|
-
default: import("ant-design-vue/es/vc-trigger/interface").BuildInPlacements;
|
|
488
|
-
};
|
|
489
|
-
children: ArrayConstructor;
|
|
490
|
-
onVisibleChange: PropType<(vis: boolean) => void>;
|
|
491
|
-
'onUpdate:visible': PropType<(vis: boolean) => void>;
|
|
492
|
-
onOpenChange: PropType<(vis: boolean) => void>;
|
|
493
|
-
'onUpdate:open': PropType<(vis: boolean) => void>;
|
|
494
|
-
}>>>;
|
|
408
|
+
type: PropType<boolean | import("ant-design-vue").TooltipProps>;
|
|
495
409
|
default: boolean;
|
|
496
410
|
};
|
|
497
411
|
transformCellText: {
|
|
498
|
-
type: PropType<import("ant-design-vue/es/
|
|
412
|
+
type: PropType<import("ant-design-vue/es/table/Table").TableProps["transformCellText"]>;
|
|
499
413
|
default: undefined;
|
|
500
414
|
};
|
|
501
415
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type { FilterValue, SorterResult, TableCurrentDataSource,
|
|
1
|
+
import type { CSSProperties, ComputedRef } from 'vue';
|
|
2
|
+
import type { Breakpoint, CustomRender, RecordType, SizeType, VueNode, WithFalse } from '@gx-design-vue/pro-utils';
|
|
3
|
+
import type { ProColumnType, ProColumnsType, ProSearchMap } from './ColumnTypings';
|
|
4
|
+
import type { CustomizeRender, HeaderTitleRender, OptionsExtraRender, PageItemRender, SettingExtraRender, TitleTipRender, ToolBarBtnRender } from './SlotsTypings';
|
|
5
|
+
import type { FilterValue, SorterResult, TableCurrentDataSource, TablePaginationConfig, TableProps, TableRowSelection } from '../_utils';
|
|
6
6
|
import type { ColumnSettingProps } from '../components/ColumnSetting';
|
|
7
7
|
import type { ColumnsState, ColumnsStateType } from '../hooks/useColumnSetting';
|
|
8
8
|
export type ProTabelFeachParams = {
|
|
@@ -74,7 +74,7 @@ export interface ProCoreActionType {
|
|
|
74
74
|
reload?: (info?: ProTabelFeachParams) => void;
|
|
75
75
|
/** @name 刷新并清空表单,重置为第一页 */
|
|
76
76
|
reloadAndRest?: (callBack?: () => void) => void;
|
|
77
|
-
/** @name
|
|
77
|
+
/** @name 设置翻页 */
|
|
78
78
|
setPagination?: (pagination: ProTablePaginationConfig) => void;
|
|
79
79
|
/** @name 设置翻页、排序、筛选、并且reload */
|
|
80
80
|
setPageAndReload?: (pagination: ProTablePaginationConfig, filters?: Record<string, FilterValue | null>, sorter?: SorterResult | SorterResult[], extra?: TableCurrentDataSource) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gx-design-vue/pro-table",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.48",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "vite",
|
|
6
6
|
"build": "vite build",
|
|
@@ -26,49 +26,23 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@vueuse/core": "^9.10.0",
|
|
29
|
-
"@gx-design-vue/pro-utils": "^0.2.0-beta.
|
|
30
|
-
"@gx-design-vue/pro-hooks": "^0.2.0-beta.
|
|
31
|
-
"@gx-design-vue/pro-provider": "^0.1.0-beta.
|
|
32
|
-
"@gx-design-vue/pro-app": "^0.1.0-beta.
|
|
33
|
-
"ant-design-vue": "^4.1.2",
|
|
29
|
+
"@gx-design-vue/pro-utils": "^0.2.0-beta.28",
|
|
30
|
+
"@gx-design-vue/pro-hooks": "^0.2.0-beta.20",
|
|
31
|
+
"@gx-design-vue/pro-provider": "^0.1.0-beta.55",
|
|
32
|
+
"@gx-design-vue/pro-app": "^0.1.0-beta.11",
|
|
34
33
|
"dayjs": "^1.11.0",
|
|
35
|
-
"lodash-es": "^4.17.21"
|
|
36
|
-
"vue": "^3.3.7",
|
|
37
|
-
"vue-types": "^4.1.1"
|
|
34
|
+
"lodash-es": "^4.17.21"
|
|
38
35
|
},
|
|
39
36
|
"devDependencies": {
|
|
40
|
-
"@rollup/plugin-typescript": "^8.3.0",
|
|
41
|
-
"@rushstack/eslint-patch": "^1.1.0",
|
|
42
37
|
"@types/lodash-es": "^4.17.6",
|
|
43
|
-
"
|
|
44
|
-
"@types/node": "^20.11.19",
|
|
45
|
-
"@typescript-eslint/eslint-plugin": "^7.0.1",
|
|
46
|
-
"@typescript-eslint/parser": "^7.0.1",
|
|
47
|
-
"@vitejs/plugin-vue": "^5.0.4",
|
|
48
|
-
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
|
49
|
-
"eslint": "^8.56.0",
|
|
50
|
-
"eslint-config-prettier": "^9.1.0",
|
|
51
|
-
"eslint-plugin-import": "^2.29.1",
|
|
52
|
-
"eslint-plugin-prettier": "^5.1.3",
|
|
53
|
-
"eslint-plugin-simple-import-sort": "^12.0.0",
|
|
54
|
-
"eslint-plugin-vue": "^9.21.1",
|
|
55
|
-
"jsdom": "^19.0.0",
|
|
56
|
-
"less": "^4.1.2",
|
|
57
|
-
"rollup": "^2.70.2",
|
|
58
|
-
"postcss": "^8.4.35",
|
|
59
|
-
"postcss-html": "^1.6.0",
|
|
60
|
-
"postcss-less": "^6.0.0",
|
|
61
|
-
"prettier": "^3.2.5",
|
|
62
|
-
"stylelint": "^16.2.1",
|
|
63
|
-
"stylelint-config-recommended": "^14.0.0",
|
|
64
|
-
"stylelint-config-recommended-vue": "^1.5.0",
|
|
65
|
-
"stylelint-config-standard": "^25.0.0",
|
|
66
|
-
"stylelint-order": "^6.0.4",
|
|
67
|
-
"stylelint-prettier": "^5.0.0",
|
|
68
|
-
"typescript": "^5.3.3",
|
|
69
|
-
"vite": "^5.1.4",
|
|
70
|
-
"vue-eslint-parser": "^9.4.2",
|
|
71
|
-
"vue-tsc": "^1.8.27"
|
|
38
|
+
"typescript": "^5.3.3"
|
|
72
39
|
},
|
|
73
|
-
"
|
|
40
|
+
"peerDependencies": {
|
|
41
|
+
"vue": ">=3.0.0",
|
|
42
|
+
"ant-design-vue": "^4.1.2"
|
|
43
|
+
},
|
|
44
|
+
"description": "Gx Design Pro Table",
|
|
45
|
+
"authors": [
|
|
46
|
+
"gx12358 <gx12358@gmail.com> (https://github.com/gx12358)"
|
|
47
|
+
]
|
|
74
48
|
}
|