@gx-design-vue/pro-table 0.2.0-alpha.1 → 0.2.0-alpha.10
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 +14 -493
- package/dist/ProTable.js +818 -512
- package/dist/components/ScrollBar/Bar.d.ts +81 -0
- package/dist/components/ScrollBar/Bar.js +84 -0
- package/dist/components/ScrollBar/Thumb.d.ts +52 -0
- package/dist/components/ScrollBar/{Thumb/index.js → Thumb.js} +67 -58
- package/dist/components/ScrollBar/context.d.ts +3 -4
- package/dist/components/ScrollBar/context.js +3 -5
- package/dist/components/ScrollBar/util.d.ts +6 -5
- package/dist/components/ScrollBar/util.js +1 -14
- package/dist/components/SearchForm/CollapseToggle.d.ts +55 -0
- package/dist/components/SearchForm/CollapseToggle.js +47 -0
- package/dist/components/SearchForm/FormItemContainer.d.ts +75 -0
- package/dist/components/SearchForm/FormItemContainer.js +225 -0
- package/dist/components/SearchForm/FormItemWrapper.d.ts +82 -0
- package/dist/components/SearchForm/FormItemWrapper.js +62 -0
- package/dist/components/SearchForm/SearchForm.d.ts +130 -0
- package/dist/components/SearchForm/SearchForm.js +319 -0
- package/dist/components/SearchForm/index.d.ts +2 -0
- package/dist/components/SearchForm/index.js +2 -0
- package/dist/components/Toolbar/FullscreenIcon.d.ts +26 -0
- package/dist/components/Toolbar/FullscreenIcon.js +22 -0
- package/dist/components/Toolbar/ListToolBar.d.ts +111 -0
- package/dist/components/Toolbar/ListToolBar.js +101 -0
- package/dist/components/Toolbar/index.d.ts +103 -0
- package/dist/components/Toolbar/index.js +101 -0
- package/dist/components/Toolbar/style.d.ts +8 -0
- package/dist/components/{ListToolBar → Toolbar}/style.js +32 -27
- package/dist/context/TableContext.d.ts +15 -27
- package/dist/context/TableContext.js +3 -5
- package/dist/hooks/index.d.ts +16 -0
- package/dist/hooks/index.js +16 -0
- package/dist/hooks/useBreakpoints.d.ts +13 -0
- package/dist/hooks/useBreakpoints.js +57 -0
- package/dist/hooks/useCellRender.d.ts +13 -0
- package/dist/hooks/useCellRender.js +28 -0
- package/dist/hooks/useColumnResize.d.ts +30 -0
- package/dist/hooks/useColumnResize.js +110 -0
- package/dist/hooks/useColumns.d.ts +35 -24
- package/dist/hooks/useColumns.js +89 -58
- package/dist/hooks/useFetchData.d.ts +40 -65
- package/dist/hooks/useFetchData.js +157 -174
- package/dist/hooks/useFitPage.d.ts +19 -0
- package/dist/hooks/useFitPage.js +90 -0
- package/dist/hooks/useKeepAliveReload.d.ts +21 -0
- package/dist/hooks/useKeepAliveReload.js +24 -0
- package/dist/hooks/useLoading.d.ts +18 -7
- package/dist/hooks/useLoading.js +27 -11
- package/dist/hooks/usePagination.d.ts +10 -7
- package/dist/hooks/usePagination.js +38 -29
- package/dist/hooks/useRequestOptions.d.ts +18 -0
- package/dist/hooks/useRequestOptions.js +39 -0
- package/dist/hooks/useRowSelection.d.ts +27 -15
- package/dist/hooks/useRowSelection.js +93 -80
- package/dist/hooks/useTable.d.ts +35 -77
- package/dist/hooks/useTable.js +72 -50
- package/dist/hooks/useTableForm.d.ts +15 -82
- package/dist/hooks/useTableForm.js +93 -55
- package/dist/hooks/useTableScroll.d.ts +33 -31
- package/dist/hooks/useTableScroll.js +71 -28
- package/dist/hooks/useTableSize.d.ts +17 -7
- package/dist/hooks/useTableSize.js +21 -9
- package/dist/index.d.ts +10 -7
- package/dist/index.js +9 -4
- package/dist/interface.d.ts +499 -0
- package/dist/interface.js +1 -0
- package/dist/pro-table.esm.js +3579 -3834
- package/dist/pro-table.js +1 -1
- package/dist/style/fit-page.d.ts +4 -2
- package/dist/style/fit-page.js +10 -5
- package/dist/style/index.d.ts +4 -6
- package/dist/style/index.js +24 -76
- package/dist/style/list.d.ts +4 -2
- package/dist/style/list.js +2 -12
- package/dist/style/resizable.d.ts +8 -0
- package/dist/style/resizable.js +18 -0
- package/dist/style/scroll.d.ts +4 -2
- package/dist/style/scroll.js +9 -9
- package/dist/style/search.d.ts +8 -0
- package/dist/{components/Form/style.js → style/search.js} +22 -9
- package/dist/theme/augment.d.ts +8 -0
- package/dist/theme/augment.js +1 -0
- package/dist/theme/interface/components.d.ts +8 -0
- package/dist/theme/interface/components.js +1 -0
- package/dist/utils/dateFormat.d.ts +9 -0
- package/dist/utils/dateFormat.js +29 -0
- package/dist/utils/formConstants.d.ts +9 -0
- package/dist/utils/formConstants.js +29 -0
- package/dist/utils/valueFormat.d.ts +9 -0
- package/dist/utils/valueFormat.js +27 -0
- package/package.json +10 -9
- package/dist/components/Form/components/RequestSelect.d.ts +0 -50
- package/dist/components/Form/components/RequestSelect.js +0 -58
- package/dist/components/Form/hooks/useForm.d.ts +0 -11
- package/dist/components/Form/hooks/useForm.js +0 -32
- package/dist/components/Form/index.d.ts +0 -33
- package/dist/components/Form/index.js +0 -479
- package/dist/components/Form/style.d.ts +0 -6
- package/dist/components/Form/utils/config.d.ts +0 -9
- package/dist/components/Form/utils/config.js +0 -30
- package/dist/components/Form/utils/dateFormat.d.ts +0 -22
- package/dist/components/Form/utils/dateFormat.js +0 -45
- package/dist/components/ListToolBar/index.d.ts +0 -60
- package/dist/components/ListToolBar/index.js +0 -123
- package/dist/components/ListToolBar/style.d.ts +0 -6
- package/dist/components/ScrollBar/Bar/index.d.ts +0 -49
- package/dist/components/ScrollBar/Bar/index.js +0 -71
- package/dist/components/ScrollBar/Bar/props.d.ts +0 -25
- package/dist/components/ScrollBar/Bar/props.js +0 -18
- package/dist/components/ScrollBar/Thumb/index.d.ts +0 -40
- package/dist/components/ScrollBar/Thumb/props.d.ts +0 -20
- package/dist/components/ScrollBar/Thumb/props.js +0 -18
- package/dist/components/TableCell/index.d.ts +0 -37
- package/dist/components/TableCell/index.js +0 -72
- package/dist/components/ToolBar/FullscreenIcon.d.ts +0 -7
- package/dist/components/ToolBar/FullscreenIcon.js +0 -14
- package/dist/components/ToolBar/index.d.ts +0 -34
- package/dist/components/ToolBar/index.js +0 -100
- package/dist/hooks/tryOnActivated.d.ts +0 -6
- package/dist/hooks/tryOnActivated.js +0 -14
- package/dist/hooks/useDebounceFn.d.ts +0 -8
- package/dist/hooks/useDebounceFn.js +0 -34
- package/dist/hooks/useScrollArea.d.ts +0 -24
- package/dist/hooks/useScrollArea.js +0 -104
- package/dist/props.d.ts +0 -340
- package/dist/props.js +0 -251
- package/dist/types/ColumnTypings.d.ts +0 -127
- package/dist/types/ColumnTypings.js +0 -1
- package/dist/types/SlotsTypings.d.ts +0 -63
- package/dist/types/SlotsTypings.js +0 -13
- package/dist/types/TableTypings.d.ts +0 -359
- package/dist/types/TableTypings.js +0 -1
- package/dist/types/index.d.ts +0 -9
- package/dist/types/index.js +0 -1
- package/dist/utils/utils.d.ts +0 -10
- package/dist/utils/utils.js +0 -91
package/dist/ProTable.d.ts
CHANGED
|
@@ -1,497 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CustomDataRender, DefaultRender, PageItemRender, ProTableBodyCellProps } from "./types/SlotsTypings.js";
|
|
3
|
-
import { ProFieldEmptyText, ProTableProps, ProTableRowSelection, RequestFunction, TableActionPlacement, TableClassNamesType, TableSemanticName, TableStylesType } from "./types/TableTypings.js";
|
|
4
|
-
import "./index.js";
|
|
5
|
-
import * as vue59 from "vue";
|
|
6
|
-
import { SlotsType } from "vue";
|
|
1
|
+
import { ProTableEmits, ProTableProps, ProTableRef, ProTableSlots } from "./interface.js";
|
|
7
2
|
import { RecordType } from "@gx-design-vue/pro-utils";
|
|
8
|
-
import * as ant_design_vue0 from "ant-design-vue";
|
|
9
|
-
import { SpinProps } from "ant-design-vue";
|
|
10
|
-
import { ColumnType } from "ant-design-vue/es/table";
|
|
11
|
-
import * as ant_design_vue_es_vc_table_interface3 from "ant-design-vue/es/vc-table/interface";
|
|
12
|
-
import { Key, RenderExpandIconProps } from "ant-design-vue/es/vc-table/interface";
|
|
13
|
-
import * as ant_design_vue_es_vc_table_Table0 from "ant-design-vue/es/vc-table/Table";
|
|
14
|
-
import * as ant_design_vue_es__util_type0 from "ant-design-vue/es/_util/type";
|
|
15
3
|
|
|
16
4
|
//#region src/ProTable.d.ts
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
};
|
|
30
|
-
classNames: {
|
|
31
|
-
type: vue59.PropType<TableClassNamesType>;
|
|
32
|
-
default: () => {};
|
|
33
|
-
};
|
|
34
|
-
styles: {
|
|
35
|
-
type: vue59.PropType<TableStylesType>;
|
|
36
|
-
default: () => {};
|
|
37
|
-
};
|
|
38
|
-
fitPage: {
|
|
39
|
-
type: vue59.PropType<ProTableProps["fitPage"]>;
|
|
40
|
-
default: boolean;
|
|
41
|
-
};
|
|
42
|
-
rowSelection: {
|
|
43
|
-
type: vue59.PropType<ProTableRowSelection>;
|
|
44
|
-
default: any;
|
|
45
|
-
};
|
|
46
|
-
columns: {
|
|
47
|
-
type: vue59.PropType<ProTableProps["columns"]>;
|
|
48
|
-
default: () => any[];
|
|
49
|
-
};
|
|
50
|
-
pagination: {
|
|
51
|
-
type: vue59.PropType<ProTableProps["pagination"]>;
|
|
52
|
-
default: () => any;
|
|
53
|
-
};
|
|
54
|
-
rowKey: {
|
|
55
|
-
type: vue59.PropType<string>;
|
|
56
|
-
default: string;
|
|
57
|
-
};
|
|
58
|
-
request: {
|
|
59
|
-
type: vue59.PropType<ProTableProps["request"]>;
|
|
60
|
-
default: any;
|
|
61
|
-
};
|
|
62
|
-
autoRequest: {
|
|
63
|
-
type: vue59.PropType<ProTableProps["autoRequest"]>;
|
|
64
|
-
default: boolean;
|
|
65
|
-
};
|
|
66
|
-
virtualScroll: vue59.PropType<ProTableProps["virtualScroll"]>;
|
|
67
|
-
params: {
|
|
68
|
-
type: vue59.PropType<ProTableProps["params"]>;
|
|
69
|
-
default: () => {};
|
|
70
|
-
};
|
|
71
|
-
waitRequest: {
|
|
72
|
-
type: vue59.PropType<ProTableProps["waitRequest"]>;
|
|
73
|
-
default: boolean;
|
|
74
|
-
};
|
|
75
|
-
title: vue59.PropType<ProTableProps["title"]>;
|
|
76
|
-
footer: vue59.PropType<ProTableProps["footer"]>;
|
|
77
|
-
transformCellText: vue59.PropType<ProTableProps["transformCellText"]>;
|
|
78
|
-
rowExpandable: vue59.PropType<ProTableProps["rowExpandable"]>;
|
|
79
|
-
rowClassName: vue59.PropType<ProTableProps["rowClassName"]>;
|
|
80
|
-
expandIcon: vue59.PropType<ProTableProps["expandIcon"]>;
|
|
81
|
-
expandedRowKeys: vue59.PropType<ProTableProps["expandedRowKeys"]>;
|
|
82
|
-
defaultExpandedRowKeys: vue59.PropType<ProTableProps["defaultExpandedRowKeys"]>;
|
|
83
|
-
expandedRowRender: vue59.PropType<ProTableProps["expandedRowRender"]>;
|
|
84
|
-
customRow: vue59.PropType<ProTableProps["customRow"]>;
|
|
85
|
-
customHeaderRow: vue59.PropType<ProTableProps["customHeaderRow"]>;
|
|
86
|
-
polling: vue59.PropType<ProTableProps["polling"]>;
|
|
87
|
-
debounceTime: {
|
|
88
|
-
type: vue59.PropType<ProTableProps["debounceTime"]>;
|
|
89
|
-
default: number;
|
|
90
|
-
};
|
|
91
|
-
form: {
|
|
92
|
-
type: vue59.PropType<ProTableProps["form"]>;
|
|
93
|
-
default: () => any;
|
|
94
|
-
};
|
|
95
|
-
searchMap: {
|
|
96
|
-
type: vue59.PropType<ProTableProps["searchMap"]>;
|
|
97
|
-
default: () => any[];
|
|
98
|
-
};
|
|
99
|
-
customRender: {
|
|
100
|
-
type: vue59.PropType<ProTableProps["customRender"]>;
|
|
101
|
-
default: () => any;
|
|
102
|
-
};
|
|
103
|
-
emptyText: {
|
|
104
|
-
type: vue59.PropType<ProTableProps["emptyText"]>;
|
|
105
|
-
default: () => any;
|
|
106
|
-
};
|
|
107
|
-
showLoading: {
|
|
108
|
-
type: vue59.PropType<ProTableProps["showLoading"]>;
|
|
109
|
-
default: boolean;
|
|
110
|
-
};
|
|
111
|
-
emptyTextProps: {
|
|
112
|
-
type: vue59.PropType<ProTableProps["emptyTextProps"]>;
|
|
113
|
-
default: () => ProTableProps["emptyTextProps"];
|
|
114
|
-
};
|
|
115
|
-
actionProps: {
|
|
116
|
-
type: vue59.PropType<ProTableProps["actionProps"]>;
|
|
117
|
-
default: () => {
|
|
118
|
-
placement: string;
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
listToolAfter: {
|
|
122
|
-
type: vue59.PropType<ProTableProps["listToolAfter"]>;
|
|
123
|
-
default: () => any;
|
|
124
|
-
};
|
|
125
|
-
headerTitle: {
|
|
126
|
-
type: vue59.PropType<ProTableProps["headerTitle"]>;
|
|
127
|
-
default: () => any;
|
|
128
|
-
};
|
|
129
|
-
headerTitleTip: {
|
|
130
|
-
type: vue59.PropType<ProTableProps["headerTitleTip"]>;
|
|
131
|
-
default: () => any;
|
|
132
|
-
};
|
|
133
|
-
titleTipText: {
|
|
134
|
-
type: vue59.PropType<ProTableProps["titleTipText"]>;
|
|
135
|
-
};
|
|
136
|
-
options: {
|
|
137
|
-
type: vue59.PropType<ProTableProps["options"]>;
|
|
138
|
-
default: boolean;
|
|
139
|
-
};
|
|
140
|
-
keepAliveReload: {
|
|
141
|
-
type: vue59.PropType<ProTableProps["keepAliveReload"]>;
|
|
142
|
-
default: boolean;
|
|
143
|
-
};
|
|
144
|
-
showIndex: {
|
|
145
|
-
type: vue59.PropType<ProTableProps["showIndex"]>;
|
|
146
|
-
default: boolean;
|
|
147
|
-
};
|
|
148
|
-
cardBordered: {
|
|
149
|
-
type: vue59.PropType<ProTableProps["showIndex"]>;
|
|
150
|
-
default: boolean;
|
|
151
|
-
};
|
|
152
|
-
pageItemRender: {
|
|
153
|
-
type: vue59.PropType<ProTableProps["pageItemRender"]>;
|
|
154
|
-
default: () => any;
|
|
155
|
-
};
|
|
156
|
-
size: {
|
|
157
|
-
type: vue59.PropType<ProTableProps["size"]>;
|
|
158
|
-
default: string;
|
|
159
|
-
};
|
|
160
|
-
align: {
|
|
161
|
-
type: vue59.PropType<ProTableProps["align"]>;
|
|
162
|
-
default: string;
|
|
163
|
-
};
|
|
164
|
-
draggable: vue59.PropType<ProTableProps["draggable"]>;
|
|
165
|
-
autoScroll: {
|
|
166
|
-
type: vue59.PropType<ProTableProps["autoScroll"]>;
|
|
167
|
-
default: boolean;
|
|
168
|
-
};
|
|
169
|
-
scrollBreakpoint: vue59.PropType<ProTableProps["scrollBreakpoint"]>;
|
|
170
|
-
modalScroll: vue59.PropType<ProTableProps["modalScroll"]>;
|
|
171
|
-
neverScroll: vue59.PropType<ProTableProps["neverScroll"]>;
|
|
172
|
-
columnEmptyText: {
|
|
173
|
-
type: vue59.PropType<ProTableProps["columnEmptyText"]>;
|
|
174
|
-
default: any;
|
|
175
|
-
};
|
|
176
|
-
postData: vue59.PropType<ProTableProps["postData"]>;
|
|
177
|
-
onReset: vue59.PropType<ProTableProps["onReset"]>;
|
|
178
|
-
onReload: vue59.PropType<ProTableProps["onReload"]>;
|
|
179
|
-
onSubmit: vue59.PropType<ProTableProps["onSubmit"]>;
|
|
180
|
-
onChange: vue59.PropType<ProTableProps["onChange"]>;
|
|
181
|
-
onSizeChange: vue59.PropType<ProTableProps["onSizeChange"]>;
|
|
182
|
-
onLoadingChange: vue59.PropType<ProTableProps["onLoadingChange"]>;
|
|
183
|
-
onRequestError: vue59.PropType<ProTableProps["onRequestError"]>;
|
|
184
|
-
onBeforeSearchSubmit: vue59.PropType<ProTableProps["onBeforeSearchSubmit"]>;
|
|
185
|
-
onExpand: vue59.PropType<ProTableProps["onExpand"]>;
|
|
186
|
-
onResizeColumn: vue59.PropType<ProTableProps["onResizeColumn"]>;
|
|
187
|
-
onExpandedRowsChange: vue59.PropType<ProTableProps["onExpandedRowsChange"]>;
|
|
188
|
-
direction: {
|
|
189
|
-
type: vue59.PropType<"rtl" | "ltr">;
|
|
190
|
-
default: string;
|
|
191
|
-
};
|
|
192
|
-
bordered: {
|
|
193
|
-
type: vue59.PropType<ant_design_vue0.TableProps["bordered"]>;
|
|
194
|
-
default: any;
|
|
195
|
-
};
|
|
196
|
-
loading: {
|
|
197
|
-
type: vue59.PropType<boolean | SpinProps>;
|
|
198
|
-
default: any;
|
|
199
|
-
};
|
|
200
|
-
scroll: {
|
|
201
|
-
type: vue59.PropType<ant_design_vue_es_vc_table_Table0.TableProps["scroll"] & {
|
|
202
|
-
scrollToFirstRowOnChange?: boolean;
|
|
203
|
-
}>;
|
|
204
|
-
default: any;
|
|
205
|
-
};
|
|
206
|
-
'onUpdate:expandedRowKeys': {
|
|
207
|
-
type: vue59.PropType<(expandedKeys: ant_design_vue_es_vc_table_interface3.Key[]) => void>;
|
|
208
|
-
default: (expandedKeys: ant_design_vue_es_vc_table_interface3.Key[]) => void;
|
|
209
|
-
};
|
|
210
|
-
}>, () => ant_design_vue_es__util_type0.VueNode, {}, {}, {}, vue59.ComponentOptionsMixin, vue59.ComponentOptionsMixin, ("reset" | "submit" | "reload" | "sizeChange" | "expandedRowsChange" | "expand" | "change" | "requestError" | "columnsStateChange" | "loadingChange")[], "reset" | "submit" | "reload" | "sizeChange" | "expandedRowsChange" | "expand" | "change" | "requestError" | "columnsStateChange" | "loadingChange", vue59.PublicProps, Readonly<vue59.ExtractPropTypes<{
|
|
211
|
-
id: {
|
|
212
|
-
type: vue59.PropType<string>;
|
|
213
|
-
default: string;
|
|
214
|
-
};
|
|
215
|
-
class: {
|
|
216
|
-
type: vue59.PropType<string>;
|
|
217
|
-
default: string;
|
|
218
|
-
};
|
|
219
|
-
style: {
|
|
220
|
-
type: vue59.PropType<vue59.CSSProperties>;
|
|
221
|
-
default: () => {};
|
|
222
|
-
};
|
|
223
|
-
classNames: {
|
|
224
|
-
type: vue59.PropType<TableClassNamesType>;
|
|
225
|
-
default: () => {};
|
|
226
|
-
};
|
|
227
|
-
styles: {
|
|
228
|
-
type: vue59.PropType<TableStylesType>;
|
|
229
|
-
default: () => {};
|
|
230
|
-
};
|
|
231
|
-
fitPage: {
|
|
232
|
-
type: vue59.PropType<ProTableProps["fitPage"]>;
|
|
233
|
-
default: boolean;
|
|
234
|
-
};
|
|
235
|
-
rowSelection: {
|
|
236
|
-
type: vue59.PropType<ProTableRowSelection>;
|
|
237
|
-
default: any;
|
|
238
|
-
};
|
|
239
|
-
columns: {
|
|
240
|
-
type: vue59.PropType<ProTableProps["columns"]>;
|
|
241
|
-
default: () => any[];
|
|
242
|
-
};
|
|
243
|
-
pagination: {
|
|
244
|
-
type: vue59.PropType<ProTableProps["pagination"]>;
|
|
245
|
-
default: () => any;
|
|
246
|
-
};
|
|
247
|
-
rowKey: {
|
|
248
|
-
type: vue59.PropType<string>;
|
|
249
|
-
default: string;
|
|
250
|
-
};
|
|
251
|
-
request: {
|
|
252
|
-
type: vue59.PropType<ProTableProps["request"]>;
|
|
253
|
-
default: any;
|
|
254
|
-
};
|
|
255
|
-
autoRequest: {
|
|
256
|
-
type: vue59.PropType<ProTableProps["autoRequest"]>;
|
|
257
|
-
default: boolean;
|
|
258
|
-
};
|
|
259
|
-
virtualScroll: vue59.PropType<ProTableProps["virtualScroll"]>;
|
|
260
|
-
params: {
|
|
261
|
-
type: vue59.PropType<ProTableProps["params"]>;
|
|
262
|
-
default: () => {};
|
|
263
|
-
};
|
|
264
|
-
waitRequest: {
|
|
265
|
-
type: vue59.PropType<ProTableProps["waitRequest"]>;
|
|
266
|
-
default: boolean;
|
|
267
|
-
};
|
|
268
|
-
title: vue59.PropType<ProTableProps["title"]>;
|
|
269
|
-
footer: vue59.PropType<ProTableProps["footer"]>;
|
|
270
|
-
transformCellText: vue59.PropType<ProTableProps["transformCellText"]>;
|
|
271
|
-
rowExpandable: vue59.PropType<ProTableProps["rowExpandable"]>;
|
|
272
|
-
rowClassName: vue59.PropType<ProTableProps["rowClassName"]>;
|
|
273
|
-
expandIcon: vue59.PropType<ProTableProps["expandIcon"]>;
|
|
274
|
-
expandedRowKeys: vue59.PropType<ProTableProps["expandedRowKeys"]>;
|
|
275
|
-
defaultExpandedRowKeys: vue59.PropType<ProTableProps["defaultExpandedRowKeys"]>;
|
|
276
|
-
expandedRowRender: vue59.PropType<ProTableProps["expandedRowRender"]>;
|
|
277
|
-
customRow: vue59.PropType<ProTableProps["customRow"]>;
|
|
278
|
-
customHeaderRow: vue59.PropType<ProTableProps["customHeaderRow"]>;
|
|
279
|
-
polling: vue59.PropType<ProTableProps["polling"]>;
|
|
280
|
-
debounceTime: {
|
|
281
|
-
type: vue59.PropType<ProTableProps["debounceTime"]>;
|
|
282
|
-
default: number;
|
|
283
|
-
};
|
|
284
|
-
form: {
|
|
285
|
-
type: vue59.PropType<ProTableProps["form"]>;
|
|
286
|
-
default: () => any;
|
|
287
|
-
};
|
|
288
|
-
searchMap: {
|
|
289
|
-
type: vue59.PropType<ProTableProps["searchMap"]>;
|
|
290
|
-
default: () => any[];
|
|
291
|
-
};
|
|
292
|
-
customRender: {
|
|
293
|
-
type: vue59.PropType<ProTableProps["customRender"]>;
|
|
294
|
-
default: () => any;
|
|
295
|
-
};
|
|
296
|
-
emptyText: {
|
|
297
|
-
type: vue59.PropType<ProTableProps["emptyText"]>;
|
|
298
|
-
default: () => any;
|
|
299
|
-
};
|
|
300
|
-
showLoading: {
|
|
301
|
-
type: vue59.PropType<ProTableProps["showLoading"]>;
|
|
302
|
-
default: boolean;
|
|
303
|
-
};
|
|
304
|
-
emptyTextProps: {
|
|
305
|
-
type: vue59.PropType<ProTableProps["emptyTextProps"]>;
|
|
306
|
-
default: () => ProTableProps["emptyTextProps"];
|
|
307
|
-
};
|
|
308
|
-
actionProps: {
|
|
309
|
-
type: vue59.PropType<ProTableProps["actionProps"]>;
|
|
310
|
-
default: () => {
|
|
311
|
-
placement: string;
|
|
312
|
-
};
|
|
313
|
-
};
|
|
314
|
-
listToolAfter: {
|
|
315
|
-
type: vue59.PropType<ProTableProps["listToolAfter"]>;
|
|
316
|
-
default: () => any;
|
|
317
|
-
};
|
|
318
|
-
headerTitle: {
|
|
319
|
-
type: vue59.PropType<ProTableProps["headerTitle"]>;
|
|
320
|
-
default: () => any;
|
|
321
|
-
};
|
|
322
|
-
headerTitleTip: {
|
|
323
|
-
type: vue59.PropType<ProTableProps["headerTitleTip"]>;
|
|
324
|
-
default: () => any;
|
|
325
|
-
};
|
|
326
|
-
titleTipText: {
|
|
327
|
-
type: vue59.PropType<ProTableProps["titleTipText"]>;
|
|
328
|
-
};
|
|
329
|
-
options: {
|
|
330
|
-
type: vue59.PropType<ProTableProps["options"]>;
|
|
331
|
-
default: boolean;
|
|
332
|
-
};
|
|
333
|
-
keepAliveReload: {
|
|
334
|
-
type: vue59.PropType<ProTableProps["keepAliveReload"]>;
|
|
335
|
-
default: boolean;
|
|
336
|
-
};
|
|
337
|
-
showIndex: {
|
|
338
|
-
type: vue59.PropType<ProTableProps["showIndex"]>;
|
|
339
|
-
default: boolean;
|
|
340
|
-
};
|
|
341
|
-
cardBordered: {
|
|
342
|
-
type: vue59.PropType<ProTableProps["showIndex"]>;
|
|
343
|
-
default: boolean;
|
|
344
|
-
};
|
|
345
|
-
pageItemRender: {
|
|
346
|
-
type: vue59.PropType<ProTableProps["pageItemRender"]>;
|
|
347
|
-
default: () => any;
|
|
348
|
-
};
|
|
349
|
-
size: {
|
|
350
|
-
type: vue59.PropType<ProTableProps["size"]>;
|
|
351
|
-
default: string;
|
|
352
|
-
};
|
|
353
|
-
align: {
|
|
354
|
-
type: vue59.PropType<ProTableProps["align"]>;
|
|
355
|
-
default: string;
|
|
356
|
-
};
|
|
357
|
-
draggable: vue59.PropType<ProTableProps["draggable"]>;
|
|
358
|
-
autoScroll: {
|
|
359
|
-
type: vue59.PropType<ProTableProps["autoScroll"]>;
|
|
360
|
-
default: boolean;
|
|
361
|
-
};
|
|
362
|
-
scrollBreakpoint: vue59.PropType<ProTableProps["scrollBreakpoint"]>;
|
|
363
|
-
modalScroll: vue59.PropType<ProTableProps["modalScroll"]>;
|
|
364
|
-
neverScroll: vue59.PropType<ProTableProps["neverScroll"]>;
|
|
365
|
-
columnEmptyText: {
|
|
366
|
-
type: vue59.PropType<ProTableProps["columnEmptyText"]>;
|
|
367
|
-
default: any;
|
|
368
|
-
};
|
|
369
|
-
postData: vue59.PropType<ProTableProps["postData"]>;
|
|
370
|
-
onReset: vue59.PropType<ProTableProps["onReset"]>;
|
|
371
|
-
onReload: vue59.PropType<ProTableProps["onReload"]>;
|
|
372
|
-
onSubmit: vue59.PropType<ProTableProps["onSubmit"]>;
|
|
373
|
-
onChange: vue59.PropType<ProTableProps["onChange"]>;
|
|
374
|
-
onSizeChange: vue59.PropType<ProTableProps["onSizeChange"]>;
|
|
375
|
-
onLoadingChange: vue59.PropType<ProTableProps["onLoadingChange"]>;
|
|
376
|
-
onRequestError: vue59.PropType<ProTableProps["onRequestError"]>;
|
|
377
|
-
onBeforeSearchSubmit: vue59.PropType<ProTableProps["onBeforeSearchSubmit"]>;
|
|
378
|
-
onExpand: vue59.PropType<ProTableProps["onExpand"]>;
|
|
379
|
-
onResizeColumn: vue59.PropType<ProTableProps["onResizeColumn"]>;
|
|
380
|
-
onExpandedRowsChange: vue59.PropType<ProTableProps["onExpandedRowsChange"]>;
|
|
381
|
-
direction: {
|
|
382
|
-
type: vue59.PropType<"rtl" | "ltr">;
|
|
383
|
-
default: string;
|
|
384
|
-
};
|
|
385
|
-
bordered: {
|
|
386
|
-
type: vue59.PropType<ant_design_vue0.TableProps["bordered"]>;
|
|
387
|
-
default: any;
|
|
388
|
-
};
|
|
389
|
-
loading: {
|
|
390
|
-
type: vue59.PropType<boolean | SpinProps>;
|
|
391
|
-
default: any;
|
|
392
|
-
};
|
|
393
|
-
scroll: {
|
|
394
|
-
type: vue59.PropType<ant_design_vue_es_vc_table_Table0.TableProps["scroll"] & {
|
|
395
|
-
scrollToFirstRowOnChange?: boolean;
|
|
396
|
-
}>;
|
|
397
|
-
default: any;
|
|
398
|
-
};
|
|
399
|
-
'onUpdate:expandedRowKeys': {
|
|
400
|
-
type: vue59.PropType<(expandedKeys: ant_design_vue_es_vc_table_interface3.Key[]) => void>;
|
|
401
|
-
default: (expandedKeys: ant_design_vue_es_vc_table_interface3.Key[]) => void;
|
|
402
|
-
};
|
|
403
|
-
}>> & Readonly<{
|
|
404
|
-
onChange?: (...args: any[]) => any;
|
|
405
|
-
onExpand?: (...args: any[]) => any;
|
|
406
|
-
onExpandedRowsChange?: (...args: any[]) => any;
|
|
407
|
-
onReset?: (...args: any[]) => any;
|
|
408
|
-
onReload?: (...args: any[]) => any;
|
|
409
|
-
onSubmit?: (...args: any[]) => any;
|
|
410
|
-
onSizeChange?: (...args: any[]) => any;
|
|
411
|
-
onLoadingChange?: (...args: any[]) => any;
|
|
412
|
-
onRequestError?: (...args: any[]) => any;
|
|
413
|
-
onColumnsStateChange?: (...args: any[]) => any;
|
|
414
|
-
}>, {
|
|
415
|
-
loading: any;
|
|
416
|
-
request: RequestFunction<RecordType, RecordType>;
|
|
417
|
-
size: "small" | "middle" | "large";
|
|
418
|
-
debounceTime: number;
|
|
419
|
-
align: ant_design_vue_es_vc_table_interface3.AlignType;
|
|
420
|
-
customRender: CustomDataRender;
|
|
421
|
-
class: string;
|
|
422
|
-
scroll: {
|
|
423
|
-
x?: number | true | string;
|
|
424
|
-
y?: number | string;
|
|
425
|
-
} & {
|
|
426
|
-
scrollToFirstRowOnChange?: boolean;
|
|
427
|
-
};
|
|
428
|
-
columns: ProColumnsType<RecordType, RecordType>;
|
|
429
|
-
rowKey: string;
|
|
430
|
-
id: string;
|
|
431
|
-
pagination: any;
|
|
432
|
-
emptyText: DefaultRender;
|
|
433
|
-
direction: "rtl" | "ltr";
|
|
434
|
-
bordered: boolean;
|
|
435
|
-
rowSelection: ProTableRowSelection;
|
|
436
|
-
fitPage: boolean;
|
|
437
|
-
style: vue59.CSSProperties;
|
|
438
|
-
classNames: Partial<Record<TableSemanticName, string>>;
|
|
439
|
-
styles: Partial<Record<TableSemanticName, vue59.CSSProperties>>;
|
|
440
|
-
actionProps: {
|
|
441
|
-
placement?: TableActionPlacement;
|
|
442
|
-
actions?: DefaultRender[];
|
|
443
|
-
};
|
|
444
|
-
autoScroll: boolean;
|
|
445
|
-
keepAliveReload: boolean;
|
|
446
|
-
emptyTextProps: {
|
|
447
|
-
class?: string;
|
|
448
|
-
style?: vue59.CSSProperties;
|
|
449
|
-
extraProps?: RecordType;
|
|
450
|
-
};
|
|
451
|
-
columnEmptyText: ProFieldEmptyText<RecordType>;
|
|
452
|
-
showLoading: boolean;
|
|
453
|
-
showIndex: boolean;
|
|
454
|
-
cardBordered: boolean;
|
|
455
|
-
options: boolean;
|
|
456
|
-
waitRequest: boolean;
|
|
457
|
-
autoRequest: boolean;
|
|
458
|
-
params: RecordType;
|
|
459
|
-
form: any;
|
|
460
|
-
searchMap: ProSearchMap<undefined, string>[];
|
|
461
|
-
headerTitle: DefaultRender;
|
|
462
|
-
headerTitleTip: DefaultRender;
|
|
463
|
-
listToolAfter: DefaultRender;
|
|
464
|
-
pageItemRender: PageItemRender;
|
|
465
|
-
'onUpdate:expandedRowKeys': (expandedKeys: ant_design_vue_es_vc_table_interface3.Key[]) => void;
|
|
466
|
-
}, SlotsType<{
|
|
467
|
-
form: () => any;
|
|
468
|
-
actions: () => any;
|
|
469
|
-
emptyText: () => any;
|
|
470
|
-
headerTitle: () => any;
|
|
471
|
-
headerTitleTip: () => any;
|
|
472
|
-
listToolAfter: () => any;
|
|
473
|
-
default: () => any;
|
|
474
|
-
pageItemRender: (params: {
|
|
475
|
-
page: number;
|
|
476
|
-
type: "page" | "prev" | "next" | "jump-prev" | "jump-next";
|
|
477
|
-
originalElement: any;
|
|
478
|
-
}) => any;
|
|
479
|
-
customRender: (params: {
|
|
480
|
-
currentData: any[];
|
|
481
|
-
dataSource: any[];
|
|
482
|
-
}) => any;
|
|
483
|
-
expandIcon: (props: RenderExpandIconProps<any>) => any;
|
|
484
|
-
footer: () => any;
|
|
485
|
-
summary: () => any;
|
|
486
|
-
expandedRowRender: () => any;
|
|
487
|
-
expandColumnTitle: () => any;
|
|
488
|
-
bodyCell: (props: ProTableBodyCellProps<any>) => any;
|
|
489
|
-
headerCell: (props: {
|
|
490
|
-
title: any;
|
|
491
|
-
column: ColumnType;
|
|
492
|
-
}) => any;
|
|
493
|
-
customFilterIcon: () => any;
|
|
494
|
-
customFilterDropdown: () => any;
|
|
495
|
-
}>, {}, {}, string, vue59.ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
type ProTableEmitsProps<DataRecord = RecordType, ParamsType = RecordType> = { [K in keyof ProTableEmits<DataRecord, ParamsType> as `on${Capitalize<string & K>}`]?: ProTableEmits<DataRecord, ParamsType>[K] };
|
|
6
|
+
interface InternalProTableProps<DataRecord = RecordType, ParamsType = RecordType> extends ProTableProps<DataRecord, ParamsType>, ProTableEmitsProps<DataRecord, ParamsType> {}
|
|
7
|
+
type ProTableEmitFn<DataRecord = RecordType, ParamsType = RecordType> = { [K in keyof ProTableEmitOptions<DataRecord, ParamsType>]: (event: K, ...args: Parameters<ProTableEmitOptions<DataRecord, ParamsType>[K]>) => void }[keyof ProTableEmitOptions<DataRecord, ParamsType>];
|
|
8
|
+
type ProTableEmitOptions<DataRecord = RecordType, ParamsType = RecordType> = { [K in keyof ProTableEmits<DataRecord, ParamsType>]: NonNullable<ProTableEmits<DataRecord, ParamsType>[K]> };
|
|
9
|
+
interface ForwardProTableType {
|
|
10
|
+
new <DataRecord = RecordType, ParamsType = RecordType>(props: InternalProTableProps<DataRecord, ParamsType>): {
|
|
11
|
+
$props: InternalProTableProps<DataRecord, ParamsType>;
|
|
12
|
+
$emit: ProTableEmitFn<DataRecord, ParamsType>;
|
|
13
|
+
$slots: ProTableSlots<DataRecord>;
|
|
14
|
+
} & ProTableRef<DataRecord, ParamsType>;
|
|
15
|
+
}
|
|
16
|
+
declare const _default: ForwardProTableType;
|
|
496
17
|
//#endregion
|
|
497
|
-
export {
|
|
18
|
+
export { ForwardProTableType, ProTableEmitsProps, _default as default };
|