ele-admin-plus 1.1.3 → 1.1.4-beta.2

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 (284) hide show
  1. package/es/ele-alert/index.d.ts +10 -10
  2. package/es/ele-alert/props.d.ts +6 -6
  3. package/es/ele-app/style/message.scss +1 -0
  4. package/es/ele-app/style/overwrite.scss +84 -3
  5. package/es/ele-app/types/index.d.ts +7 -6
  6. package/es/ele-avatar-group/index.d.ts +7 -8
  7. package/es/ele-avatar-group/props.d.ts +3 -4
  8. package/es/ele-basic-select/style/index.scss +4 -6
  9. package/es/ele-bottom-bar/index.d.ts +4 -4
  10. package/es/ele-bottom-bar/props.d.ts +2 -3
  11. package/es/ele-card/index.d.ts +6 -6
  12. package/es/ele-card/props.d.ts +3 -4
  13. package/es/ele-check-card/components/card-item.d.ts +2 -3
  14. package/es/ele-check-card/index.d.ts +4 -4
  15. package/es/ele-check-card/props.d.ts +3 -3
  16. package/es/ele-config-provider/receiver.d.ts +1 -1
  17. package/es/ele-config-provider/receiver.js +29 -29
  18. package/es/ele-copyable/index.d.ts +8 -8
  19. package/es/ele-copyable/index.js +5 -4
  20. package/es/ele-copyable/props.d.ts +5 -5
  21. package/es/ele-copyable/style/index.scss +4 -0
  22. package/es/ele-count-up/index.d.ts +2 -2
  23. package/es/ele-count-up/index.js +2 -1
  24. package/es/ele-count-up/props.d.ts +1 -1
  25. package/es/ele-cropper/index.js +2 -2
  26. package/es/ele-dashboard/index.d.ts +1 -2
  27. package/es/ele-drawer/index.d.ts +16 -10
  28. package/es/ele-drawer/props.d.ts +7 -6
  29. package/es/ele-dropdown/index.d.ts +2 -2
  30. package/es/ele-dropdown/props.d.ts +1 -2
  31. package/es/ele-edit-tag/index.d.ts +4 -4
  32. package/es/ele-edit-tag/props.d.ts +2 -3
  33. package/es/ele-ellipsis/index.d.ts +4 -5
  34. package/es/ele-ellipsis/props.d.ts +1 -1
  35. package/es/ele-ellipsis/style/index.scss +4 -0
  36. package/es/ele-file-list/index.d.ts +2 -7
  37. package/es/ele-file-list/index.js +2 -2
  38. package/es/ele-file-list/types/index.d.ts +0 -4
  39. package/es/ele-icon-select/components/icon-grid.d.ts +5 -5
  40. package/es/ele-icon-select/components/icon-popper.d.ts +15 -15
  41. package/es/ele-icon-select/index.d.ts +15 -16
  42. package/es/ele-icon-select/props.d.ts +8 -8
  43. package/es/ele-loading/index.d.ts +26 -1
  44. package/es/ele-loading/index.js +53 -11
  45. package/es/ele-loading/props.d.ts +11 -1
  46. package/es/ele-loading/props.js +16 -1
  47. package/es/ele-loading/style/css-var.scss +7 -0
  48. package/es/ele-loading/style/index.js +1 -0
  49. package/es/ele-loading/style/index.scss +90 -0
  50. package/es/ele-loading/types/index.d.ts +17 -0
  51. package/es/ele-map-picker/components/map-view.d.ts +2 -2
  52. package/es/ele-map-picker/index.d.ts +2 -2
  53. package/es/ele-map-picker/props.d.ts +3 -3
  54. package/es/ele-menus/index.d.ts +2 -0
  55. package/es/ele-menus/index.js +11 -5
  56. package/es/ele-menus/props.d.ts +10 -0
  57. package/es/ele-menus/props.js +7 -1
  58. package/es/ele-menus/style/index.scss +18 -18
  59. package/es/ele-menus/types/index.d.ts +4 -0
  60. package/es/ele-menus/util.d.ts +4 -3
  61. package/es/ele-menus/util.js +23 -12
  62. package/es/ele-modal/index.d.ts +19 -13
  63. package/es/ele-modal/props.d.ts +8 -7
  64. package/es/ele-modal/types/index.d.ts +9 -0
  65. package/es/ele-modal/util.js +45 -32
  66. package/es/ele-pagination/index.d.ts +1 -1
  67. package/es/ele-popconfirm/index.d.ts +10 -10
  68. package/es/ele-popconfirm/index.js +8 -2
  69. package/es/ele-popconfirm/props.d.ts +6 -6
  70. package/es/ele-popover/index.d.ts +6 -6
  71. package/es/ele-popover/props.d.ts +3 -4
  72. package/es/ele-printer/index.d.ts +7 -6
  73. package/es/ele-printer/index.js +11 -4
  74. package/es/ele-printer/props.d.ts +3 -4
  75. package/es/ele-pro-layout/components/pro-header.d.ts +7 -2
  76. package/es/ele-pro-layout/components/pro-header.js +15 -5
  77. package/es/ele-pro-layout/components/pro-iframe.js +10 -7
  78. package/es/ele-pro-layout/components/pro-sidebar.d.ts +7 -2
  79. package/es/ele-pro-layout/components/pro-sidebar.js +14 -5
  80. package/es/ele-pro-layout/components/pro-sidebox.d.ts +11 -4
  81. package/es/ele-pro-layout/components/pro-sidebox.js +16 -5
  82. package/es/ele-pro-layout/components/tab-dropdown.js +1 -4
  83. package/es/ele-pro-layout/index.d.ts +17 -3
  84. package/es/ele-pro-layout/index.js +208 -105
  85. package/es/ele-pro-layout/props.d.ts +6 -1
  86. package/es/ele-pro-layout/props.js +10 -0
  87. package/es/ele-pro-layout/style/collapse.scss +9 -10
  88. package/es/ele-pro-layout/style/index.js +0 -1
  89. package/es/ele-pro-layout/style/layout-mobile.scss +1 -0
  90. package/es/ele-pro-layout/types/index.d.ts +9 -0
  91. package/es/ele-pro-layout/util.d.ts +4 -2
  92. package/es/ele-pro-layout/util.js +20 -17
  93. package/es/ele-pro-table/components/table-view.d.ts +9 -3
  94. package/es/ele-pro-table/components/table-view.js +27 -24
  95. package/es/ele-pro-table/components/tool-column.d.ts +2 -1
  96. package/es/ele-pro-table/components/tool-column.js +26 -18
  97. package/es/ele-pro-table/index.d.ts +46 -25
  98. package/es/ele-pro-table/index.js +182 -196
  99. package/es/ele-pro-table/props.d.ts +27 -15
  100. package/es/ele-pro-table/props.js +15 -3
  101. package/es/ele-pro-table/style/index.js +1 -1
  102. package/es/ele-pro-table/style/index.scss +64 -8
  103. package/es/ele-pro-table/types/index.d.ts +39 -5
  104. package/es/ele-pro-table/util.d.ts +84 -49
  105. package/es/ele-pro-table/util.js +193 -78
  106. package/es/ele-qr-code/index.d.ts +3 -3
  107. package/es/ele-qr-code/props.d.ts +1 -2
  108. package/es/ele-qr-code-svg/index.d.ts +3 -3
  109. package/es/ele-split-panel/index.d.ts +6 -6
  110. package/es/ele-split-panel/props.d.ts +3 -4
  111. package/es/ele-table/style/index.scss +1 -0
  112. package/es/ele-tabs/index.js +4 -3
  113. package/es/ele-tabs/types/index.d.ts +3 -0
  114. package/es/ele-text/index.d.ts +3 -3
  115. package/es/ele-text/props.d.ts +2 -2
  116. package/es/ele-toolbar/index.d.ts +6 -6
  117. package/es/ele-toolbar/props.d.ts +3 -4
  118. package/es/ele-tooltip/index.d.ts +3 -3
  119. package/es/ele-tooltip/props.d.ts +1 -2
  120. package/es/ele-tour/index.d.ts +2 -3
  121. package/es/ele-tour/style/index.scss +1 -1
  122. package/es/ele-tour/util.js +3 -3
  123. package/es/ele-upload-list/index.d.ts +8 -7
  124. package/es/ele-upload-list/index.js +18 -11
  125. package/es/ele-upload-list/props.d.ts +4 -4
  126. package/es/ele-upload-list/props.js +1 -1
  127. package/es/ele-watermark/index.d.ts +16 -8
  128. package/es/ele-watermark/index.js +18 -12
  129. package/es/ele-watermark/props.d.ts +3 -1
  130. package/es/ele-watermark/props.js +5 -1
  131. package/es/ele-watermark/util.js +1 -1
  132. package/es/ele-xg-player/index.js +1 -0
  133. package/es/style/index.scss +1 -0
  134. package/es/style/nprogress.scss +2 -2
  135. package/es/style/themes/default.scss +36 -12
  136. package/es/style/themes/rounded.scss +4 -2
  137. package/es/style/themes/theme-util.scss +2 -0
  138. package/es/utils/core.d.ts +1 -1
  139. package/es/utils/core.js +17 -15
  140. package/es/utils/resolvers.js +2 -2
  141. package/lib/ele-alert/index.d.ts +10 -10
  142. package/lib/ele-alert/props.d.ts +6 -6
  143. package/lib/ele-app/style/message.scss +1 -0
  144. package/lib/ele-app/style/overwrite.scss +84 -3
  145. package/lib/ele-app/types/index.d.ts +7 -6
  146. package/lib/ele-avatar-group/index.d.ts +7 -8
  147. package/lib/ele-avatar-group/props.d.ts +3 -4
  148. package/lib/ele-basic-select/style/index.scss +4 -6
  149. package/lib/ele-bottom-bar/index.d.ts +4 -4
  150. package/lib/ele-bottom-bar/props.d.ts +2 -3
  151. package/lib/ele-card/index.d.ts +6 -6
  152. package/lib/ele-card/props.d.ts +3 -4
  153. package/lib/ele-check-card/components/card-item.d.ts +2 -3
  154. package/lib/ele-check-card/index.d.ts +4 -4
  155. package/lib/ele-check-card/props.d.ts +3 -3
  156. package/lib/ele-config-provider/receiver.d.ts +1 -1
  157. package/lib/ele-config-provider/receiver.js +2 -2
  158. package/lib/ele-copyable/index.d.ts +8 -8
  159. package/lib/ele-copyable/index.js +4 -3
  160. package/lib/ele-copyable/props.d.ts +5 -5
  161. package/lib/ele-copyable/style/index.scss +4 -0
  162. package/lib/ele-count-up/index.d.ts +2 -2
  163. package/lib/ele-count-up/index.js +2 -1
  164. package/lib/ele-count-up/props.d.ts +1 -1
  165. package/lib/ele-cropper/index.js +2 -2
  166. package/lib/ele-dashboard/index.d.ts +1 -2
  167. package/lib/ele-drawer/index.d.ts +16 -10
  168. package/lib/ele-drawer/props.d.ts +7 -6
  169. package/lib/ele-dropdown/index.d.ts +2 -2
  170. package/lib/ele-dropdown/props.d.ts +1 -2
  171. package/lib/ele-edit-tag/index.d.ts +4 -4
  172. package/lib/ele-edit-tag/props.d.ts +2 -3
  173. package/lib/ele-ellipsis/index.d.ts +4 -5
  174. package/lib/ele-ellipsis/props.d.ts +1 -1
  175. package/lib/ele-ellipsis/style/index.scss +4 -0
  176. package/lib/ele-file-list/index.d.ts +2 -7
  177. package/lib/ele-file-list/index.js +2 -2
  178. package/lib/ele-file-list/types/index.d.ts +0 -4
  179. package/lib/ele-icon-select/components/icon-grid.d.ts +5 -5
  180. package/lib/ele-icon-select/components/icon-popper.d.ts +15 -15
  181. package/lib/ele-icon-select/index.d.ts +15 -16
  182. package/lib/ele-icon-select/props.d.ts +8 -8
  183. package/lib/ele-loading/index.d.ts +26 -1
  184. package/lib/ele-loading/index.js +52 -10
  185. package/lib/ele-loading/props.d.ts +11 -1
  186. package/lib/ele-loading/props.js +16 -1
  187. package/lib/ele-loading/style/css-var.scss +7 -0
  188. package/lib/ele-loading/style/index.js +1 -0
  189. package/lib/ele-loading/style/index.scss +90 -0
  190. package/lib/ele-loading/types/index.d.ts +17 -0
  191. package/lib/ele-map-picker/components/map-view.d.ts +2 -2
  192. package/lib/ele-map-picker/index.d.ts +2 -2
  193. package/lib/ele-map-picker/props.d.ts +3 -3
  194. package/lib/ele-menus/index.d.ts +2 -0
  195. package/lib/ele-menus/index.js +9 -3
  196. package/lib/ele-menus/props.d.ts +10 -0
  197. package/lib/ele-menus/props.js +6 -0
  198. package/lib/ele-menus/style/index.scss +18 -18
  199. package/lib/ele-menus/types/index.d.ts +4 -0
  200. package/lib/ele-menus/util.d.ts +4 -3
  201. package/lib/ele-menus/util.js +23 -12
  202. package/lib/ele-modal/index.d.ts +19 -13
  203. package/lib/ele-modal/props.d.ts +8 -7
  204. package/lib/ele-modal/types/index.d.ts +9 -0
  205. package/lib/ele-modal/util.js +45 -32
  206. package/lib/ele-pagination/index.d.ts +1 -1
  207. package/lib/ele-popconfirm/index.d.ts +10 -10
  208. package/lib/ele-popconfirm/index.js +8 -2
  209. package/lib/ele-popconfirm/props.d.ts +6 -6
  210. package/lib/ele-popover/index.d.ts +6 -6
  211. package/lib/ele-popover/props.d.ts +3 -4
  212. package/lib/ele-printer/index.d.ts +7 -6
  213. package/lib/ele-printer/index.js +10 -3
  214. package/lib/ele-printer/props.d.ts +3 -4
  215. package/lib/ele-pro-layout/components/pro-header.d.ts +7 -2
  216. package/lib/ele-pro-layout/components/pro-header.js +15 -5
  217. package/lib/ele-pro-layout/components/pro-iframe.js +10 -7
  218. package/lib/ele-pro-layout/components/pro-sidebar.d.ts +7 -2
  219. package/lib/ele-pro-layout/components/pro-sidebar.js +14 -5
  220. package/lib/ele-pro-layout/components/pro-sidebox.d.ts +11 -4
  221. package/lib/ele-pro-layout/components/pro-sidebox.js +16 -5
  222. package/lib/ele-pro-layout/components/tab-dropdown.js +1 -4
  223. package/lib/ele-pro-layout/index.d.ts +17 -3
  224. package/lib/ele-pro-layout/index.js +205 -102
  225. package/lib/ele-pro-layout/props.d.ts +6 -1
  226. package/lib/ele-pro-layout/props.js +10 -0
  227. package/lib/ele-pro-layout/style/collapse.scss +9 -10
  228. package/lib/ele-pro-layout/style/index.js +0 -1
  229. package/lib/ele-pro-layout/style/layout-mobile.scss +1 -0
  230. package/lib/ele-pro-layout/types/index.d.ts +9 -0
  231. package/lib/ele-pro-layout/util.d.ts +4 -2
  232. package/lib/ele-pro-layout/util.js +19 -16
  233. package/lib/ele-pro-table/components/table-view.d.ts +9 -3
  234. package/lib/ele-pro-table/components/table-view.js +25 -22
  235. package/lib/ele-pro-table/components/tool-column.d.ts +2 -1
  236. package/lib/ele-pro-table/components/tool-column.js +25 -17
  237. package/lib/ele-pro-table/index.d.ts +46 -25
  238. package/lib/ele-pro-table/index.js +180 -194
  239. package/lib/ele-pro-table/props.d.ts +27 -15
  240. package/lib/ele-pro-table/props.js +15 -3
  241. package/lib/ele-pro-table/style/index.js +1 -1
  242. package/lib/ele-pro-table/style/index.scss +64 -8
  243. package/lib/ele-pro-table/types/index.d.ts +39 -5
  244. package/lib/ele-pro-table/util.d.ts +84 -49
  245. package/lib/ele-pro-table/util.js +192 -77
  246. package/lib/ele-qr-code/index.d.ts +3 -3
  247. package/lib/ele-qr-code/props.d.ts +1 -2
  248. package/lib/ele-qr-code-svg/index.d.ts +3 -3
  249. package/lib/ele-split-panel/index.d.ts +6 -6
  250. package/lib/ele-split-panel/props.d.ts +3 -4
  251. package/lib/ele-table/style/index.scss +1 -0
  252. package/lib/ele-tabs/index.js +4 -3
  253. package/lib/ele-tabs/types/index.d.ts +3 -0
  254. package/lib/ele-text/index.d.ts +3 -3
  255. package/lib/ele-text/props.d.ts +2 -2
  256. package/lib/ele-toolbar/index.d.ts +6 -6
  257. package/lib/ele-toolbar/props.d.ts +3 -4
  258. package/lib/ele-tooltip/index.d.ts +3 -3
  259. package/lib/ele-tooltip/props.d.ts +1 -2
  260. package/lib/ele-tour/index.d.ts +2 -3
  261. package/lib/ele-tour/style/index.scss +1 -1
  262. package/lib/ele-tour/util.js +3 -3
  263. package/lib/ele-upload-list/index.d.ts +8 -7
  264. package/lib/ele-upload-list/index.js +17 -10
  265. package/lib/ele-upload-list/props.d.ts +4 -4
  266. package/lib/ele-upload-list/props.js +1 -1
  267. package/lib/ele-watermark/index.d.ts +16 -8
  268. package/lib/ele-watermark/index.js +17 -11
  269. package/lib/ele-watermark/props.d.ts +3 -1
  270. package/lib/ele-watermark/props.js +5 -1
  271. package/lib/ele-watermark/util.js +1 -1
  272. package/lib/ele-xg-player/index.js +1 -0
  273. package/lib/style/index.scss +1 -0
  274. package/lib/style/nprogress.scss +2 -2
  275. package/lib/style/themes/default.scss +36 -12
  276. package/lib/style/themes/rounded.scss +4 -2
  277. package/lib/style/themes/theme-util.scss +2 -0
  278. package/lib/utils/core.d.ts +1 -1
  279. package/lib/utils/core.js +17 -15
  280. package/lib/utils/resolvers.js +2 -2
  281. package/package.json +25 -23
  282. package/typings/global.d.ts +52 -52
  283. package/es/ele-alert/types/index.d.ts +0 -0
  284. package/lib/ele-alert/types/index.d.ts +0 -0
