@gx-design-vue/pro-table 0.2.0-alpha.7 → 0.2.0-alpha.9

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.
Files changed (133) hide show
  1. package/dist/ProTable.d.ts +14 -492
  2. package/dist/ProTable.js +818 -518
  3. package/dist/components/ScrollBar/Bar.d.ts +81 -0
  4. package/dist/components/ScrollBar/Bar.js +84 -0
  5. package/dist/components/ScrollBar/Thumb.d.ts +52 -0
  6. package/dist/components/ScrollBar/{Thumb/index.js → Thumb.js} +67 -55
  7. package/dist/components/ScrollBar/context.d.ts +3 -4
  8. package/dist/components/ScrollBar/context.js +3 -3
  9. package/dist/components/ScrollBar/util.d.ts +6 -5
  10. package/dist/components/ScrollBar/util.js +1 -12
  11. package/dist/components/SearchForm/CollapseToggle.d.ts +55 -0
  12. package/dist/components/SearchForm/CollapseToggle.js +47 -0
  13. package/dist/components/SearchForm/FormItemContainer.d.ts +75 -0
  14. package/dist/components/SearchForm/FormItemContainer.js +225 -0
  15. package/dist/components/SearchForm/FormItemWrapper.d.ts +82 -0
  16. package/dist/components/SearchForm/FormItemWrapper.js +62 -0
  17. package/dist/components/SearchForm/SearchForm.d.ts +130 -0
  18. package/dist/components/SearchForm/SearchForm.js +319 -0
  19. package/dist/components/SearchForm/index.d.ts +2 -0
  20. package/dist/components/SearchForm/index.js +2 -0
  21. package/dist/components/Toolbar/FullscreenIcon.d.ts +26 -0
  22. package/dist/components/Toolbar/FullscreenIcon.js +22 -0
  23. package/dist/components/Toolbar/ListToolBar.d.ts +111 -0
  24. package/dist/components/Toolbar/ListToolBar.js +101 -0
  25. package/dist/components/Toolbar/index.d.ts +103 -0
  26. package/dist/components/Toolbar/index.js +101 -0
  27. package/dist/components/Toolbar/style.d.ts +8 -0
  28. package/dist/components/{ListToolBar → Toolbar}/style.js +32 -27
  29. package/dist/context/TableContext.d.ts +15 -27
  30. package/dist/context/TableContext.js +3 -3
  31. package/dist/hooks/index.d.ts +16 -0
  32. package/dist/hooks/index.js +16 -0
  33. package/dist/hooks/useBreakpoints.d.ts +13 -0
  34. package/dist/hooks/useBreakpoints.js +57 -0
  35. package/dist/hooks/useCellRender.d.ts +13 -0
  36. package/dist/hooks/useCellRender.js +28 -0
  37. package/dist/hooks/useColumnResize.d.ts +30 -0
  38. package/dist/hooks/useColumnResize.js +110 -0
  39. package/dist/hooks/useColumns.d.ts +35 -24
  40. package/dist/hooks/useColumns.js +89 -56
  41. package/dist/hooks/useFetchData.d.ts +40 -65
  42. package/dist/hooks/useFetchData.js +157 -172
  43. package/dist/hooks/useFitPage.d.ts +19 -0
  44. package/dist/hooks/useFitPage.js +90 -0
  45. package/dist/hooks/useKeepAliveReload.d.ts +21 -0
  46. package/dist/hooks/useKeepAliveReload.js +24 -0
  47. package/dist/hooks/useLoading.d.ts +18 -7
  48. package/dist/hooks/useLoading.js +26 -8
  49. package/dist/hooks/usePagination.d.ts +10 -7
  50. package/dist/hooks/usePagination.js +37 -26
  51. package/dist/hooks/useRequestOptions.d.ts +18 -0
  52. package/dist/hooks/useRequestOptions.js +39 -0
  53. package/dist/hooks/useRowSelection.d.ts +27 -15
  54. package/dist/hooks/useRowSelection.js +92 -77
  55. package/dist/hooks/useTable.d.ts +19 -77
  56. package/dist/hooks/useTable.js +66 -54
  57. package/dist/hooks/useTableForm.d.ts +15 -83
  58. package/dist/hooks/useTableForm.js +93 -56
  59. package/dist/hooks/useTableScroll.d.ts +33 -31
  60. package/dist/hooks/useTableScroll.js +71 -26
  61. package/dist/hooks/useTableSize.d.ts +17 -7
  62. package/dist/hooks/useTableSize.js +20 -6
  63. package/dist/index.d.ts +10 -7
  64. package/dist/index.js +9 -3
  65. package/dist/interface.d.ts +492 -0
  66. package/dist/pro-table.esm.js +3483 -3913
  67. package/dist/pro-table.js +1 -1
  68. package/dist/style/fit-page.d.ts +4 -2
  69. package/dist/style/fit-page.js +9 -3
  70. package/dist/style/index.d.ts +4 -6
  71. package/dist/style/index.js +24 -74
  72. package/dist/style/list.d.ts +4 -2
  73. package/dist/style/list.js +1 -10
  74. package/dist/style/resizable.d.ts +8 -0
  75. package/dist/style/resizable.js +18 -0
  76. package/dist/style/scroll.d.ts +4 -2
  77. package/dist/style/scroll.js +8 -6
  78. package/dist/style/search.d.ts +8 -0
  79. package/dist/{components/Form/style.js → style/search.js} +22 -8
  80. package/dist/theme/augment.d.ts +8 -0
  81. package/dist/theme/interface/components.d.ts +8 -0
  82. package/dist/utils/dateFormat.d.ts +9 -0
  83. package/dist/utils/dateFormat.js +29 -0
  84. package/dist/utils/formConstants.d.ts +9 -0
  85. package/dist/utils/formConstants.js +29 -0
  86. package/dist/utils/valueFormat.d.ts +9 -0
  87. package/dist/utils/valueFormat.js +27 -0
  88. package/package.json +10 -9
  89. package/dist/components/Form/components/RequestSelect.d.ts +0 -50
  90. package/dist/components/Form/components/RequestSelect.js +0 -56
  91. package/dist/components/Form/hooks/useForm.d.ts +0 -11
  92. package/dist/components/Form/hooks/useForm.js +0 -30
  93. package/dist/components/Form/index.d.ts +0 -32
  94. package/dist/components/Form/index.js +0 -476
  95. package/dist/components/Form/style.d.ts +0 -6
  96. package/dist/components/Form/utils/config.d.ts +0 -9
  97. package/dist/components/Form/utils/config.js +0 -29
  98. package/dist/components/Form/utils/dateFormat.d.ts +0 -22
  99. package/dist/components/Form/utils/dateFormat.js +0 -43
  100. package/dist/components/ListToolBar/index.d.ts +0 -59
  101. package/dist/components/ListToolBar/index.js +0 -123
  102. package/dist/components/ListToolBar/style.d.ts +0 -6
  103. package/dist/components/ScrollBar/Bar/index.d.ts +0 -49
  104. package/dist/components/ScrollBar/Bar/index.js +0 -68
  105. package/dist/components/ScrollBar/Bar/props.d.ts +0 -25
  106. package/dist/components/ScrollBar/Bar/props.js +0 -17
  107. package/dist/components/ScrollBar/Thumb/index.d.ts +0 -40
  108. package/dist/components/ScrollBar/Thumb/props.d.ts +0 -20
  109. package/dist/components/ScrollBar/Thumb/props.js +0 -17
  110. package/dist/components/TableCell/index.d.ts +0 -37
  111. package/dist/components/TableCell/index.js +0 -69
  112. package/dist/components/ToolBar/FullscreenIcon.d.ts +0 -7
  113. package/dist/components/ToolBar/FullscreenIcon.js +0 -11
  114. package/dist/components/ToolBar/index.d.ts +0 -34
  115. package/dist/components/ToolBar/index.js +0 -97
  116. package/dist/hooks/tryOnActivated.d.ts +0 -6
  117. package/dist/hooks/tryOnActivated.js +0 -12
  118. package/dist/hooks/useDebounceFn.d.ts +0 -8
  119. package/dist/hooks/useDebounceFn.js +0 -31
  120. package/dist/hooks/useScrollArea.d.ts +0 -24
  121. package/dist/hooks/useScrollArea.js +0 -102
  122. package/dist/props.d.ts +0 -340
  123. package/dist/props.js +0 -247
  124. package/dist/types/ColumnTypings.d.ts +0 -130
  125. package/dist/types/SlotsTypings.d.ts +0 -63
  126. package/dist/types/SlotsTypings.js +0 -12
  127. package/dist/types/TableTypings.d.ts +0 -359
  128. package/dist/types/index.d.ts +0 -9
  129. package/dist/utils/utils.d.ts +0 -10
  130. package/dist/utils/utils.js +0 -89
  131. /package/dist/{types/ColumnTypings.js → interface.js} +0 -0
  132. /package/dist/{types/TableTypings.js → theme/augment.js} +0 -0
  133. /package/dist/{types/index.js → theme/interface/components.js} +0 -0
