@teamix/pro 1.1.36 → 1.1.40

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 (200) hide show
  1. package/README.md +14 -10
  2. package/dist/pro.css +1 -1
  3. package/dist/pro.js +2555 -3791
  4. package/dist/pro.min.css +1 -1
  5. package/dist/pro.min.js +1 -1
  6. package/es/actions/dialog-form.d.ts +5 -5
  7. package/es/actions/dialog-form.js +1 -5
  8. package/es/actions/dialog.d.ts +12 -0
  9. package/es/actions/dialog.js +104 -27
  10. package/es/actions/index.d.ts +54 -47
  11. package/es/actions/index.js +28 -22
  12. package/es/actions/index.scss +48 -2
  13. package/es/actions/link.js +4 -2
  14. package/es/actions/request.d.ts +1 -1
  15. package/es/actions/request.js +2 -2
  16. package/es/card/index.d.ts +17 -5
  17. package/es/card/index.js +16 -11
  18. package/es/form/Components/ProField/index.d.ts +1 -161
  19. package/es/form/Components/ProField/index.js +34 -40
  20. package/es/form/Filter/index.js +2 -2
  21. package/es/form/ProForm/index.d.ts +2 -2
  22. package/es/form/ProForm/index.js +1 -6
  23. package/es/form/ProForm/index.scss +19 -1
  24. package/es/form/ProForm/useFieldRequest.d.ts +5 -0
  25. package/es/form/ProForm/useFieldRequest.js +26 -0
  26. package/es/form/SchemaForm/adapterDecorator.js +2 -2
  27. package/es/form/SchemaForm/index.d.ts +2 -2
  28. package/es/form/SchemaForm/index.js +12 -21
  29. package/es/form/SchemaForm/initializeArrayCards.d.ts +2 -2
  30. package/es/form/SchemaForm/initializeArrayCollapse.d.ts +2 -2
  31. package/es/form/SchemaForm/initializeArrayItems.d.ts +2 -2
  32. package/es/form/SchemaForm/initializeArrayTable.d.ts +2 -2
  33. package/es/form/SchemaForm/initializeDataSource.d.ts +2 -2
  34. package/es/form/SchemaForm/initializeDataSource.js +2 -2
  35. package/es/form/SchemaForm/initializeFormButton.d.ts +2 -2
  36. package/es/form/SchemaForm/initializeFormCollapse.d.ts +2 -2
  37. package/es/form/SchemaForm/initializeFormGroup.d.ts +2 -2
  38. package/es/form/SchemaForm/initializeFormStep.d.ts +3 -3
  39. package/es/form/SchemaForm/initializeFormTab.d.ts +2 -2
  40. package/es/form/SchemaForm/initializeRequest.d.ts +2 -2
  41. package/es/form/SchemaForm/initializeRequest.js +2 -2
  42. package/es/form/SchemaForm/initializeRules.js +44 -16
  43. package/es/form/SchemaForm/reactions.d.ts +5 -5
  44. package/es/form/SchemaForm/reactions.js +20 -18
  45. package/es/form/fieldTypeMap.d.ts +4 -0
  46. package/es/form/fieldTypeMap.js +41 -0
  47. package/es/form/index.d.ts +92 -4
  48. package/es/form/index.js +18 -5
  49. package/es/form/schemaNameMap.js +3 -0
  50. package/es/form/typing.d.ts +49 -26
  51. package/es/form/utils.d.ts +3 -1
  52. package/es/form/utils.js +38 -1
  53. package/es/form/warning.d.ts +2 -2
  54. package/es/index.d.ts +1 -1
  55. package/es/index.js +1 -1
  56. package/es/info/components/InfoGroup/index.js +73 -15
  57. package/es/info/components/InfoGroup/index.scss +45 -3
  58. package/es/info/components/InfoValueItem/index.js +9 -4
  59. package/es/info/components/InfoValueItem/index.scss +5 -1
  60. package/es/info/components/ProInfoItem/index.js +3 -3
  61. package/es/info/components/ProInfoItem/index.scss +1 -0
  62. package/es/info/components/baseInfo/index.d.ts +2 -3
  63. package/es/info/components/baseInfo/index.js +29 -10
  64. package/es/info/components/headerInfo/index.d.ts +2 -3
  65. package/es/info/components/tableInfo/index.d.ts +2 -3
  66. package/es/info/components/tableInfo/index.js +2 -2
  67. package/es/info/index.js +75 -51
  68. package/es/info/typing.d.ts +54 -36
  69. package/es/info/utils/index.d.ts +2 -2
  70. package/es/info/utils/utils.d.ts +1 -1
  71. package/es/nocode/pages/renderer.js +2 -2
  72. package/es/page-header/index.d.ts +42 -25
  73. package/es/page-header/index.js +56 -32
  74. package/es/page-header/index.scss +2 -1
  75. package/es/table/components/EmptyContent/index.d.ts +2 -0
  76. package/es/table/components/EmptyContent/index.js +11 -0
  77. package/es/table/components/Filter/index.d.ts +2 -2
  78. package/es/table/components/Filter/index.js +23 -10
  79. package/es/table/components/Filter/index.scss +1 -1
  80. package/es/table/components/Layout/index.js +2 -2
  81. package/es/table/components/QuickAction/index.d.ts +2 -2
  82. package/es/table/components/QuickAction/index.js +3 -3
  83. package/es/table/components/ToolBar/Fullscreen.js +1 -0
  84. package/es/table/index.js +76 -14
  85. package/es/table/index.scss +4 -0
  86. package/es/table/typing.d.ts +29 -14
  87. package/es/table/utils/columnRender.d.ts +3 -3
  88. package/es/table/utils/columnRender.js +2 -2
  89. package/es/table/utils/genProColumnToColumn.d.ts +2 -2
  90. package/es/table/utils/genProColumnToColumn.js +1 -1
  91. package/es/table/utils/index.js +33 -11
  92. package/es/templates/List/index.d.ts +2 -2
  93. package/es/utils/message.d.ts +3 -0
  94. package/es/utils/message.js +19 -0
  95. package/lib/actions/dialog-form.d.ts +5 -5
  96. package/lib/actions/dialog-form.js +1 -5
  97. package/lib/actions/dialog.d.ts +12 -0
  98. package/lib/actions/dialog.js +108 -26
  99. package/lib/actions/index.d.ts +54 -47
  100. package/lib/actions/index.js +37 -30
  101. package/lib/actions/index.scss +48 -2
  102. package/lib/actions/link.js +5 -2
  103. package/lib/actions/request.d.ts +1 -1
  104. package/lib/actions/request.js +2 -2
  105. package/lib/card/index.d.ts +17 -5
  106. package/lib/card/index.js +18 -12
  107. package/lib/form/Components/ProField/index.d.ts +1 -161
  108. package/lib/form/Components/ProField/index.js +32 -38
  109. package/lib/form/Filter/index.js +2 -2
  110. package/lib/form/ProForm/index.d.ts +2 -2
  111. package/lib/form/ProForm/index.js +1 -7
  112. package/lib/form/ProForm/index.scss +19 -1
  113. package/lib/form/ProForm/useFieldRequest.d.ts +5 -0
  114. package/lib/form/ProForm/useFieldRequest.js +37 -0
  115. package/lib/form/SchemaForm/adapterDecorator.js +4 -2
  116. package/lib/form/SchemaForm/index.d.ts +2 -2
  117. package/lib/form/SchemaForm/index.js +11 -22
  118. package/lib/form/SchemaForm/initializeArrayCards.d.ts +2 -2
  119. package/lib/form/SchemaForm/initializeArrayCollapse.d.ts +2 -2
  120. package/lib/form/SchemaForm/initializeArrayItems.d.ts +2 -2
  121. package/lib/form/SchemaForm/initializeArrayTable.d.ts +2 -2
  122. package/lib/form/SchemaForm/initializeDataSource.d.ts +2 -2
  123. package/lib/form/SchemaForm/initializeDataSource.js +2 -2
  124. package/lib/form/SchemaForm/initializeFormButton.d.ts +2 -2
  125. package/lib/form/SchemaForm/initializeFormCollapse.d.ts +2 -2
  126. package/lib/form/SchemaForm/initializeFormGroup.d.ts +2 -2
  127. package/lib/form/SchemaForm/initializeFormStep.d.ts +3 -3
  128. package/lib/form/SchemaForm/initializeFormTab.d.ts +2 -2
  129. package/lib/form/SchemaForm/initializeRequest.d.ts +2 -2
  130. package/lib/form/SchemaForm/initializeRequest.js +1 -1
  131. package/lib/form/SchemaForm/initializeRules.js +41 -13
  132. package/lib/form/SchemaForm/reactions.d.ts +5 -5
  133. package/lib/form/SchemaForm/reactions.js +22 -20
  134. package/lib/form/fieldTypeMap.d.ts +4 -0
  135. package/lib/form/fieldTypeMap.js +48 -0
  136. package/lib/form/index.d.ts +92 -4
  137. package/lib/form/index.js +17 -31
  138. package/lib/form/schemaNameMap.js +3 -0
  139. package/lib/form/typing.d.ts +49 -26
  140. package/lib/form/utils.d.ts +3 -1
  141. package/lib/form/utils.js +43 -1
  142. package/lib/form/warning.d.ts +2 -2
  143. package/lib/index.d.ts +1 -1
  144. package/lib/index.js +1 -1
  145. package/lib/info/components/InfoGroup/index.js +76 -14
  146. package/lib/info/components/InfoGroup/index.scss +45 -3
  147. package/lib/info/components/InfoValueItem/index.js +8 -3
  148. package/lib/info/components/InfoValueItem/index.scss +5 -1
  149. package/lib/info/components/ProInfoItem/index.js +2 -2
  150. package/lib/info/components/ProInfoItem/index.scss +1 -0
  151. package/lib/info/components/baseInfo/index.d.ts +2 -3
  152. package/lib/info/components/baseInfo/index.js +29 -10
  153. package/lib/info/components/headerInfo/index.d.ts +2 -3
  154. package/lib/info/components/tableInfo/index.d.ts +2 -3
  155. package/lib/info/components/tableInfo/index.js +1 -1
  156. package/lib/info/index.js +73 -49
  157. package/lib/info/typing.d.ts +54 -36
  158. package/lib/info/utils/index.d.ts +2 -2
  159. package/lib/info/utils/utils.d.ts +1 -1
  160. package/lib/nocode/pages/renderer.js +1 -1
  161. package/lib/page-header/index.d.ts +42 -25
  162. package/lib/page-header/index.js +54 -30
  163. package/lib/page-header/index.scss +2 -1
  164. package/lib/table/components/EmptyContent/index.d.ts +2 -0
  165. package/lib/table/components/EmptyContent/index.js +25 -0
  166. package/lib/table/components/Filter/index.d.ts +2 -2
  167. package/lib/table/components/Filter/index.js +23 -10
  168. package/lib/table/components/Filter/index.scss +1 -1
  169. package/lib/table/components/Layout/index.js +1 -1
  170. package/lib/table/components/QuickAction/index.d.ts +2 -2
  171. package/lib/table/components/QuickAction/index.js +1 -1
  172. package/lib/table/components/ToolBar/Fullscreen.js +1 -0
  173. package/lib/table/index.js +77 -14
  174. package/lib/table/index.scss +4 -0
  175. package/lib/table/typing.d.ts +29 -14
  176. package/lib/table/utils/columnRender.d.ts +3 -3
  177. package/lib/table/utils/columnRender.js +1 -1
  178. package/lib/table/utils/genProColumnToColumn.d.ts +2 -2
  179. package/lib/table/utils/genProColumnToColumn.js +2 -2
  180. package/lib/table/utils/index.js +33 -11
  181. package/lib/templates/List/index.d.ts +2 -2
  182. package/lib/utils/message.d.ts +3 -0
  183. package/lib/utils/message.js +32 -0
  184. package/package.json +4 -4
  185. package/es/form/Components/Search/index.d.ts +0 -11
  186. package/es/form/Components/Search/index.js +0 -89
  187. package/es/form/SchemaForm/initializeArrayIcon.d.ts +0 -3
  188. package/es/form/SchemaForm/initializeArrayIcon.js +0 -62
  189. package/es/form/SchemaForm/initializeProField.d.ts +0 -5
  190. package/es/form/SchemaForm/initializeProField.js +0 -70
  191. package/es/info/utils/useInfoRequest.d.ts +0 -14
  192. package/es/info/utils/useInfoRequest.js +0 -76
  193. package/lib/form/Components/Search/index.d.ts +0 -11
  194. package/lib/form/Components/Search/index.js +0 -103
  195. package/lib/form/SchemaForm/initializeArrayIcon.d.ts +0 -3
  196. package/lib/form/SchemaForm/initializeArrayIcon.js +0 -73
  197. package/lib/form/SchemaForm/initializeProField.d.ts +0 -5
  198. package/lib/form/SchemaForm/initializeProField.js +0 -77
  199. package/lib/info/utils/useInfoRequest.d.ts +0 -14
  200. package/lib/info/utils/useInfoRequest.js +0 -85