@@ -4,6 +4,7 @@ const elementPlus = require("element-plus");
4
4
  const core = require("../utils/core");
5
5
  const receiver = require("../ele-config-provider/receiver");
6
6
  const ElePagination = require("../ele-pagination/index");
7
+ const EleLoading = require("../ele-loading/index");
7
8
  const EleToolbar = require("../ele-toolbar/index");
8
9
  const TableTools = require("./components/table-tools");
9
10
  const TableView = require("./components/table-view");
@@ -11,18 +12,26 @@ const util = require("./util");
11
12
  const props = require("./props");
12
13
  const _sfc_main = vue.defineComponent({
13
14
  name: "EleProTable",
14
- components: { ElEmpty: elementPlus.ElEmpty, ElePagination, EleToolbar, TableTools, TableView },
15
+ components: {
16
+ ElEmpty: elementPlus.ElEmpty,
17
+ ElePagination,
18
+ EleLoading,
19
+ EleToolbar,
20
+ TableTools,
21
+ TableView
22
+ },
15
23
  props: props.proTableProps,
16
24
  emits: props.proTableEmits,
17
25
  setup(props$1, { emit }) {
18
26
  const { authenticated } = receiver.useLicense();
19
27
  const globalProps = receiver.useGlobalProps("table");
20
- const tableIns = util.useTableMethods(() => {
21
- var _a;
22
- return (_a = tableViewRef.value) == null ? void 0 : _a.tableRef;
23
- });
28
+ const tableIns = util.useTableMethods(() => getTableRef());
24
29
  const tableEvents = util.useTableEvents(emit);
25
- const current = { sorter: null, filter: null, where: {} };
30
+ const current = {
31
+ sorter: props$1.defaultSort ?? {},
32
+ filter: util.getDefaultFilter(props$1.columns),
33
+ where: props$1.where ?? {}
34
+ };
26
35
  const tableViewRef = vue.ref(null);
27
36
  const tableData = vue.ref([]);
28
37
  const tablePage = vue.ref(
@@ -65,20 +74,19 @@ const _sfc_main = vue.defineComponent({
65
74
  border: props$1.border ?? globalProps.value.border ?? false,
66
75
  size: tableSize.value,
67
76
  load: tableLoad,
77
+ emptyText: errorText.value || props$1.emptyText,
68
78
  columns: tableCols.value,
69
79
  pageIndex: tableIndex.value,
70
- loading: tableLoading.value,
71
80
  headerEllipsis: props$1.headerEllipsis,
72
- emptyText: errorText.value || props$1.emptyText
81
+ slotNormalize: props$1.slotNormalize
73
82
  };
74
83
  return Object.assign(core.pick(props$1, props.tablePropKeys), opt);
75
84
  });
76
- const proTableStyle = vue.computed(() => {
85
+ const tableZIndex = vue.computed(() => {
77
86
  if (!tableMaximized.value) {
78
- return {};
87
+ return;
79
88
  }
80
- const zIndex = props$1.maximizedIndex ?? globalProps.value.maximizedIndex;
81
- return { zIndex };
89
+ return props$1.maximizedIndex ?? globalProps.value.maximizedIndex;
82
90
  });
83
91
  const tableTools = vue.computed(() => {
84
92
  const tools = props$1.tools ?? globalProps.value.tools ?? true;
@@ -93,6 +101,20 @@ const _sfc_main = vue.defineComponent({
93
101
  globalProps.value.emptyProps
94
102
  );
95
103
  });
104
+ const rootProps = vue.computed(() => {
105
+ const opt = {
106
+ ...props$1.loadingProps || {},
107
+ loading: tableLoading.value,
108
+ class: [
109
+ "ele-pro-table",
110
+ { "is-sticky": props$1.sticky },
111
+ { "is-maximized": tableMaximized.value },
112
+ { "hide-bottom-line": !props$1.bottomLine }
113
+ ],
114
+ style: { zIndex: tableZIndex.value }
115
+ };
116
+ return opt;
117
+ });
96
118
  const reload = (option, parent, resolve) => {
97
119
  if (!authenticated.value) {
98
120
  return;
@@ -115,17 +137,22 @@ const _sfc_main = vue.defineComponent({
115
137
  }
116
138
  }
117
139
  errorText.value = "";
118
- const sorter = current.sorter ?? getDefaultSorter();
140
+ const sorter = current.sorter;
119
141
  if (typeof props$1.datasource === "function") {
120
142
  if (!parent) {
121
143
  tableLoading.value = true;
122
144
  }
123
- const filter = current.filter ?? getDefaultFilter();
145
+ const filter = current.filter;
146
+ const orders = util.getRequestOrders(
147
+ sorter,
148
+ props$1.request,
149
+ globalProps.value.request
150
+ );
124
151
  props$1.datasource({
125
152
  page: tablePage.value,
126
153
  limit: tableLimit.value,
127
- where: { ...current.where },
128
- orders: getRequestOrders(sorter),
154
+ where: Object.assign({}, current.where),
155
+ orders,
129
156
  filters: util.getRequestFilters(filter),
130
157
  sorter,
131
158
  filter,
@@ -133,7 +160,13 @@ const _sfc_main = vue.defineComponent({
133
160
  }).then((response) => {
134
161
  const parseData = props$1.parseData ?? globalProps.value.parseData;
135
162
  const result = parseData ? parseData(response) : response;
136
- const { data, total } = getResponseResult(result);
163
+ const { data, total } = util.getResponseResult(
164
+ result,
165
+ props$1.response,
166
+ globalProps.value.response,
167
+ props$1.lazy,
168
+ props$1.treeProps
169
+ );
137
170
  requestCallback(data, total, parent, result, resolve);
138
171
  }).catch((e) => {
139
172
  requestCallback(e == null ? void 0 : e.message);
@@ -142,7 +175,6 @@ const _sfc_main = vue.defineComponent({
142
175
  return;
143
176
  }
144
177
  if (Array.isArray(props$1.datasource)) {
145
- tableLoading.value = true;
146
178
  const { data, page, total } = util.reloadData(
147
179
  props$1.datasource,
148
180
  sorter,
@@ -152,7 +184,6 @@ const _sfc_main = vue.defineComponent({
152
184
  tableData.value = data;
153
185
  tablePage.value = page;
154
186
  tableTotal.value = total;
155
- tableLoading.value = false;
156
187
  onDone({ data, page, total, response: props$1.datasource });
157
188
  }
158
189
  };
@@ -196,68 +227,7 @@ const _sfc_main = vue.defineComponent({
196
227
  };
197
228
  onDone(result, parent);
198
229
  };
199
- const getRequestOrders = (sorter) => {
200
- const orders = {};
201
- const { sortName, orderName, ascValue, descValue } = util.getRequestName(
202
- globalProps.value.request,
203
- props$1.request
204
- );
205
- if (!sortName || !orderName) {
206
- return orders;
207
- }
208
- const items = util.getOrderItems(sorter);
209
- if (items.length === 1) {
210
- orders[sortName] = items[0].field;
211
- orders[orderName] = items[0].descend ? descValue : ascValue;
212
- } else if (items.length) {
213
- orders[sortName] = items.map((d) => [d.field, d.descend ? descValue : ascValue].join(" ")).join(",");
214
- }
215
- return orders;
216
- };
217
- const getResponseResult = (data) => {
218
- if (!data || Array.isArray(data)) {
219
- return { data: getResponseData(data) };
220
- }
221
- const { dataName, countName } = util.getResponseName(
222
- globalProps.value.response,
223
- props$1.response
224
- );
225
- if (!dataName) {
226
- return {};
227
- }
228
- return {
229
- data: getResponseData(util.getValue(data, dataName)),
230
- total: (countName ? util.getValue(data, countName) : void 0) ?? 0
231
- };
232
- };
233
- const getResponseData = (data) => {
234
- var _a;
235
- if (!data || !props$1.lazy) {
236
- return data;
237
- }
238
- const name = ((_a = props$1.treeProps) == null ? void 0 : _a.hasChildren) ?? "hasChildren";
239
- return data.map((d) => {
240
- const temp = { ...d };
241
- temp[name] = temp[name] ?? true;
242
- return temp;
243
- });
244
- };
245
- const getDefaultSorter = () => {
246
- return props$1.defaultSort ?? {};
247
- };
248
- const getDefaultFilter = () => {
249
- const filter = {};
250
- core.eachTree(props$1.columns, (d) => {
251
- if (typeof d.columnKey === "string" && d.columnKey.length && d.filteredValue) {
252
- filter[d.columnKey] = d.filteredValue;
253
- }
254
- });
255
- return filter;
256
- };
257
230
  const onDone = (result, parent) => {
258
- vue.nextTick(() => {
259
- tableIns.doLayout();
260
- });
261
231
  emit("done", result, parent);
262
232
  };
263
233
  const tableLoad = (row, treeNode, resolve) => {
@@ -276,23 +246,21 @@ const _sfc_main = vue.defineComponent({
276
246
  };
277
247
  const onSizeChange = (size) => {
278
248
  tableSize.value = size;
279
- vue.nextTick(() => {
280
- tableIns.doLayout();
281
- });
282
249
  emit("sizeChange", size);
283
250
  };
284
251
  const onColumnsChange = (columns) => {
285
- tableCols.value = columns;
252
+ const { cols, sorter } = util.getTableState(columns, current);
253
+ tableCols.value = cols;
286
254
  vue.nextTick(() => {
287
255
  tableIns.doLayout();
256
+ if (sorter) {
257
+ tableIns.sort(sorter.prop, sorter.order || "ascending");
258
+ }
288
259
  });
289
260
  emit("columnsChange", columns);
290
261
  };
291
262
  const onMaximizedChange = (maximized) => {
292
263
  tableMaximized.value = maximized;
293
- vue.nextTick(() => {
294
- tableIns.doLayout();
295
- });
296
264
  emit("maximizedChange", maximized);
297
265
  };
298
266
  const onPageSizeChange = (limit) => {
@@ -321,6 +289,10 @@ const _sfc_main = vue.defineComponent({
321
289
  emit("selectionChange", selection);
322
290
  };
323
291
  const onSortChange = (sorter) => {
292
+ const temp = current.sorter;
293
+ if (temp && sorter.prop === temp.prop && sorter.order === temp.order) {
294
+ return;
295
+ }
324
296
  if (props$1.loadOnChanged) {
325
297
  current.sorter = sorter;
326
298
  reload();
@@ -329,17 +301,21 @@ const _sfc_main = vue.defineComponent({
329
301
  };
330
302
  const onFilterChange = (filter) => {
331
303
  if (props$1.loadOnChanged) {
332
- current.filter = filter;
304
+ const temp = util.getTableFilter(getTableRef()) ?? filter;
305
+ current.filter = temp;
333
306
  reload();
334
307
  }
335
308
  emit("filterChange", filter);
336
309
  };
337
310
  const onCurrentChange = (currentRow, oldCurrentRow) => {
338
311
  if (props$1.current !== currentRow) {
339
- emit("update:current", currentRow);
312
+ updateCurrent(currentRow);
340
313
  }
341
314
  emit("currentChange", currentRow, oldCurrentRow);
342
315
  };
316
+ const updateCurrent = (currentRow) => {
317
+ emit("update:current", currentRow);
318
+ };
343
319
  const updateSelections = (selection) => {
344
320
  emit("update:selections", selection);
345
321
  };
@@ -352,6 +328,10 @@ const _sfc_main = vue.defineComponent({
352
328
  });
353
329
  });
354
330
  };
331
+ const getTableRef = () => {
332
+ var _a;
333
+ return (_a = tableViewRef.value) == null ? void 0 : _a.tableRef;
334
+ };
355
335
  const getData = () => {
356
336
  return tableData.value;
357
337
  };
@@ -395,8 +375,7 @@ const _sfc_main = vue.defineComponent({
395
375
  if (!props$1.rowKey || !paginationProps.value || tableLimit.value == null || !Array.isArray(props$1.datasource)) {
396
376
  return;
397
377
  }
398
- const sorter = current.sorter ?? getDefaultSorter();
399
- const data = util.sortData(props$1.datasource, sorter);
378
+ const data = util.sortData(props$1.datasource, current.sorter);
400
379
  const index2 = data.findIndex((d) => util.getValue(d, props$1.rowKey) === key);
401
380
  const page = Math.floor(index2 / tableLimit.value) + 1;
402
381
  if (tablePage.value !== page) {
@@ -404,13 +383,17 @@ const _sfc_main = vue.defineComponent({
404
383
  }
405
384
  };
406
385
  const fetch = (callback) => {
407
- const sorter = current.sorter ?? getDefaultSorter();
408
- const filter = current.filter ?? getDefaultFilter();
386
+ const { sorter, filter } = current;
387
+ const orders = util.getRequestOrders(
388
+ sorter,
389
+ props$1.request,
390
+ globalProps.value.request
391
+ );
409
392
  callback({
410
393
  page: tablePage.value,
411
394
  limit: tableLimit.value,
412
- where: { ...current.where },
413
- orders: getRequestOrders(sorter),
395
+ where: Object.assign({}, current.where),
396
+ orders,
414
397
  filters: util.getRequestFilters(filter),
415
398
  sorter,
416
399
  filter
@@ -466,9 +449,13 @@ const _sfc_main = vue.defineComponent({
466
449
  );
467
450
  vue.onMounted(() => {
468
451
  if (props$1.loadOnCreated) {
469
- reload({ where: props$1.where });
452
+ reload();
470
453
  }
471
454
  });
455
+ vue.onBeforeUnmount(() => {
456
+ updateSelections([]);
457
+ updateCurrent(null);
458
+ });
472
459
  return {
473
460
  ...tableIns,
474
461
  tableEvents,
@@ -483,9 +470,10 @@ const _sfc_main = vue.defineComponent({
483
470
  tableIndex,
484
471
  paginationProps,
485
472
  tableProps,
486
- proTableStyle,
473
+ tableZIndex,
487
474
  tableTools,
488
475
  tableEmptyProps,
476
+ rootProps,
489
477
  tableLoad,
490
478
  onRefresh,
491
479
  onSizeChange,
@@ -500,6 +488,7 @@ const _sfc_main = vue.defineComponent({
500
488
  onCurrentChange,
501
489
  reload,
502
490
  reloadTable,
491
+ getTableRef,
503
492
  getData,
504
493
  setData,
505
494
  setSelectedRows,
@@ -523,111 +512,108 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
523
512
  const _component_ElEmpty = vue.resolveComponent("ElEmpty");
524
513
  const _component_TableView = vue.resolveComponent("TableView");
525
514
  const _component_ElePagination = vue.resolveComponent("ElePagination");
526
- return vue.openBlock(), vue.createElementBlock("div", {
527
- class: vue.normalizeClass([
528
- "ele-pro-table",
529
- { "is-sticky": _ctx.sticky },
530
- { "is-maximized": _ctx.tableMaximized }
531
- ]),
532
- style: vue.normalizeStyle(_ctx.proTableStyle)
533
- }, [
534
- _ctx.toolbar ? (vue.openBlock(), vue.createBlock(_component_EleToolbar, vue.normalizeProps(vue.mergeProps({ key: 0 }, _ctx.toolbar === true ? {} : _ctx.toolbar)), {
535
- tools: vue.withCtx(() => [
536
- vue.renderSlot(_ctx.$slots, "tools"),
537
- _ctx.tableTools && _ctx.tableTools.length ? (vue.openBlock(), vue.createBlock(_component_TableTools, {
538
- key: 0,
539
- size: _ctx.tableSize,
540
- columns: _ctx.columns,
541
- tools: _ctx.tableTools,
542
- columnSortable: _ctx.columnSortable,
543
- columnFixed: _ctx.columnFixed,
544
- maximized: _ctx.tableMaximized,
545
- cacheKey: _ctx.cacheKey,
546
- locale: _ctx.locale,
547
- onReload: _ctx.onRefresh,
548
- "onUpdate:size": _ctx.onSizeChange,
549
- "onUpdate:columns": _ctx.onColumnsChange,
550
- "onUpdate:maximized": _ctx.onMaximizedChange
551
- }, null, 8, ["size", "columns", "tools", "columnSortable", "columnFixed", "maximized", "cacheKey", "locale", "onReload", "onUpdate:size", "onUpdate:columns", "onUpdate:maximized"])) : vue.createCommentVNode("", true)
552
- ]),
553
- default: vue.withCtx(() => [
554
- vue.renderSlot(_ctx.$slots, "toolbar")
555
- ]),
556
- _: 3
557
- }, 16)) : vue.createCommentVNode("", true),
558
- vue.renderSlot(_ctx.$slots, "default"),
559
- !_ctx.destroyed ? (vue.openBlock(), vue.createBlock(_component_TableView, vue.mergeProps({ key: 1 }, _ctx.tableProps, {
560
- ref: "tableViewRef",
561
- style: _ctx.tableStyle,
562
- onSelect: _ctx.tableEvents.onSelect,
563
- onSelectAll: _ctx.tableEvents.onSelectAll,
564
- onCellMouseEnter: _ctx.tableEvents.onCellMouseEnter,
565
- onCellMouseLeave: _ctx.tableEvents.onCellMouseLeave,
566
- onCellClick: _ctx.tableEvents.onCellClick,
567
- onCellDblclick: _ctx.tableEvents.onCellDblclick,
568
- onCellContextmenu: _ctx.tableEvents.onCellContextmenu,
569
- onRowContextmenu: _ctx.tableEvents.onRowContextmenu,
570
- onRowDblclick: _ctx.tableEvents.onRowDblclick,
571
- onHeaderClick: _ctx.tableEvents.onHeaderClick,
572
- onHeaderContextmenu: _ctx.tableEvents.onHeaderContextmenu,
573
- onHeaderDragend: _ctx.tableEvents.onHeaderDragend,
574
- onExpandChange: _ctx.tableEvents.onExpandChange,
575
- onRowClick: _ctx.onRowClick,
576
- onSelectionChange: _ctx.onSelectionChange,
577
- onSortChange: _ctx.onSortChange,
578
- onFilterChange: _ctx.onFilterChange,
579
- onCurrentChange: _ctx.onCurrentChange
580
- }), vue.createSlots({ _: 2 }, [
581
- vue.renderList(Object.keys(_ctx.$slots).filter(
582
- (k) => "default" !== k && "empty" !== k
583
- ), (name) => {
584
- return {
585
- name,
586
- fn: vue.withCtx((slotProps) => [
587
- vue.renderSlot(_ctx.$slots, name, vue.normalizeProps(vue.guardReactiveProps(slotProps || {})))
588
- ])
589
- };
590
- }),
591
- _ctx.tableEmptyProps || _ctx.$slots.empty ? {
592
- name: "empty",
593
- fn: vue.withCtx(() => [
594
- vue.renderSlot(_ctx.$slots, "empty", {
595
- text: _ctx.emptyText,
596
- error: _ctx.errorText
597
- }, () => [
598
- _ctx.tableEmptyProps ? (vue.openBlock(), vue.createBlock(_component_ElEmpty, vue.mergeProps({
599
- key: 0,
600
- imageSize: 68
601
- }, _ctx.tableEmptyProps === true ? {} : _ctx.emptyProps, {
602
- class: "ele-table-empty",
603
- description: _ctx.errorText || _ctx.emptyText
604
- }), null, 16, ["description"])) : vue.createCommentVNode("", true)
605
- ])
515
+ const _component_EleLoading = vue.resolveComponent("EleLoading");
516
+ return vue.openBlock(), vue.createBlock(_component_EleLoading, vue.normalizeProps(vue.guardReactiveProps(_ctx.rootProps)), {
517
+ default: vue.withCtx(() => [
518
+ _ctx.toolbar ? (vue.openBlock(), vue.createBlock(_component_EleToolbar, vue.normalizeProps(vue.mergeProps({ key: 0 }, _ctx.toolbar === true ? {} : _ctx.toolbar)), {
519
+ tools: vue.withCtx(() => [
520
+ vue.renderSlot(_ctx.$slots, "tools"),
521
+ _ctx.tableTools && _ctx.tableTools.length ? (vue.openBlock(), vue.createBlock(_component_TableTools, {
522
+ key: 0,
523
+ size: _ctx.tableSize,
524
+ columns: _ctx.columns,
525
+ tools: _ctx.tableTools,
526
+ columnSortable: _ctx.columnSortable,
527
+ columnFixed: _ctx.columnFixed,
528
+ maximized: _ctx.tableMaximized,
529
+ cacheKey: _ctx.cacheKey,
530
+ locale: _ctx.locale,
531
+ onReload: _ctx.onRefresh,
532
+ "onUpdate:size": _ctx.onSizeChange,
533
+ "onUpdate:columns": _ctx.onColumnsChange,
534
+ "onUpdate:maximized": _ctx.onMaximizedChange
535
+ }, null, 8, ["size", "columns", "tools", "columnSortable", "columnFixed", "maximized", "cacheKey", "locale", "onReload", "onUpdate:size", "onUpdate:columns", "onUpdate:maximized"])) : vue.createCommentVNode("", true)
606
536
  ]),
607
- key: "0"
608
- } : void 0
609
- ]), 1040, ["style", "onSelect", "onSelectAll", "onCellMouseEnter", "onCellMouseLeave", "onCellClick", "onCellDblclick", "onCellContextmenu", "onRowContextmenu", "onRowDblclick", "onHeaderClick", "onHeaderContextmenu", "onHeaderDragend", "onExpandChange", "onRowClick", "onSelectionChange", "onSortChange", "onFilterChange", "onCurrentChange"])) : vue.createCommentVNode("", true),
610
- _ctx.paginationProps || _ctx.$slots.footer ? (vue.openBlock(), vue.createElementBlock("div", {
611
- key: 2,
612
- class: "ele-pro-table-footer",
613
- style: vue.normalizeStyle(_ctx.footerStyle)
614
- }, [
615
- vue.renderSlot(_ctx.$slots, "footer"),
616
- _ctx.paginationProps && _ctx.paginationProps.total ? (vue.openBlock(), vue.createBlock(_component_ElePagination, vue.mergeProps({ key: 0 }, _ctx.paginationProps, {
617
- "onUpdate:currentPage": _ctx.onPageCurrentChange,
618
- "onUpdate:pageSize": _ctx.onPageSizeChange
537
+ default: vue.withCtx(() => [
538
+ vue.renderSlot(_ctx.$slots, "toolbar")
539
+ ]),
540
+ _: 3
541
+ }, 16)) : vue.createCommentVNode("", true),
542
+ vue.renderSlot(_ctx.$slots, "default"),
543
+ !_ctx.destroyed ? (vue.openBlock(), vue.createBlock(_component_TableView, vue.mergeProps({ key: 1 }, _ctx.tableProps, {
544
+ ref: "tableViewRef",
545
+ style: _ctx.tableStyle,
546
+ onSelect: _ctx.tableEvents.onSelect,
547
+ onSelectAll: _ctx.tableEvents.onSelectAll,
548
+ onCellMouseEnter: _ctx.tableEvents.onCellMouseEnter,
549
+ onCellMouseLeave: _ctx.tableEvents.onCellMouseLeave,
550
+ onCellClick: _ctx.tableEvents.onCellClick,
551
+ onCellDblclick: _ctx.tableEvents.onCellDblclick,
552
+ onCellContextmenu: _ctx.tableEvents.onCellContextmenu,
553
+ onRowContextmenu: _ctx.tableEvents.onRowContextmenu,
554
+ onRowDblclick: _ctx.tableEvents.onRowDblclick,
555
+ onHeaderClick: _ctx.tableEvents.onHeaderClick,
556
+ onHeaderContextmenu: _ctx.tableEvents.onHeaderContextmenu,
557
+ onHeaderDragend: _ctx.tableEvents.onHeaderDragend,
558
+ onExpandChange: _ctx.tableEvents.onExpandChange,
559
+ onRowClick: _ctx.onRowClick,
560
+ onSelectionChange: _ctx.onSelectionChange,
561
+ onSortChange: _ctx.onSortChange,
562
+ onFilterChange: _ctx.onFilterChange,
563
+ onCurrentChange: _ctx.onCurrentChange
619
564
  }), vue.createSlots({ _: 2 }, [
620
- vue.renderList(Object.keys(_ctx.$slots).filter((k) => "default" !== k), (name) => {
565
+ vue.renderList(Object.keys(_ctx.$slots).filter(
566
+ (k) => "default" !== k && "empty" !== k
567
+ ), (name) => {
621
568
  return {
622
569
  name,
623
570
  fn: vue.withCtx((slotProps) => [
624
571
  vue.renderSlot(_ctx.$slots, name, vue.normalizeProps(vue.guardReactiveProps(slotProps || {})))
625
572
  ])
626
573
  };
627
- })
628
- ]), 1040, ["onUpdate:currentPage", "onUpdate:pageSize"])) : vue.createCommentVNode("", true)
629
- ], 4)) : vue.createCommentVNode("", true)
630
- ], 6);
574
+ }),
575
+ _ctx.tableEmptyProps || _ctx.$slots.empty ? {
576
+ name: "empty",
577
+ fn: vue.withCtx(() => [
578
+ vue.renderSlot(_ctx.$slots, "empty", {
579
+ text: _ctx.emptyText,
580
+ error: _ctx.errorText
581
+ }, () => [
582
+ _ctx.tableEmptyProps ? (vue.openBlock(), vue.createBlock(_component_ElEmpty, vue.mergeProps({
583
+ key: 0,
584
+ imageSize: 68
585
+ }, _ctx.tableEmptyProps === true ? {} : _ctx.emptyProps, {
586
+ class: "ele-table-empty",
587
+ description: _ctx.errorText || _ctx.emptyText
588
+ }), null, 16, ["description"])) : vue.createCommentVNode("", true)
589
+ ])
590
+ ]),
591
+ key: "0"
592
+ } : void 0
593
+ ]), 1040, ["style", "onSelect", "onSelectAll", "onCellMouseEnter", "onCellMouseLeave", "onCellClick", "onCellDblclick", "onCellContextmenu", "onRowContextmenu", "onRowDblclick", "onHeaderClick", "onHeaderContextmenu", "onHeaderDragend", "onExpandChange", "onRowClick", "onSelectionChange", "onSortChange", "onFilterChange", "onCurrentChange"])) : vue.createCommentVNode("", true),
594
+ _ctx.paginationProps || _ctx.$slots.footer ? (vue.openBlock(), vue.createElementBlock("div", {
595
+ key: 2,
596
+ class: "ele-pro-table-footer",
597
+ style: vue.normalizeStyle(_ctx.footerStyle)
598
+ }, [
599
+ vue.renderSlot(_ctx.$slots, "footer"),
600
+ _ctx.paginationProps && _ctx.paginationProps.total ? (vue.openBlock(), vue.createBlock(_component_ElePagination, vue.mergeProps({ key: 0 }, _ctx.paginationProps, {
601
+ "onUpdate:currentPage": _ctx.onPageCurrentChange,
602
+ "onUpdate:pageSize": _ctx.onPageSizeChange
603
+ }), vue.createSlots({ _: 2 }, [
604
+ vue.renderList(Object.keys(_ctx.$slots).filter((k) => "default" !== k), (name) => {
605
+ return {
606
+ name,
607
+ fn: vue.withCtx((slotProps) => [
608
+ vue.renderSlot(_ctx.$slots, name, vue.normalizeProps(vue.guardReactiveProps(slotProps || {})))
609
+ ])
610
+ };
611
+ })
612
+ ]), 1040, ["onUpdate:currentPage", "onUpdate:pageSize"])) : vue.createCommentVNode("", true)
613
+ ], 4)) : vue.createCommentVNode("", true)
614
+ ]),
615
+ _: 3
616
+ }, 16);
631
617
  }
632
618
  const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
633
619
  module.exports = index;
@@ -1,11 +1,12 @@
1
1
  import type { PropType, ExtractPropTypes } from 'vue';
2
- import type { StyleValue, ElEmptyProps } from '../ele-app/types';
2
+ import type { ElEmptyProps } from '../ele-app/types';
3
+ import type { LoadingProps } from '../ele-loading/props';
3
4
  import type { Column, Columns, DataItem, Where, Datasource, RequestOption, ResponseOption, ParseData, Sorter, Filter, DoneParams, TablePagination, TableToolbar, TableTool, TableSize, RowClickChecked, TableLocale } from './types';
4
5
  declare const tableProps: Omit<{
5
6
  data: {
6
7
  type: PropType<any[]>;
7
8
  default: () => never[];
8
- }; /** 表格数据请求完成事件 */
9
+ };
9
10
  size: {
10
11
  readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
11
12
  readonly required: false;
@@ -21,7 +22,7 @@ declare const tableProps: Omit<{
21
22
  };
22
23
  stripe: BooleanConstructor;
23
24
  border: BooleanConstructor;
24
- rowKey: PropType<string | ((row: any) => string) | undefined>;
25
+ rowKey: PropType<string | ((row: any) => string) | undefined>; /** 表格最大化切换事件 */
25
26
  showHeader: {
26
27
  type: BooleanConstructor;
27
28
  default: boolean;
@@ -101,12 +102,15 @@ export declare const tableViewProps: {
101
102
  type: PropType<Columns>;
102
103
  required: boolean;
103
104
  };
104
- loading: BooleanConstructor;
105
105
  pageIndex: NumberConstructor;
106
106
  headerEllipsis: {
107
107
  type: BooleanConstructor;
108
108
  default: boolean;
109
109
  };
110
+ slotNormalize: {
111
+ type: BooleanConstructor;
112
+ default: boolean;
113
+ };
110
114
  size: {
111
115
  readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
112
116
  readonly required: false;
@@ -206,6 +210,7 @@ export declare const proTableProps: {
206
210
  type: BooleanConstructor;
207
211
  default: null;
208
212
  };
213
+ loading: BooleanConstructor;
209
214
  datasource: {
210
215
  type: PropType<Datasource>;
211
216
  required: boolean;
@@ -243,8 +248,8 @@ export declare const proTableProps: {
243
248
  maximizedIndex: NumberConstructor;
244
249
  maximizedHeight: (StringConstructor | NumberConstructor)[];
245
250
  rowClickChecked: PropType<RowClickChecked>;
246
- tableStyle: PropType<StyleValue>;
247
- footerStyle: PropType<StyleValue>;
251
+ tableStyle: PropType<Partial<import("vue").CSSProperties>>;
252
+ footerStyle: PropType<Partial<import("vue").CSSProperties>>;
248
253
  pagination: {
249
254
  type: PropType<boolean | TablePagination>;
250
255
  default: () => null;
@@ -254,18 +259,13 @@ export declare const proTableProps: {
254
259
  default: () => null;
255
260
  };
256
261
  sticky: BooleanConstructor;
257
- cacheKey: StringConstructor;
258
- locale: PropType<Partial<TableLocale>>;
259
- columns: {
260
- type: PropType<Columns>;
261
- required: boolean;
262
- };
263
- loading: BooleanConstructor;
264
- pageIndex: NumberConstructor;
265
- headerEllipsis: {
262
+ loadingProps: PropType<Partial<LoadingProps>>;
263
+ bottomLine: {
266
264
  type: BooleanConstructor;
267
265
  default: boolean;
268
266
  };
267
+ cacheKey: StringConstructor;
268
+ locale: PropType<Partial<TableLocale>>;
269
269
  size: {
270
270
  readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
271
271
  readonly required: false;
@@ -350,6 +350,18 @@ export declare const proTableProps: {
350
350
  default: boolean;
351
351
  };
352
352
  flexible: BooleanConstructor;
353
+ columns: {
354
+ type: PropType<Columns>;
355
+ required: boolean;
356
+ };
357
+ headerEllipsis: {
358
+ type: BooleanConstructor;
359
+ default: boolean;
360
+ };
361
+ slotNormalize: {
362
+ type: BooleanConstructor;
363
+ default: boolean;
364
+ };
353
365
  };
354
366
  export type ProTableProps = ExtractPropTypes<typeof proTableProps>;
355
367
  export type TableViewProps = ExtractPropTypes<typeof tableViewProps>;