@@ -1,31 +0,0 @@
1
- import { computed, ref } from "vue";
2
- import { tryOnUnmounted } from "@gx-design-vue/pro-hooks";
3
- //#region src/hooks/useDebounceFn.ts
4
- function useDebounceFn(fn, wait) {
5
- const hookWait = computed(() => wait || 0);
6
- const timer = ref();
7
- const callback = ref(fn);
8
- function cancel() {
9
- if (timer.value) {
10
- clearTimeout(timer.value);
11
- timer.value = null;
12
- }
13
- }
14
- async function run(...args) {
15
- if (hookWait.value === 0 || hookWait.value === void 0) return callback.value(...args);
16
- cancel();
17
- return new Promise(async (resolve) => {
18
- if (args[0]?.immediate) resolve(await callback.value(...args));
19
- else timer.value = setTimeout(async () => {
20
- resolve(await callback.value(...args));
21
- }, hookWait.value);
22
- });
23
- }
24
- tryOnUnmounted(cancel);
25
- return {
26
- cancel,
27
- run
28
- };
29
- }
30
- //#endregion
31
- export { useDebounceFn as default };
@@ -1,24 +0,0 @@
1
- import { TableScroll } from "../types/TableTypings.js";
2
- import { ComputedRef, Ref } from "vue";
3
-
4
- //#region src/hooks/useScrollArea.d.ts
5
- declare function useScrollArea({
6
- fitPage,
7
- hashId,
8
- scroll,
9
- baseClassName
10
- }: {
11
- baseClassName: string;
12
- hashId: Ref<string>;
13
- scroll: ComputedRef<TableScroll>;
14
- fitPage: Ref<boolean | undefined>;
15
- }): {
16
- barRef: Ref<any, any>;
17
- tableCardEl: Ref<HTMLElement, HTMLElement>;
18
- tableScrollEl: Ref<HTMLElement, HTMLElement>;
19
- tableOverHidden: ComputedRef<boolean>;
20
- tableScrollYHeight: ComputedRef<number>;
21
- tableListToolsHeight: Ref<number, number>;
22
- };
23
- //#endregion
24
- export { useScrollArea };
@@ -1,102 +0,0 @@
1
- import { provideScrollBarContext } from "../components/ScrollBar/context.js";
2
- import { watchElementHeightByClass } from "../utils/utils.js";
3
- import { computed, nextTick, onDeactivated, onMounted, onUnmounted, onUpdated, ref, watch } from "vue";
4
- import { onMountedOrActivated } from "@gx-design-vue/pro-hooks";
5
- import { useElementSize, useResizeObserver, useScroll } from "@vueuse/core";
6
- //#region src/hooks/useScrollArea.ts
7
- function useScrollArea({ fitPage, hashId, scroll, baseClassName }) {
8
- const barRef = ref();
9
- const tableCardEl = ref();
10
- const tablePageEl = ref();
11
- const tableHeaderEl = ref();
12
- const tableScrollEl = ref();
13
- const tableScrollInnerEl = ref();
14
- const tableListToolsHeight = ref(0);
15
- let stopWatchPage;
16
- let stopWatchTableScroll;
17
- let stopWatchTableHeader;
18
- let stopWatchScrollInner;
19
- onMountedOrActivated(() => {
20
- stopWatchPage = watchElementHeightByClass(() => tableCardEl.value?.querySelector(`.ant-pagination`), (el) => {
21
- if (el) tablePageEl.value = el;
22
- });
23
- stopWatchTableHeader = watchElementHeightByClass(() => tableCardEl.value?.querySelector(`.ant-table-header`), (el) => {
24
- if (el) tableHeaderEl.value = el;
25
- });
26
- stopWatchScrollInner = watchElementHeightByClass(() => tableCardEl.value?.querySelector(`.ant-table-body>table`), (el) => {
27
- if (el) tableScrollInnerEl.value = el;
28
- });
29
- });
30
- watch(() => scroll.value, (state) => {
31
- stopWatchTableScroll && stopWatchTableScroll();
32
- if (state.y || fitPage.value) stopWatchTableScroll = watchElementHeightByClass(() => tableCardEl.value?.querySelector(`.ant-table-body`), (el) => {
33
- if (el) tableScrollEl.value = el;
34
- });
35
- else if (state.x) stopWatchTableScroll = watchElementHeightByClass(() => tableCardEl.value?.querySelector(`.ant-table-content`), (el) => {
36
- if (el) tableScrollEl.value = el;
37
- });
38
- }, { immediate: true });
39
- const { height: scrollHeight } = useElementSize(tableCardEl);
40
- const { height: tableHeaderHeight } = useElementSize(tableHeaderEl);
41
- const { height: tableBodyInnerHeight } = useElementSize(tableScrollInnerEl);
42
- const { height: tablePageHeight } = useElementSize(tablePageEl);
43
- const tableScrollYHeight = computed(() => {
44
- if (!tableCardEl.value || !fitPage.value) return 0;
45
- let tablePageMargin = 0;
46
- if (tablePageEl.value) {
47
- const style = getComputedStyle(tablePageEl.value);
48
- tablePageMargin = (Number.parseFloat(style.marginTop) || 0) + (Number.parseFloat(style.marginBottom) || 0);
49
- }
50
- return scrollHeight.value - tableHeaderHeight.value - tableListToolsHeight.value - (tablePageHeight.value + tablePageMargin);
51
- });
52
- const tableOverHidden = computed(() => {
53
- if (tableScrollYHeight.value && fitPage.value) return tableBodyInnerHeight.value <= tableScrollYHeight.value;
54
- return false;
55
- });
56
- watch([() => tableScrollEl.value, () => tableScrollYHeight.value], () => {
57
- if (tableScrollEl.value && fitPage.value) tableScrollEl.value.setAttribute("style", `height: ${tableScrollYHeight.value}px;`);
58
- });
59
- useScroll(tableScrollEl, { onScroll: () => {
60
- if (tableScrollEl.value) barRef.value?.handleScroll(tableScrollEl.value);
61
- } });
62
- const update = () => {
63
- barRef.value?.update();
64
- };
65
- useResizeObserver(tableScrollEl, update);
66
- onMounted(() => {
67
- nextTick(() => {
68
- update();
69
- });
70
- });
71
- onUpdated(() => update());
72
- function stopWatch() {
73
- stopWatchPage && stopWatchPage();
74
- stopWatchTableScroll && stopWatchTableScroll();
75
- stopWatchTableHeader && stopWatchTableHeader();
76
- stopWatchScrollInner && stopWatchScrollInner();
77
- }
78
- onUnmounted(() => {
79
- stopWatch();
80
- });
81
- onDeactivated(() => {
82
- stopWatch && stopWatch();
83
- });
84
- provideScrollBarContext({
85
- className: `${baseClassName}-scroll`,
86
- hashId,
87
- tableScrollYHeight,
88
- tableHeaderHeight,
89
- scrollbarElement: tableCardEl,
90
- wrapElement: tableScrollEl
91
- });
92
- return {
93
- barRef,
94
- tableCardEl,
95
- tableScrollEl,
96
- tableOverHidden,
97
- tableScrollYHeight,
98
- tableListToolsHeight
99
- };
100
- }
101
- //#endregion
102
- export { useScrollArea };
package/dist/props.d.ts DELETED
@@ -1,340 +0,0 @@
1
- import { ProTableProps, ProTableRowSelection, TableClassNamesType, TableStylesType } from "./types/TableTypings.js";
2
- import * as vue from "vue";
3
- import { CSSProperties, ExtractPropTypes, PropType } from "vue";
4
- import { SpinProps } from "ant-design-vue";
5
- import { TableProps } from "ant-design-vue/es/table";
6
- import * as ant_design_vue_es_vc_table_interface0 from "ant-design-vue/es/vc-table/interface";
7
- import { TableProps as TableProps$1 } from "ant-design-vue/es/vc-table/Table";
8
-
9
- //#region src/props.d.ts
10
- declare const omitProps: (keyof TableProps)[];
11
- type AntTableProps = Omit<TableProps, typeof omitProps[number]>;
12
- declare const tableProps: {
13
- direction: {
14
- type: PropType<"rtl" | "ltr">;
15
- default: string;
16
- };
17
- /**
18
- * @Author gx12358
19
- * @DateTime 2022/2/8
20
- * @lastTime 2022/2/8
21
- * @description 是否展示外边框和列边框
22
- */
23
- bordered: {
24
- type: PropType<TableProps["bordered"]>;
25
- default: any;
26
- };
27
- loading: {
28
- type: PropType<boolean | SpinProps>;
29
- default: any;
30
- };
31
- scroll: {
32
- type: PropType<TableProps$1["scroll"] & {
33
- scrollToFirstRowOnChange?: boolean;
34
- }>;
35
- default: any;
36
- };
37
- 'onUpdate:expandedRowKeys': {
38
- type: vue.PropType<(expandedKeys: ant_design_vue_es_vc_table_interface0.Key[]) => void>;
39
- default: (expandedKeys: ant_design_vue_es_vc_table_interface0.Key[]) => void;
40
- };
41
- };
42
- declare const proTableProps: {
43
- id: {
44
- type: PropType<string>;
45
- default: string;
46
- };
47
- class: {
48
- type: PropType<string>;
49
- default: string;
50
- };
51
- style: {
52
- type: PropType<CSSProperties>;
53
- default: () => {};
54
- };
55
- classNames: {
56
- type: PropType<TableClassNamesType>;
57
- default: () => {};
58
- };
59
- styles: {
60
- type: PropType<TableStylesType>;
61
- default: () => {};
62
- };
63
- fitPage: {
64
- type: PropType<ProTableProps["fitPage"]>;
65
- default: boolean;
66
- };
67
- rowSelection: {
68
- type: PropType<ProTableRowSelection>;
69
- default: any;
70
- };
71
- columns: {
72
- type: PropType<ProTableProps["columns"]>;
73
- default: () => any[];
74
- };
75
- pagination: {
76
- type: PropType<ProTableProps["pagination"]>;
77
- default: () => any;
78
- };
79
- rowKey: {
80
- type: PropType<string>;
81
- default: string;
82
- };
83
- /**
84
- * @Author gx12358
85
- * @DateTime 2022/2/8
86
- * @lastTime 2022/2/8
87
- * @description 获取 dataSource 的方法
88
- */
89
- request: {
90
- type: PropType<ProTableProps["request"]>;
91
- default: any;
92
- };
93
- /**
94
- * @Author gx12358
95
- * @DateTime 2025/12/11
96
- * @lastTime 2025/12/11
97
- * @description 关闭参数变化后自动请求
98
- */
99
- autoRequest: {
100
- type: PropType<ProTableProps["autoRequest"]>;
101
- default: boolean;
102
- };
103
- virtualScroll: PropType<ProTableProps["virtualScroll"]>;
104
- params: {
105
- type: PropType<ProTableProps["params"]>;
106
- default: () => {};
107
- };
108
- waitRequest: {
109
- type: PropType<ProTableProps["waitRequest"]>;
110
- default: boolean;
111
- };
112
- title: PropType<ProTableProps["title"]>;
113
- footer: PropType<ProTableProps["footer"]>;
114
- transformCellText: PropType<ProTableProps["transformCellText"]>;
115
- rowExpandable: PropType<ProTableProps["rowExpandable"]>;
116
- rowClassName: PropType<ProTableProps["rowClassName"]>;
117
- expandIcon: PropType<ProTableProps["expandIcon"]>;
118
- expandedRowKeys: PropType<ProTableProps["expandedRowKeys"]>;
119
- defaultExpandedRowKeys: PropType<ProTableProps["defaultExpandedRowKeys"]>;
120
- expandedRowRender: PropType<ProTableProps["expandedRowRender"]>;
121
- customRow: PropType<ProTableProps["customRow"]>;
122
- customHeaderRow: PropType<ProTableProps["customHeaderRow"]>;
123
- polling: PropType<ProTableProps["polling"]>;
124
- debounceTime: {
125
- type: PropType<ProTableProps["debounceTime"]>;
126
- default: number;
127
- };
128
- /**
129
- * @Author gx12358
130
- * @DateTime 2022/2/8
131
- * @lastTime 2022/2/8
132
- * @description 是否显示搜索表单,传入对象时为搜索表单的配置
133
- */
134
- form: {
135
- type: PropType<ProTableProps["form"]>;
136
- default: () => any;
137
- };
138
- searchMap: {
139
- type: PropType<ProTableProps["searchMap"]>;
140
- default: () => any[];
141
- };
142
- /**
143
- * @Author gx12358
144
- * @DateTime 2022/2/8
145
- * @lastTime 2022/2/8
146
- * @description 自定义表格渲染模式:默认表格展示,也可以自定义数据列表展示
147
- */
148
- customRender: {
149
- type: PropType<ProTableProps["customRender"]>;
150
- default: () => any;
151
- };
152
- emptyText: {
153
- type: PropType<ProTableProps["emptyText"]>;
154
- default: () => any;
155
- };
156
- showLoading: {
157
- type: PropType<ProTableProps["showLoading"]>;
158
- default: boolean;
159
- };
160
- emptyTextProps: {
161
- type: PropType<ProTableProps["emptyTextProps"]>;
162
- default: () => ProTableProps["emptyTextProps"];
163
- };
164
- actionProps: {
165
- type: PropType<ProTableProps["actionProps"]>;
166
- default: () => {
167
- placement: string;
168
- };
169
- }; /** @name listToolAfter 表格工具栏下方的内容 */
170
- listToolAfter: {
171
- type: PropType<ProTableProps["listToolAfter"]>;
172
- default: () => any;
173
- }; /** @name headerTitle 表格标题,可自定义 */
174
- headerTitle: {
175
- type: PropType<ProTableProps["headerTitle"]>;
176
- default: () => any;
177
- }; /** @name headerTitleTip 标题提示的Icon,可自定义 */
178
- headerTitleTip: {
179
- type: PropType<ProTableProps["headerTitleTip"]>;
180
- default: () => any;
181
- }; /** @name titleTipText 标题提示词 */
182
- titleTipText: {
183
- type: PropType<ProTableProps["titleTipText"]>;
184
- }; /** @name options table 工具栏(reload:重新请求按钮;fullScreen:全屏按钮),设为 false 时不显示 */
185
- options: {
186
- type: PropType<ProTableProps["options"]>;
187
- default: boolean;
188
- }; /** @name keepAliveReload 针对 keepalive 缓存的页面,重新进入是否请求 */
189
- keepAliveReload: {
190
- type: PropType<ProTableProps["keepAliveReload"]>;
191
- default: boolean;
192
- };
193
- /**
194
- * @Author gx12358
195
- * @DateTime 2022/2/8
196
- * @lastTime 2022/2/8
197
- * @description 是否展示序号栏
198
- */
199
- showIndex: {
200
- type: PropType<ProTableProps["showIndex"]>;
201
- default: boolean;
202
- };
203
- /**
204
- * @Author gx12358
205
- * @DateTime 2024/11/15
206
- * @lastTime 2024/11/15
207
- * @description 是否已card分割
208
- */
209
- cardBordered: {
210
- type: PropType<ProTableProps["showIndex"]>;
211
- default: boolean;
212
- };
213
- /**
214
- * @Author gx12358
215
- * @DateTime 2022/2/8
216
- * @lastTime 2022/2/8
217
- * @description 翻页item设置
218
- */
219
- pageItemRender: {
220
- type: PropType<ProTableProps["pageItemRender"]>;
221
- default: () => any;
222
- };
223
- /**
224
- * @Author gx12358
225
- * @DateTime 2022/2/8
226
- * @lastTime 2022/2/8
227
- * @description 表格大小
228
- */
229
- size: {
230
- type: PropType<ProTableProps["size"]>;
231
- default: string;
232
- };
233
- /**
234
- * @Author gx12358
235
- * @DateTime 2022/2/8
236
- * @lastTime 2022/2/8
237
- * @description 表格全局对齐方式
238
- */
239
- align: {
240
- type: PropType<ProTableProps["align"]>;
241
- default: string;
242
- };
243
- /**
244
- * @Author gx12358
245
- * @DateTime 2022/2/8
246
- * @lastTime 2022/2/8
247
- * @description 是否列拖动
248
- */
249
- draggable: PropType<ProTableProps["draggable"]>;
250
- /**
251
- * @Author gx12358
252
- * @DateTime 2022/2/8
253
- * @lastTime 2022/2/8
254
- * @description 根据屏幕大小或者scrollBreakpoint或者scroll?.x是否存在判断action列是否固定
255
- */
256
- autoScroll: {
257
- type: PropType<ProTableProps["autoScroll"]>;
258
- default: boolean;
259
- };
260
- /**
261
- * @Author gx12358
262
- * @DateTime 2022/2/8
263
- * @lastTime 2022/2/8
264
- * @description 滚动断点支持数字(屏幕宽度);也支持md、xl,xxl等
265
- */
266
- scrollBreakpoint: PropType<ProTableProps["scrollBreakpoint"]>;
267
- /**
268
- * @Author gx12358
269
- * @DateTime 2022/2/8
270
- * @lastTime 2022/2/8
271
- * @description modalTable时,自动固定滚动高度
272
- */
273
- modalScroll: PropType<ProTableProps["modalScroll"]>;
274
- /**
275
- * @Author gx12358
276
- * @DateTime 2022/2/8
277
- * @lastTime 2022/2/8
278
- * @description 从不滚动
279
- */
280
- neverScroll: PropType<ProTableProps["neverScroll"]>;
281
- /**
282
- * @Author gx12358
283
- * @DateTime 2022/2/8
284
- * @lastTime 2022/2/8
285
- * @description 表格数据为空值时的显示默认值
286
- */
287
- columnEmptyText: {
288
- type: PropType<ProTableProps["columnEmptyText"]>;
289
- default: any;
290
- };
291
- /**
292
- * @Author gx12358
293
- * @DateTime 2022/2/8
294
- * @lastTime 2022/2/8
295
- * @description Pro-Table 的方法
296
- */
297
- postData: PropType<ProTableProps["postData"]>;
298
- onReset: PropType<ProTableProps["onReset"]>;
299
- onReload: PropType<ProTableProps["onReload"]>;
300
- onSubmit: PropType<ProTableProps["onSubmit"]>;
301
- onChange: PropType<ProTableProps["onChange"]>;
302
- onSizeChange: PropType<ProTableProps["onSizeChange"]>;
303
- onLoadingChange: PropType<ProTableProps["onLoadingChange"]>;
304
- onRequestError: PropType<ProTableProps["onRequestError"]>;
305
- onBeforeSearchSubmit: PropType<ProTableProps["onBeforeSearchSubmit"]>;
306
- onExpand: PropType<ProTableProps["onExpand"]>;
307
- onResizeColumn: PropType<ProTableProps["onResizeColumn"]>;
308
- onExpandedRowsChange: PropType<ProTableProps["onExpandedRowsChange"]>;
309
- direction: {
310
- type: PropType<"rtl" | "ltr">;
311
- default: string;
312
- };
313
- /**
314
- * @Author gx12358
315
- * @DateTime 2022/2/8
316
- * @lastTime 2022/2/8
317
- * @description 是否展示外边框和列边框
318
- */
319
- bordered: {
320
- type: PropType<TableProps["bordered"]>;
321
- default: any;
322
- };
323
- loading: {
324
- type: PropType<boolean | SpinProps>;
325
- default: any;
326
- };
327
- scroll: {
328
- type: PropType<TableProps$1["scroll"] & {
329
- scrollToFirstRowOnChange?: boolean;
330
- }>;
331
- default: any;
332
- };
333
- 'onUpdate:expandedRowKeys': {
334
- type: vue.PropType<(expandedKeys: ant_design_vue_es_vc_table_interface0.Key[]) => void>;
335
- default: (expandedKeys: ant_design_vue_es_vc_table_interface0.Key[]) => void;
336
- };
337
- };
338
- type BaseTableProps = Partial<ExtractPropTypes<typeof proTableProps>>;
339
- //#endregion
340
- export { AntTableProps, BaseTableProps, proTableProps, tableProps };