@@ -1,8 +1,7 @@
1
- var _excluded = ["title", "description", "icon", "iconColor", "iconBackgroundType", "iconBackgroundColor", "goback", "operation", "extra", "image", "loading", "breadcrumb", "tags", "data", "info", "children", "className", "style"];
2
-
3
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
-
5
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
1
+ var _excluded = ["text", "children"],
2
+ _excluded2 = ["text", "children", "closable"],
3
+ _excluded3 = ["color", "title", "num", "className"],
4
+ _excluded4 = ["title", "description", "icon", "iconColor", "iconBackgroundType", "iconBackgroundColor", "goback", "operation", "extra", "image", "loading", "breadcrumb", "tags", "data", "info", "children", "className", "style"];
6
5
 
7
6
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
8
7
 
@@ -10,14 +9,18 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
10
9
 
11
10
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
12
11
 
12
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
13
+
14
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
15
+
13
16
  import React from 'react';
14
17
  import { useHistory } from 'react-router-dom';
15
18
  import classnames from 'classnames';
16
19
  import TeamixIcon from '@teamix/icon';
17
20
  import { Breadcrumb, Tag } from '@alicloudfe/components';
18
21
  import { baseClass } from '@teamix/utils';
19
- import { ActionGroup } from '../actions';
20
- import { BaseSkeleton } from '../skeleton';
22
+ import { ProActionGroup } from '../actions';
23
+ import { ProSkeletonRaw } from '../skeleton';
21
24
  import ProInfo from '../info';
