@gx-design-vue/pro-table 0.2.0-beta.14 → 0.2.0-beta.141
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 +293 -823
- 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 +37 -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} +2 -2
- package/dist/components/Form/index.d.ts +19 -28
- package/dist/components/Form/style.d.ts +1 -1
- 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 +32 -39
- package/dist/components/ListToolBar/style.d.ts +1 -1
- package/dist/components/ScrollBar/Bar/index.d.ts +44 -0
- package/dist/components/ScrollBar/Bar/props.d.ts +21 -0
- package/dist/components/ScrollBar/Thumb/index.d.ts +35 -0
- package/dist/components/ScrollBar/Thumb/props.d.ts +16 -0
- package/dist/components/ScrollBar/context.d.ts +11 -0
- package/dist/components/ScrollBar/util.d.ts +29 -0
- package/dist/components/ToolBar/FullscreenIcon.d.ts +1 -1
- package/dist/components/ToolBar/index.d.ts +24 -25
- package/dist/context/TableContext.d.ts +19 -17
- package/dist/hooks/tryOnActivated.d.ts +2 -0
- package/dist/hooks/useColumns.d.ts +18 -0
- package/dist/hooks/useDebounceFn.d.ts +2 -2
- package/dist/hooks/useFetchData.d.ts +24 -17
- 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/useScrollArea.d.ts +15 -0
- package/dist/hooks/useTable.d.ts +57 -11
- package/dist/hooks/useTableForm.d.ts +72 -10
- package/dist/hooks/useTableScroll.d.ts +14 -20
- package/dist/hooks/useTableSize.d.ts +4 -7
- package/dist/index.d.ts +8 -7
- package/dist/pro-table.js +2739 -0
- package/dist/pro-table.umd.cjs +12 -0
- package/dist/props.d.ts +129 -390
- package/dist/{components/ColumnSetting/style.d.ts → style/fit-page.d.ts} +2 -2
- package/dist/style/index.d.ts +6 -0
- package/dist/{style.d.ts → style/list.d.ts} +2 -2
- package/dist/style/scroll.d.ts +3 -0
- package/dist/types/ColumnTypings.d.ts +54 -16
- package/dist/types/SlotsTypings.d.ts +47 -9
- package/dist/types/TableTypings.d.ts +171 -80
- package/dist/utils/utils.d.ts +5 -1
- package/package.json +33 -52
- 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/ToolBar/DensityIcon.d.ts +0 -3
- package/dist/hooks/useColumnSetting.d.ts +0 -31
- package/dist/hooks/useColums.d.ts +0 -24
- package/dist/pro-table.mjs +0 -34948
- package/dist/pro-table.umd.js +0 -327
- package/dist/typing.d.ts +0 -1
- package/dist/utils/config.d.ts +0 -1
package/dist/props.d.ts
CHANGED
|
@@ -1,21 +1,45 @@
|
|
|
1
|
-
import type { PropType } from 'vue';
|
|
2
|
-
import type {
|
|
1
|
+
import type { CSSProperties, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import type { ProTableProps, ProTableRowSelection, TableClassNamesType, TableStylesType } from './types/TableTypings';
|
|
3
3
|
export declare const proTableProps: {
|
|
4
|
+
id: {
|
|
5
|
+
type: PropType<string>;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
class: {
|
|
9
|
+
type: PropType<string>;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
style: {
|
|
13
|
+
type: PropType<CSSProperties>;
|
|
14
|
+
default: () => {};
|
|
15
|
+
};
|
|
16
|
+
classNames: {
|
|
17
|
+
type: PropType<TableClassNamesType>;
|
|
18
|
+
default: () => {};
|
|
19
|
+
};
|
|
20
|
+
styles: {
|
|
21
|
+
type: PropType<TableStylesType>;
|
|
22
|
+
default: () => {};
|
|
23
|
+
};
|
|
24
|
+
fitPage: {
|
|
25
|
+
type: PropType<ProTableProps["fitPage"]>;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
4
28
|
rowSelection: {
|
|
5
|
-
type: PropType<ProTableRowSelection
|
|
29
|
+
type: PropType<ProTableRowSelection>;
|
|
6
30
|
default: undefined;
|
|
7
31
|
};
|
|
8
32
|
columns: {
|
|
9
|
-
type: PropType<
|
|
10
|
-
default: never[];
|
|
33
|
+
type: PropType<ProTableProps["columns"]>;
|
|
34
|
+
default: () => never[];
|
|
11
35
|
};
|
|
12
36
|
pagination: {
|
|
13
|
-
type: PropType<
|
|
37
|
+
type: PropType<ProTableProps["pagination"]>;
|
|
14
38
|
default: () => undefined;
|
|
15
39
|
};
|
|
16
40
|
rowKey: {
|
|
17
|
-
type: PropType<string
|
|
18
|
-
default:
|
|
41
|
+
type: PropType<string>;
|
|
42
|
+
default: string;
|
|
19
43
|
};
|
|
20
44
|
/**
|
|
21
45
|
* @Author gx12358
|
|
@@ -24,19 +48,31 @@ export declare const proTableProps: {
|
|
|
24
48
|
* @description 获取 dataSource 的方法
|
|
25
49
|
*/
|
|
26
50
|
request: {
|
|
27
|
-
type: PropType<
|
|
28
|
-
default:
|
|
51
|
+
type: PropType<ProTableProps["request"]>;
|
|
52
|
+
default: undefined;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* @Author gx12358
|
|
56
|
+
* @DateTime 2025/12/11
|
|
57
|
+
* @lastTime 2025/12/11
|
|
58
|
+
* @description 关闭参数变化后自动请求
|
|
59
|
+
*/
|
|
60
|
+
autoRequest: {
|
|
61
|
+
type: PropType<ProTableProps["autoRequest"]>;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
virtualScroll: PropType<ProTableProps["virtualScroll"]>;
|
|
65
|
+
params: {
|
|
66
|
+
type: PropType<ProTableProps["params"]>;
|
|
67
|
+
default: () => {};
|
|
29
68
|
};
|
|
30
|
-
virtualScroll: PropType<boolean | undefined>;
|
|
31
|
-
params: PropType<Record<string, unknown> | undefined>;
|
|
32
|
-
postData: PropType<((data: any[]) => any) | undefined>;
|
|
33
69
|
waitRequest: {
|
|
34
|
-
type: PropType<
|
|
70
|
+
type: PropType<ProTableProps["waitRequest"]>;
|
|
35
71
|
default: boolean;
|
|
36
72
|
};
|
|
37
|
-
polling: PropType<
|
|
73
|
+
polling: PropType<ProTableProps["polling"]>;
|
|
38
74
|
debounceTime: {
|
|
39
|
-
type: PropType<
|
|
75
|
+
type: PropType<ProTableProps["debounceTime"]>;
|
|
40
76
|
default: number;
|
|
41
77
|
};
|
|
42
78
|
/**
|
|
@@ -45,12 +81,11 @@ export declare const proTableProps: {
|
|
|
45
81
|
* @lastTime 2022/2/8
|
|
46
82
|
* @description 是否显示搜索表单,传入对象时为搜索表单的配置
|
|
47
83
|
*/
|
|
48
|
-
|
|
49
|
-
type: PropType<
|
|
50
|
-
default: () => SearchConfig;
|
|
84
|
+
form: {
|
|
85
|
+
type: PropType<ProTableProps["form"]>;
|
|
51
86
|
};
|
|
52
87
|
searchMap: {
|
|
53
|
-
type: PropType<
|
|
88
|
+
type: PropType<ProTableProps["searchMap"]>;
|
|
54
89
|
default: () => never[];
|
|
55
90
|
};
|
|
56
91
|
/**
|
|
@@ -60,88 +95,74 @@ export declare const proTableProps: {
|
|
|
60
95
|
* @description 自定义表格渲染模式:默认表格展示,也可以自定义数据列表展示
|
|
61
96
|
*/
|
|
62
97
|
customRender: {
|
|
63
|
-
type: PropType<
|
|
98
|
+
type: PropType<ProTableProps["customRender"]>;
|
|
64
99
|
default: () => undefined;
|
|
65
100
|
};
|
|
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>;
|
|
101
|
+
emptyText: {
|
|
102
|
+
type: PropType<ProTableProps["emptyText"]>;
|
|
103
|
+
default: () => undefined;
|
|
81
104
|
};
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
105
|
+
showLoading: {
|
|
106
|
+
type: PropType<ProTableProps["showLoading"]>;
|
|
107
|
+
default: boolean;
|
|
108
|
+
};
|
|
109
|
+
emptyTextProps: {
|
|
110
|
+
type: PropType<ProTableProps["emptyTextProps"]>;
|
|
111
|
+
default: () => ProTableProps["emptyTextProps"];
|
|
112
|
+
};
|
|
113
|
+
actionProps: {
|
|
114
|
+
type: PropType<ProTableProps["actionProps"]>;
|
|
115
|
+
default: () => {
|
|
116
|
+
placement: string;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
/** @name listToolAfter 表格工具栏下方的内容 */
|
|
120
|
+
listToolAfter: {
|
|
121
|
+
type: PropType<ProTableProps["listToolAfter"]>;
|
|
90
122
|
default: () => undefined;
|
|
91
123
|
};
|
|
124
|
+
/** @name headerTitle 表格标题,可自定义 */
|
|
92
125
|
headerTitle: {
|
|
93
|
-
type: PropType<
|
|
126
|
+
type: PropType<ProTableProps["headerTitle"]>;
|
|
94
127
|
default: () => undefined;
|
|
95
128
|
};
|
|
96
|
-
|
|
97
|
-
|
|
129
|
+
/** @name headerTitleTip 标题提示的Icon,可自定义 */
|
|
130
|
+
headerTitleTip: {
|
|
131
|
+
type: PropType<ProTableProps["headerTitleTip"]>;
|
|
98
132
|
default: () => undefined;
|
|
99
133
|
};
|
|
134
|
+
/** @name titleTipText 标题提示词 */
|
|
100
135
|
titleTipText: {
|
|
101
|
-
type: PropType<
|
|
102
|
-
default: string;
|
|
136
|
+
type: PropType<ProTableProps["titleTipText"]>;
|
|
103
137
|
};
|
|
104
|
-
/**
|
|
105
|
-
* @Author gx12358
|
|
106
|
-
* @DateTime 2022/2/8
|
|
107
|
-
* @lastTime 2022/2/8
|
|
108
|
-
* @description table 工具栏,设为 false 时不显示
|
|
109
|
-
*/
|
|
138
|
+
/** @name options table 工具栏(reload:重新请求按钮;fullScreen:全屏按钮),设为 false 时不显示 */
|
|
110
139
|
options: {
|
|
111
|
-
type: PropType<
|
|
140
|
+
type: PropType<ProTableProps["options"]>;
|
|
112
141
|
default: boolean;
|
|
113
142
|
};
|
|
114
|
-
/**
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
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;
|
|
143
|
+
/** @name keepAliveReload 针对 keepalive 缓存的页面,重新进入是否请求 */
|
|
144
|
+
keepAliveReload: {
|
|
145
|
+
type: PropType<ProTableProps["keepAliveReload"]>;
|
|
146
|
+
default: boolean;
|
|
126
147
|
};
|
|
127
148
|
/**
|
|
128
149
|
* @Author gx12358
|
|
129
150
|
* @DateTime 2022/2/8
|
|
130
151
|
* @lastTime 2022/2/8
|
|
131
|
-
* @description
|
|
152
|
+
* @description 是否展示序号栏
|
|
132
153
|
*/
|
|
133
|
-
|
|
134
|
-
type: PropType<
|
|
135
|
-
default:
|
|
154
|
+
showIndex: {
|
|
155
|
+
type: PropType<ProTableProps["showIndex"]>;
|
|
156
|
+
default: boolean;
|
|
136
157
|
};
|
|
137
158
|
/**
|
|
138
159
|
* @Author gx12358
|
|
139
|
-
* @DateTime
|
|
140
|
-
* @lastTime
|
|
141
|
-
* @description
|
|
160
|
+
* @DateTime 2024/11/15
|
|
161
|
+
* @lastTime 2024/11/15
|
|
162
|
+
* @description 是否已card分割
|
|
142
163
|
*/
|
|
143
|
-
|
|
144
|
-
type: PropType<
|
|
164
|
+
cardBordered: {
|
|
165
|
+
type: PropType<ProTableProps["showIndex"]>;
|
|
145
166
|
default: boolean;
|
|
146
167
|
};
|
|
147
168
|
/**
|
|
@@ -151,7 +172,7 @@ export declare const proTableProps: {
|
|
|
151
172
|
* @description 翻页item设置
|
|
152
173
|
*/
|
|
153
174
|
pageItemRender: {
|
|
154
|
-
type: PropType<
|
|
175
|
+
type: PropType<ProTableProps["pageItemRender"]>;
|
|
155
176
|
default: () => undefined;
|
|
156
177
|
};
|
|
157
178
|
/**
|
|
@@ -161,7 +182,7 @@ export declare const proTableProps: {
|
|
|
161
182
|
* @description 表格大小
|
|
162
183
|
*/
|
|
163
184
|
size: {
|
|
164
|
-
type: PropType<"
|
|
185
|
+
type: PropType<ProTableProps["size"]>;
|
|
165
186
|
default: string;
|
|
166
187
|
};
|
|
167
188
|
/**
|
|
@@ -171,26 +192,16 @@ export declare const proTableProps: {
|
|
|
171
192
|
* @description 表格全局对齐方式
|
|
172
193
|
*/
|
|
173
194
|
align: {
|
|
174
|
-
type: PropType<
|
|
195
|
+
type: PropType<ProTableProps["align"]>;
|
|
175
196
|
default: string;
|
|
176
197
|
};
|
|
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
198
|
/**
|
|
188
199
|
* @Author gx12358
|
|
189
200
|
* @DateTime 2022/2/8
|
|
190
201
|
* @lastTime 2022/2/8
|
|
191
202
|
* @description 是否列拖动
|
|
192
203
|
*/
|
|
193
|
-
|
|
204
|
+
draggable: PropType<ProTableProps["draggable"]>;
|
|
194
205
|
/**
|
|
195
206
|
* @Author gx12358
|
|
196
207
|
* @DateTime 2022/2/8
|
|
@@ -198,7 +209,7 @@ export declare const proTableProps: {
|
|
|
198
209
|
* @description 根据屏幕大小或者scrollBreakpoint或者scroll?.x是否存在判断action列是否固定
|
|
199
210
|
*/
|
|
200
211
|
autoScroll: {
|
|
201
|
-
type: PropType<
|
|
212
|
+
type: PropType<ProTableProps["autoScroll"]>;
|
|
202
213
|
default: boolean;
|
|
203
214
|
};
|
|
204
215
|
/**
|
|
@@ -207,21 +218,21 @@ export declare const proTableProps: {
|
|
|
207
218
|
* @lastTime 2022/2/8
|
|
208
219
|
* @description 滚动断点支持数字(屏幕宽度);也支持md、xl,xxl等
|
|
209
220
|
*/
|
|
210
|
-
scrollBreakpoint: PropType<
|
|
221
|
+
scrollBreakpoint: PropType<ProTableProps["scrollBreakpoint"]>;
|
|
211
222
|
/**
|
|
212
223
|
* @Author gx12358
|
|
213
224
|
* @DateTime 2022/2/8
|
|
214
225
|
* @lastTime 2022/2/8
|
|
215
226
|
* @description modalTable时,自动固定滚动高度
|
|
216
227
|
*/
|
|
217
|
-
modalScroll: PropType<
|
|
228
|
+
modalScroll: PropType<ProTableProps["modalScroll"]>;
|
|
218
229
|
/**
|
|
219
230
|
* @Author gx12358
|
|
220
231
|
* @DateTime 2022/2/8
|
|
221
232
|
* @lastTime 2022/2/8
|
|
222
233
|
* @description 从不滚动
|
|
223
234
|
*/
|
|
224
|
-
neverScroll: PropType<
|
|
235
|
+
neverScroll: PropType<ProTableProps["neverScroll"]>;
|
|
225
236
|
/**
|
|
226
237
|
* @Author gx12358
|
|
227
238
|
* @DateTime 2022/2/8
|
|
@@ -229,7 +240,7 @@ export declare const proTableProps: {
|
|
|
229
240
|
* @description 空值时的显示,不设置时显示 -, false 可以关闭此功能
|
|
230
241
|
*/
|
|
231
242
|
columnEmptyText: {
|
|
232
|
-
type: PropType<
|
|
243
|
+
type: PropType<ProTableProps["columnEmptyText"]>;
|
|
233
244
|
default: boolean;
|
|
234
245
|
};
|
|
235
246
|
/**
|
|
@@ -238,308 +249,36 @@ export declare const proTableProps: {
|
|
|
238
249
|
* @lastTime 2022/2/8
|
|
239
250
|
* @description Pro-Table 的方法
|
|
240
251
|
*/
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
prefixCls: {
|
|
250
|
-
type: PropType<string>;
|
|
251
|
-
default: string;
|
|
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
|
-
};
|
|
252
|
+
postData: PropType<ProTableProps["postData"]>;
|
|
253
|
+
onReset: PropType<ProTableProps["onReset"]>;
|
|
254
|
+
onReload: PropType<ProTableProps["onReload"]>;
|
|
255
|
+
onSubmit: PropType<ProTableProps["onSubmit"]>;
|
|
256
|
+
onSizeChange: PropType<ProTableProps["onSizeChange"]>;
|
|
257
|
+
onLoadingChange: PropType<ProTableProps["onLoadingChange"]>;
|
|
258
|
+
onRequestError: PropType<ProTableProps["onRequestError"]>;
|
|
259
|
+
onBeforeSearchSubmit: PropType<ProTableProps["onBeforeSearchSubmit"]>;
|
|
289
260
|
direction: {
|
|
290
|
-
type: PropType<"
|
|
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>;
|
|
261
|
+
type: PropType<"rtl" | "ltr">;
|
|
356
262
|
default: string;
|
|
357
263
|
};
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
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[];
|
|
264
|
+
transformCellText: PropType<import("ant-design-vue/es/table/Table").TableProps["transformCellText"]>;
|
|
265
|
+
bordered: {
|
|
266
|
+
type: PropType<import("ant-design-vue/es/table/Table").TableProps["bordered"]>;
|
|
267
|
+
default: undefined;
|
|
370
268
|
};
|
|
371
269
|
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;
|
|
270
|
+
type: PropType<boolean | import("ant-design-vue/es/spin/Spin").SpinProps>;
|
|
271
|
+
default: undefined;
|
|
412
272
|
};
|
|
413
273
|
scroll: {
|
|
414
|
-
type: PropType<{
|
|
415
|
-
|
|
416
|
-
y?: string | number | undefined;
|
|
417
|
-
} & {
|
|
418
|
-
scrollToFirstRowOnChange?: boolean | undefined;
|
|
274
|
+
type: PropType<import("ant-design-vue/es/vc-table/Table").TableProps["scroll"] & {
|
|
275
|
+
scrollToFirstRowOnChange?: boolean;
|
|
419
276
|
}>;
|
|
420
|
-
default:
|
|
421
|
-
x?: string | number | true | undefined;
|
|
422
|
-
y?: string | number | undefined;
|
|
423
|
-
} & {
|
|
424
|
-
scrollToFirstRowOnChange?: boolean | undefined;
|
|
425
|
-
};
|
|
277
|
+
default: undefined;
|
|
426
278
|
};
|
|
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>;
|
|
279
|
+
'onUpdate:expandedRowKeys': {
|
|
280
|
+
type: import("vue").PropType<(expandedKeys: import("ant-design-vue/es/vc-table/interface").Key[]) => void>;
|
|
281
|
+
default: (expandedKeys: import("ant-design-vue/es/vc-table/interface").Key[]) => void;
|
|
544
282
|
};
|
|
545
283
|
};
|
|
284
|
+
export type BaseTableProps = Partial<ExtractPropTypes<typeof proTableProps>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { GenerateStyle } from 'ant-design-vue/es/theme/internal';
|
|
2
1
|
import type { ProAliasToken } from '@gx-design-vue/pro-provider';
|
|
3
|
-
|
|
2
|
+
import type { GenerateStyle } from 'ant-design-vue/es/theme/internal';
|
|
3
|
+
export declare const genProTableFitPage: GenerateStyle<ProAliasToken>;
|