22
25
  import './index.scss';
23
26
  var cls = baseClass('teamix-pro-page-header');
@@ -25,10 +28,13 @@ var cls = baseClass('teamix-pro-page-header');
25
28
  var renderNav = function renderNav(breadcrumbs) {
26
29
  if (breadcrumbs && breadcrumbs.length) {
27
30
  return /*#__PURE__*/React.createElement(Breadcrumb, null, breadcrumbs.map(function (b, i) {
28
- return /*#__PURE__*/React.createElement(Breadcrumb.Item, {
29
- key: i,
30
- link: b.link
31
- }, b.text);
31
+ var text = b.text,
32
+ children = b.children,
33
+ others = _objectWithoutProperties(b, _excluded);
34
+
35
+ return /*#__PURE__*/React.createElement(Breadcrumb.Item, _objectSpread({
36
+ key: i
37
+ }, others), text || children);
32
38
  }));
33
39
  }
34
40
 
@@ -50,7 +56,7 @@ var renderActionGroup = function renderActionGroup(group, defaultProps) {
50
56
  type: buttonType
51
57
  }, item);
52
58
  });
53
- return /*#__PURE__*/React.createElement(ActionGroup, _objectSpread(_objectSpread(_objectSpread({}, defaultProps), actionGroup), {}, {
59
+ return /*#__PURE__*/React.createElement(ProActionGroup, _objectSpread(_objectSpread(_objectSpread({}, defaultProps), actionGroup), {}, {
54
60
  actions: actions
55
61
  }));
56
62
  }
@@ -66,15 +72,29 @@ var renderTags = function renderTags(tags) {
66
72
  return /*#__PURE__*/React.createElement(Tag.Group, {
67
73
  className: cls('tags')
68
74
  }, tags.map(function (tag, i) {
69
- return /*#__PURE__*/React.createElement(Tag, {
75
+ // @ts-ignore
76
+ var text = tag.text,
77
+ children = tag.children,
78
+ closable = tag.closable,
79
+ others = _objectWithoutProperties(tag, _excluded2);
80
+
81
+ if (closable) {
82
+ return /*#__PURE__*/React.createElement(Tag.Closeable, _objectSpread({
83
+ key: i,
84
+ size: "large",
85
+ style: {
86
+ marginBottom: 0
87
+ }
88
+ }, others), text || children);
89
+ }
90
+
91
+ return /*#__PURE__*/React.createElement(Tag, _objectSpread({
70
92
  key: i,
71
93
  size: "large",
72
- type: tag.type,
73
- color: tag.color,
74
94
  style: {
75
95
  marginBottom: 0
76
96
  }
77
- }, tag.text);
97
+ }, others), text || children);
78
98
  }));
79
99
  };
80
100
 
@@ -111,26 +131,30 @@ var renderData = function renderData(data) {
111
131
  }
112
132
 
113
133
  return /*#__PURE__*/React.createElement(React.Fragment, null, data.map(function (item, i) {
114
- var _getColorAndStyle = getColorAndStyle(item.color),
134
+ var color = item.color,
135
+ title = item.title,
136
+ num = item.num,
137
+ customClassName = item.className,
138
+ others = _objectWithoutProperties(item, _excluded3);
139
+
140
+ var _getColorAndStyle = getColorAndStyle(color),
115
141
  className = _getColorAndStyle.className,
116
142
  style = _getColorAndStyle.style;
117
143
 
118
- return /*#__PURE__*/React.createElement("div", {
144
+ return /*#__PURE__*/React.createElement("div", _objectSpread({
119
145
  key: i,
120
- className: cls('data-item')
121
- }, /*#__PURE__*/React.createElement("div", {
146
+ className: classnames(cls('data-item'), customClassName)
147
+ }, others), /*#__PURE__*/React.createElement("div", {
122
148
  className: cls('data-item-title')
123
- }, item.title), /*#__PURE__*/React.createElement("div", {
149
+ }, title), /*#__PURE__*/React.createElement("div", {
124
150
  className: classnames(cls('data-item-num'), className),
125
151
  style: style
126
- }, item.num));
152
+ }, num));
127
153
  }));
128
154
  };
129
155
 
130
156
  var renderInfo = function renderInfo(info) {
131
- // @ts-ignore
132
157
  if (info === null || info === void 0 ? void 0 : info.columns) {
133
- // @ts-ignore
134
158
  return /*#__PURE__*/React.createElement(ProInfo, _objectSpread({
135
159
  type: "header"
136
160
  }, info));
@@ -139,7 +163,7 @@ var renderInfo = function renderInfo(info) {
139
163
  return info;
140
164
  };
141
165
 
142
- var PageHeader = function PageHeader(props) {
166
+ var ProPageHeader = function ProPageHeader(props) {
143
167
  var title = props.title,
144
168
  description = props.description,
145
169
  icon = props.icon,
@@ -159,7 +183,7 @@ var PageHeader = function PageHeader(props) {
159
183
  children = props.children,
160
184
  className = props.className,
161
185
  style = props.style,
162
- others = _objectWithoutProperties(props, _excluded);
186
+ others = _objectWithoutProperties(props, _excluded4);
163
187
 
164
188
  var history = useHistory();
165
189
  var backgroundImage = image ? "url('".concat(image, "')") : undefined;
@@ -209,7 +233,7 @@ var PageHeader = function PageHeader(props) {
209
233
  className: cls('section')
210
234
  }, /*#__PURE__*/React.createElement("nav", {
211
235
  className: cls('nav')
212
- }, loading && /*#__PURE__*/React.createElement(BaseSkeleton.Header.Nav, null), !loading && renderNav(breadcrumb)), /*#__PURE__*/React.createElement("section", {
236
+ }, loading && /*#__PURE__*/React.createElement(ProSkeletonRaw.Header.Nav, null), !loading && renderNav(breadcrumb)), /*#__PURE__*/React.createElement("section", {
213
237
  className: cls('extra')
214
238
  }, !loading && renderActionGroup(extra, {
215
239
  type: 'text',
@@ -222,17 +246,17 @@ var PageHeader = function PageHeader(props) {
222
246
  className: cls('left')
223
247
  }, /*#__PURE__*/React.createElement("section", {
224
248
  className: cls('title')
225
- }, loading && /*#__PURE__*/React.createElement(BaseSkeleton.Header.Title, null), !loading && renderTitle()), description !== undefined && /*#__PURE__*/React.createElement("section", {
249
+ }, loading && /*#__PURE__*/React.createElement(ProSkeletonRaw.Header.Title, null), !loading && renderTitle()), description !== undefined && /*#__PURE__*/React.createElement("section", {
226
250
  className: cls('description')
227
- }, loading && /*#__PURE__*/React.createElement(BaseSkeleton.Header.Description, null), !loading && /*#__PURE__*/React.createElement(React.Fragment, null, description))), /*#__PURE__*/React.createElement("section", {
251
+ }, loading && /*#__PURE__*/React.createElement(ProSkeletonRaw.Header.Description, null), !loading && /*#__PURE__*/React.createElement(React.Fragment, null, description))), /*#__PURE__*/React.createElement("section", {
228
252
  className: cls('right')
229
253
  }, data && !loading && /*#__PURE__*/React.createElement("section", {
230
254
  className: cls('data')
231
255
  }, renderData(data)), /*#__PURE__*/React.createElement("section", {
232
256
  className: cls('operation')
233
- }, !loading && renderActionGroup(operation)))), info && !loading && /*#__PURE__*/React.createElement("section", {
257
+ }, !loading && renderActionGroup(operation)))), info && /*#__PURE__*/React.createElement("section", {
234
258
  className: classnames(cls('section'), cls('info'))
235
- }, renderInfo(info)), children);
259
+ }, !loading && renderInfo(info), loading && /*#__PURE__*/React.createElement(ProSkeletonRaw.Info.Header, null)), children);
236
260
  };
237
261
 
238
- export default PageHeader;
262
+ export default ProPageHeader;
@@ -32,6 +32,7 @@ $prefix: 'teamix-pro-page-header';
32
32
  .#{$prefix}-info {
33
33
  padding-top: var(--s-2, 8px);
34
34
  margin-bottom: 0;
35
+ flex-direction: column;
35
36
  }
36
37
 
37
38
  .#{$prefix}-title {
@@ -62,7 +63,7 @@ $prefix: 'teamix-pro-page-header';
62
63
 
63
64
  .#{$prefix}-description {
64
65
  margin: var(--s-2, 8px) 0;
65
- color: var(--color-text1-8, #848484);
66
+ color: var(--color-text1-2, #5a5a5a);
66
67
  }
67
68
 
68
69
  .#{$prefix}-data {
@@ -0,0 +1,2 @@
1
+ declare const _default: () => JSX.Element;
2
+ export default _default;
@@ -0,0 +1,11 @@
1
+ /** ProTable 空状态 */
2
+ import React from 'react';
3
+ import Result from '@teamix/result';
4
+ import { getMessage } from '@teamix/utils';
5
+ export default (function () {
6
+ return /*#__PURE__*/React.createElement(Result, {
7
+ theme: "hybridcloud-container",
8
+ img: "noData",
9
+ title: getMessage('noData')
10
+ });
11
+ });
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import './index.scss';
3
- import { ProColumnProps, ProTableActionType } from '../../typing';
3
+ import { ProTableColumnProps, ProTableActionType } from '../../typing';
4
4
  declare type ProTableFilterProps = {
5
- column: ProColumnProps;
5
+ column: ProTableColumnProps;
6
6
  actionRef: React.MutableRefObject<ProTableActionType | undefined>;
7
7
  };
8
8
  declare const Filter: React.FC<ProTableFilterProps>;
@@ -35,7 +35,9 @@ var RadioItem = Menu.RadioItem;
35
35
 
36
36
  var Filter = function Filter(props) {
37
37
  var column = props.column,
38
- actionRef = props.actionRef; // 选中过滤项
38
+ actionRef = props.actionRef;
39
+ var _column$filtersWidth = column.filtersWidth,
40
+ filtersWidth = _column$filtersWidth === void 0 ? 130 : _column$filtersWidth; // 选中过滤项
39
41
 
40
42
  var _useState = useState([]),
41
43
  _useState2 = _slicedToArray(_useState, 2),
@@ -154,7 +156,10 @@ var Filter = function Filter(props) {
154
156
  return setVisible(false);
155
157
  }
156
158
  }, /*#__PURE__*/React.createElement("div", {
157
- className: cls()
159
+ className: cls(),
160
+ style: {
161
+ width: filtersWidth
162
+ }
158
163
  }, /*#__PURE__*/React.createElement(Menu, null, renderSelect(), /*#__PURE__*/React.createElement("div", {
159
164
  className: cls({
160
165
  'btn-box': true
@@ -166,7 +171,7 @@ var Filter = function Filter(props) {
166
171
  btn: true
167
172
  }),
168
173
  onClick: function onClick() {
169
- var _actionRef$current2, _actionRef$current2$f, _actionRef$current$ge5, _actionRef$current3, _actionRef$current3$g, _actionRef$current3$g2, _actionRef$current4, _actionRef$current4$r, _actionRef$current5, _actionRef$current5$s;
174
+ var _actionRef$current2, _actionRef$current2$f, _actionRef$current$ge5, _actionRef$current3, _actionRef$current3$g, _actionRef$current3$g2, _actionRef$current4, _actionRef$current5, _actionRef$current5$s, _actionRef$current6, _actionRef$current6$r, _actionRef$current7, _actionRef$current7$r;
170
175
 
171
176
  (_actionRef$current2 = actionRef.current) === null || _actionRef$current2 === void 0 ? void 0 : (_actionRef$current2$f = _actionRef$current2.filterDataSource) === null || _actionRef$current2$f === void 0 ? void 0 : _actionRef$current2$f.call(_actionRef$current2, column.dataIndex); // 先获取此列的param
172
177
 
@@ -194,14 +199,22 @@ var Filter = function Filter(props) {
194
199
  return null;
195
200
  })), [[column.dataIndex, param]]).filter(function (item) {
196
201
  return item && (item === null || item === void 0 ? void 0 : item[1]);
197
- })); // 先发送请求。因为这会置空组件的列筛选状态
202
+ }));
203
+ var targetPageKey = 'currentPage';
204
+ var pageInfo = (_actionRef$current4 = actionRef.current) === null || _actionRef$current4 === void 0 ? void 0 : _actionRef$current4.pageInfo;
205
+
206
+ if (pageInfo && (pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.targetPageKey)) {
207
+ targetPageKey = pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.targetPageKey;
208
+ } // 再设置所有的列筛选状态
198
209
 
199
- (_actionRef$current4 = actionRef.current) === null || _actionRef$current4 === void 0 ? void 0 : (_actionRef$current4$r = _actionRef$current4.request) === null || _actionRef$current4$r === void 0 ? void 0 : _actionRef$current4$r.call(_actionRef$current4, _objectSpread({}, params)); // 再设置所有的列筛选状态
200
210
 
201
211
  (_actionRef$current5 = actionRef.current) === null || _actionRef$current5 === void 0 ? void 0 : (_actionRef$current5$s = _actionRef$current5.setFilterRules) === null || _actionRef$current5$s === void 0 ? void 0 : _actionRef$current5$s.call(_actionRef$current5, _objectSpread(_objectSpread({}, rules), {}, _defineProperty({}, column.dataIndex, {
202
212
  rules: selected,
203
213
  params: param
204
- })));
214
+ }))); // 发送请求
215
+
216
+ (_actionRef$current6 = actionRef.current) === null || _actionRef$current6 === void 0 ? void 0 : (_actionRef$current6$r = _actionRef$current6.request) === null || _actionRef$current6$r === void 0 ? void 0 : _actionRef$current6$r.call(_actionRef$current6, _objectSpread(_objectSpread({}, params), {}, _defineProperty({}, targetPageKey, 1)));
217
+ (_actionRef$current7 = actionRef.current) === null || _actionRef$current7 === void 0 ? void 0 : (_actionRef$current7$r = _actionRef$current7.resetPage) === null || _actionRef$current7$r === void 0 ? void 0 : _actionRef$current7$r.call(_actionRef$current7);
205
218
  setVisible(false);
206
219
  }
207
220
  }, "\u786E\u5B9A"), /*#__PURE__*/React.createElement(Button, {
@@ -211,15 +224,15 @@ var Filter = function Filter(props) {
211
224
  btn: true
212
225
  }),
213
226
  onClick: function onClick() {
214
- var _actionRef$current$ge6, _actionRef$current6, _actionRef$current6$g, _actionRef$current6$g2, _actionRef$current7, _actionRef$current7$s, _actionRef$current8, _actionRef$current8$f;
227
+ var _actionRef$current$ge6, _actionRef$current8, _actionRef$current8$g, _actionRef$current8$g2, _actionRef$current9, _actionRef$current9$s, _actionRef$current10, _actionRef$current10$;
215
228
 
216
229
  setSelected([]);
217
- var rules = (_actionRef$current$ge6 = (_actionRef$current6 = actionRef.current) === null || _actionRef$current6 === void 0 ? void 0 : (_actionRef$current6$g = _actionRef$current6.getState) === null || _actionRef$current6$g === void 0 ? void 0 : (_actionRef$current6$g2 = _actionRef$current6$g.call(_actionRef$current6)) === null || _actionRef$current6$g2 === void 0 ? void 0 : _actionRef$current6$g2.filterRules) !== null && _actionRef$current$ge6 !== void 0 ? _actionRef$current$ge6 : {};
218
- (_actionRef$current7 = actionRef.current) === null || _actionRef$current7 === void 0 ? void 0 : (_actionRef$current7$s = _actionRef$current7.setFilterRules) === null || _actionRef$current7$s === void 0 ? void 0 : _actionRef$current7$s.call(_actionRef$current7, _objectSpread(_objectSpread({}, rules), {}, _defineProperty({}, column.dataIndex, {
230
+ var rules = (_actionRef$current$ge6 = (_actionRef$current8 = actionRef.current) === null || _actionRef$current8 === void 0 ? void 0 : (_actionRef$current8$g = _actionRef$current8.getState) === null || _actionRef$current8$g === void 0 ? void 0 : (_actionRef$current8$g2 = _actionRef$current8$g.call(_actionRef$current8)) === null || _actionRef$current8$g2 === void 0 ? void 0 : _actionRef$current8$g2.filterRules) !== null && _actionRef$current$ge6 !== void 0 ? _actionRef$current$ge6 : {};
231
+ (_actionRef$current9 = actionRef.current) === null || _actionRef$current9 === void 0 ? void 0 : (_actionRef$current9$s = _actionRef$current9.setFilterRules) === null || _actionRef$current9$s === void 0 ? void 0 : _actionRef$current9$s.call(_actionRef$current9, _objectSpread(_objectSpread({}, rules), {}, _defineProperty({}, column.dataIndex, {
219
232
  rules: [],
220
233
  params: ''
221
234
  })));
222
- (_actionRef$current8 = actionRef.current) === null || _actionRef$current8 === void 0 ? void 0 : (_actionRef$current8$f = _actionRef$current8.filterDataSource) === null || _actionRef$current8$f === void 0 ? void 0 : _actionRef$current8$f.call(_actionRef$current8, column.dataIndex); // setVisible(!visible);
235
+ (_actionRef$current10 = actionRef.current) === null || _actionRef$current10 === void 0 ? void 0 : (_actionRef$current10$ = _actionRef$current10.filterDataSource) === null || _actionRef$current10$ === void 0 ? void 0 : _actionRef$current10$.call(_actionRef$current10, column.dataIndex); // setVisible(!visible);
223
236
  }
224
237
  }, "\u91CD\u7F6E")))));
225
238
  };
@@ -1,5 +1,5 @@
1
1
  .teamix-pro-table-toolbar-filter {
2
- width: 130px;
2
+ min-width: 130px;
3
3
  max-height: 350px;
4
4
  overflow-y: auto;
5
5
  box-shadow: var(--popup-local-shadow, 0px 6px 24px 0px rgba(0, 0, 0, 0.1));
@@ -28,7 +28,7 @@ import React, { useEffect, useState } from 'react';
28
28
  import { Header, baseClass } from '@teamix/utils';
29
29
  import { Button, Badge } from '@alicloudfe/components';
30
30
  import TeamixIcon from '@teamix/icon';
31
- import { ActionGroup } from '../../../actions';
31
+ import { ProActionGroup } from '../../../actions';
32
32
  import { SimpleFilter, AdvancedFilter, formilyReactive } from '../../../form';
33
33
  import { getMessage } from '@teamix/utils';
34
34
  import ToolBar from '../ToolBar';
@@ -77,7 +77,7 @@ var Layout = function Layout(props) {
77
77
  };
78
78
  return /*#__PURE__*/React.createElement("div", {
79
79
  className: cls('main-action')
80
- }, /*#__PURE__*/React.createElement(ActionGroup, _objectSpread(_objectSpread({}, mainAction), {}, {
80
+ }, /*#__PURE__*/React.createElement(ProActionGroup, _objectSpread(_objectSpread({}, mainAction), {}, {
81
81
  context: _objectSpread(_objectSpread({}, defaultContext), mainAction.context)
82
82
  })));
83
83
  } else return mainAction;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- import { IActionButton } from '../../../actions';
2
+ import { ProActionButtonProps } from '../../../actions';
3
3
  import { ProTableActionType, innerRowSelectionType, rowSelectionType } from '../../typing';
4
4
  interface QuickActionProps {
5
- quickAction?: IActionButton | React.ReactNode | React.ReactNode[];
5
+ quickAction?: ProActionButtonProps | React.ReactNode | React.ReactNode[];
6
6
  actionRef: React.MutableRefObject<ProTableActionType | undefined>;
7
7
  rowSelection?: innerRowSelectionType | rowSelectionType;
8
8
  }
@@ -8,12 +8,12 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
8
8
 
9
9
  import React from 'react';
10
10
  import { Box } from '@alicloudfe/components';
11
- import ActionButton from '../../../actions';
11
+ import ProActionButton from '../../../actions';
12
12
 
13
13
  var QuickAction = function QuickAction(props) {
14
14
  var quickAction = props.quickAction,
15
15
  actionRef = props.actionRef,
16
- rowSelection = props.rowSelection; // 如果传对象的话,默认为主要文字类型的 ActionButton
16
+ rowSelection = props.rowSelection; // 如果传对象的话,默认为主要文字类型的 ProActionButton
17
17
 
18
18
  if (_typeof(quickAction) === 'object') {
19
19
  // 默认 context
@@ -23,7 +23,7 @@ var QuickAction = function QuickAction(props) {
23
23
  };
24
24
  return /*#__PURE__*/React.createElement("div", {
25
25
  className: "teamix-pro-table-layout-quick-action"
26
- }, /*#__PURE__*/React.createElement(ActionButton, _objectSpread(_objectSpread({
26
+ }, /*#__PURE__*/React.createElement(ProActionButton, _objectSpread(_objectSpread({
27
27
  type: "primary",
28
28
  text: true
29
29
  }, quickAction), {}, {
@@ -44,6 +44,7 @@ var FullScreen = function FullScreen(props) {
44
44
  canCloseByOutSideClick: false,
45
45
  align: "cc cc",
46
46
  cache: true,
47
+ v2: false,
47
48
  disableScroll: true,
48
49
  shouldUpdatePosition: true,
49
50
  animation: {
package/es/table/index.js CHANGED
@@ -36,7 +36,7 @@ import React, { useState, useEffect, useRef, useMemo } from 'react';
36
36
  import { Table, Pagination, Message, Checkbox } from '@alicloudfe/components';
37
37
  import genProColumnToColumn from './utils/genProColumnToColumn';
38
38
  import { baseClass, useRequest, request as utilResquest, getDeepValue, getMessage, pickProps } from '@teamix/utils';
39
- import { BaseSkeleton as Skeleton } from '../skeleton';
39
+ import { ProSkeletonRaw as Skeleton } from '../skeleton';
40
40
  import './index.scss';
41
41
  import Layout from './components/Layout';
42
42
  import { useActionType } from './utils';
@@ -44,8 +44,9 @@ import getTableProps from './utils/getTableProps';
44
44
  import getTableSortIcons from './utils/getTableSortIcons';
45
45
  import useTableSelection from './utils/useTableSelection';
46
46
  import FullScreen from './components/ToolBar/Fullscreen';
47
+ import EmptyContent from './components/EmptyContent';
47
48
  import { createForm, formilyReactive } from '../form';
48
- import { ActionGroup } from '../actions';
49
+ import { ProActionGroup } from '../actions';
49
50
  import debounce from 'lodash.debounce';
50
51
  import classNames from 'classnames';
51
52
  export * from './typing';
@@ -193,7 +194,7 @@ var ProTable = function ProTable(props) {
193
194
  setShowLoading = _useState20[1]; // 存储定时器 id
194
195
 
195
196
 
196
- var autoRefreshTimerRef = useRef(); // 获取header高度,用作全屏吸底吸顶高度计算
197
+ var autoRefreshTimerRef = useRef(); // 获取header高度,用作全屏吸底吸底高度计算
197
198
 
198
199
  var getHeaderHeight = function getHeaderHeight() {
199
200
  var _tableDom$getElements, _tableDom$getElements2;
@@ -223,13 +224,35 @@ var ProTable = function ProTable(props) {
223
224
  var _useState23 = useState(false),
224
225
  _useState24 = _slicedToArray(_useState23, 2),
225
226
  fullscreenState = _useState24[0],
226
- setFullscreenState = _useState24[1];
227
+ setFullscreenState = _useState24[1]; // 整个内容区是否超过一屏。用于表格在非全屏模式下的吸底
228
+
229
+
230
+ var _useState25 = useState(false),
231
+ _useState26 = _slicedToArray(_useState25, 2),
232
+ footerSuctionState = _useState26[0],
233
+ setFooterSuctionState = _useState26[1];
227
234
  /** 筛选区域 form */
228
235
 
229
236
 
230
237
  var dataFilterForm = useMemo(function () {
231
238
  return createForm();
232
- }, []); // rowSelection 相关
239
+ }, []); // 获取内容区是否超出一屏(仅支持全家桶)
240
+
241
+ var getFooterSuctionState = function getFooterSuctionState() {
242
+ var containerDom = document.querySelector('.teamix-pro-page-container');
243
+
244
+ if (containerDom) {
245
+ var offsetHeight = containerDom.offsetHeight;
246
+ var scrollHeight = containerDom.scrollHeight;
247
+
248
+ if (offsetHeight < scrollHeight) {
249
+ setFooterSuctionState(true);
250
+ } else {
251
+ setFooterSuctionState(false);
252
+ }
253
+ }
254
+ }; // rowSelection 相关
255
+
233
256
 
234
257
  var rowSelectionHook = useTableSelection(_objectSpread(_objectSpread({}, propsRowSelection), {}, {
235
258
  // 当初始出现骨架屏的时候,不可选择
@@ -345,12 +368,19 @@ var ProTable = function ProTable(props) {
345
368
  return _request(params);
346
369
  },
347
370
  reset: function reset() {
348
- (propsDataFilter === null || propsDataFilter === void 0 ? void 0 : propsDataFilter.onReset) && (propsDataFilter === null || propsDataFilter === void 0 ? void 0 : propsDataFilter.onReset());
371
+ var _actionRef$current, _actionRef$current$se;
372
+
373
+ (propsDataFilter === null || propsDataFilter === void 0 ? void 0 : propsDataFilter.onReset) && (propsDataFilter === null || propsDataFilter === void 0 ? void 0 : propsDataFilter.onReset()); // 清空列过滤参数
374
+
375
+ (_actionRef$current = actionRef.current) === null || _actionRef$current === void 0 ? void 0 : (_actionRef$current$se = _actionRef$current.setFilterRules) === null || _actionRef$current$se === void 0 ? void 0 : _actionRef$current$se.call(_actionRef$current, {});
349
376
  dataFilterForm.reset();
350
377
  setCurrentPage(1);
351
378
 
352
379
  _request(_defineProperty({}, targetPageKey, 1));
353
380
  },
381
+ resetPage: function resetPage() {
382
+ setCurrentPage(1);
383
+ },
354
384
  clearRowSelection: function clearRowSelection() {
355
385
  rowSelectionHook.setSelectedRowKeys([]);
356
386
  rowSelectionHook.setSelectedRecords([]);
@@ -359,8 +389,11 @@ var ProTable = function ProTable(props) {
359
389
  pageInfo: {
360
390
  total: total,
361
391
  current: currentPage,
392
+ targetPageKey: targetPageKey,
393
+ targetPageSizeKey: targetPageSizeKey,
362
394
  pageSize: pageSize
363
395
  },
396
+ dataFilterForm: dataFilterForm,
364
397
  resetTableMaxBodyHeight: function resetTableMaxBodyHeight() {
365
398
  getHeaderHeight().then(function (height) {
366
399
  setHeaderHeight(height);
@@ -427,6 +460,11 @@ var ProTable = function ProTable(props) {
427
460
  });
428
461
  } else {
429
462
  onFormatResult(nextData);
463
+ } // 重新计算是否需要吸底
464
+
465
+
466
+ if (footerSuction) {
467
+ getFooterSuctionState();
430
468
  }
431
469
  },
432
470
  onError: function onError(error) {
@@ -436,12 +474,17 @@ var ProTable = function ProTable(props) {
436
474
  props.onError(error);
437
475
  } else {
438
476
  Message.error(error.toString());
477
+ } // 重新计算是否需要吸底
478
+
479
+
480
+ if (footerSuction) {
481
+ getFooterSuctionState();
439
482
  }
440
483
  }
441
484
  }); // 请求函数
442
485
 
443
486
  function _request(params, noLoading) {
444
- var _actionRef$current, _actionRef$current$se, _objectSpread2;
487
+ var _actionRef$current$ge, _actionRef$current2, _actionRef$current2$g, _objectSpread2;
445
488
 
446
489
  // 如果没有传 url 且没有 customRequest,直接返回
447
490
  if (!url && !customRequest) {
@@ -450,13 +493,15 @@ var ProTable = function ProTable(props) {
450
493
 
451
494
  var nextShowLoading = !noLoading;
452
495
  nextShowLoading !== showLoading && setShowLoading(nextShowLoading); // 请求前需要优先清空列过滤条件
496
+ // actionRef.current?.setFilterRules?.({});
453
497
 
454
- (_actionRef$current = actionRef.current) === null || _actionRef$current === void 0 ? void 0 : (_actionRef$current$se = _actionRef$current.setFilterRules) === null || _actionRef$current$se === void 0 ? void 0 : _actionRef$current$se.call(_actionRef$current, {});
455
498
  var sortParams = targetFormatSort(sort); // 筛选区请求参数
456
499
 
457
- var dataFilterParams = toJS(dataFilterForm.values); // 格式化后的请求参数
500
+ var dataFilterParams = toJS(dataFilterForm.values); // 列过滤请求参数
458
501
 
459
- var requestData = formatParams(_objectSpread(_objectSpread({}, !showPagination ? _objectSpread(_objectSpread(_objectSpread({}, dataFilterParams), propsParams), sortParams) : _objectSpread(_objectSpread(_objectSpread((_objectSpread2 = {}, _defineProperty(_objectSpread2, targetPageKey, currentPage), _defineProperty(_objectSpread2, targetPageSizeKey, pageSize), _objectSpread2), dataFilterParams), propsParams), sortParams)), params));
502
+ var columnsFilterParams = (_actionRef$current$ge = (_actionRef$current2 = actionRef.current) === null || _actionRef$current2 === void 0 ? void 0 : (_actionRef$current2$g = _actionRef$current2.getFilterRules) === null || _actionRef$current2$g === void 0 ? void 0 : _actionRef$current2$g.call(_actionRef$current2)) !== null && _actionRef$current$ge !== void 0 ? _actionRef$current$ge : {}; // 格式化后的请求参数
503
+
504
+ var requestData = formatParams(_objectSpread(_objectSpread({}, !showPagination ? _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, dataFilterParams), propsParams), sortParams), columnsFilterParams) : _objectSpread(_objectSpread(_objectSpread(_objectSpread((_objectSpread2 = {}, _defineProperty(_objectSpread2, targetPageKey, currentPage), _defineProperty(_objectSpread2, targetPageSizeKey, pageSize), _objectSpread2), dataFilterParams), propsParams), sortParams), columnsFilterParams)), params));
460
505
 
461
506
  if (requestData) {
462
507
  if (autoRefreshTimerRef.current) {
@@ -503,6 +548,15 @@ var ProTable = function ProTable(props) {
503
548
  }
504
549
 
505
550
  useEffect(function () {
551
+ // 监听 浏览器变化 更吸底状态
552
+ if (footerSuction) {
553
+ getFooterSuctionState();
554
+
555
+ window.onresize = function () {
556
+ getFooterSuctionState();
557
+ };
558
+ }
559
+
506
560
  if (requestWhenMount) {
507
561
  _request();
508
562
  }
@@ -511,6 +565,10 @@ var ProTable = function ProTable(props) {
511
565
  if (autoRefreshTimerRef.current) {
512
566
  clearTimeout(autoRefreshTimerRef.current);
513
567
  }
568
+
569
+ if (window.onresize) {
570
+ window.onresize = null;
571
+ }
514
572
  };
515
573
  }, []);
516
574
 
@@ -526,9 +584,12 @@ var ProTable = function ProTable(props) {
526
584
  var dataFilter = _objectSpread(_objectSpread({}, propsDataFilter), {}, {
527
585
  onFilter: debounce(function () {
528
586
  (propsDataFilter === null || propsDataFilter === void 0 ? void 0 : propsDataFilter.onFilter) && (propsDataFilter === null || propsDataFilter === void 0 ? void 0 : propsDataFilter.onFilter(_objectSpread({}, toJS(dataFilterForm.values))));
529
- setCurrentPage(1);
530
587
 
531
- _request(_defineProperty({}, targetPageKey, 1));
588
+ if (dataFilterForm.validate()) {
589
+ setCurrentPage(1);
590
+
591
+ _request(_defineProperty({}, targetPageKey, 1));
592
+ }
532
593
  }, filterDebounce),
533
594
  onReset: function onReset() {
534
595
  (propsDataFilter === null || propsDataFilter === void 0 ? void 0 : propsDataFilter.onReset) && (propsDataFilter === null || propsDataFilter === void 0 ? void 0 : propsDataFilter.onReset());
@@ -574,6 +635,7 @@ var ProTable = function ProTable(props) {
574
635
  sort: sort,
575
636
  primaryKey: primaryKey,
576
637
  rowSelection: rowSelection,
638
+ emptyContent: /*#__PURE__*/React.createElement(EmptyContent, null),
577
639
  sortIcons: getTableSortIcons(),
578
640
  fixedHeader: fullscreenState,
579
641
  // 102px 为 底部 50px + 空格10px + 顶部 24px padding
@@ -609,7 +671,7 @@ var ProTable = function ProTable(props) {
609
671
 
610
672
  return /*#__PURE__*/React.createElement("div", {
611
673
  className: cls('footer-action')
612
- }, /*#__PURE__*/React.createElement(ActionGroup, _objectSpread(_objectSpread({}, targetFooterActions), {}, {
674
+ }, /*#__PURE__*/React.createElement(ProActionGroup, _objectSpread(_objectSpread({}, targetFooterActions), {}, {
613
675
  context: _objectSpread(_objectSpread({}, defaultContext), targetFooterActions === null || targetFooterActions === void 0 ? void 0 : targetFooterActions.context)
614
676
  })));
615
677
  } else return footerAction;
@@ -691,7 +753,7 @@ var ProTable = function ProTable(props) {
691
753
  className: cls({
692
754
  '': true,
693
755
  fullscreen: fullscreenState,
694
- 'footer-suction': footerSuction
756
+ 'footer-suction': footerSuctionState && footerSuction
695
757
  }),
696
758
  ref: tableRef
697
759
  }, renderTable(), renderFooter()));
@@ -104,3 +104,7 @@ $fullscreenPadding: 24px;
104
104
  z-index: 2;
105
105
  }
106
106
  }
107
+
108
+ .next-table-empty {
109
+ --table-empty-padding: 48px;
110
+ }