@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.
- package/README.md +14 -10
- package/dist/pro.css +1 -1
- package/dist/pro.js +2555 -3791
- package/dist/pro.min.css +1 -1
- package/dist/pro.min.js +1 -1
- package/es/actions/dialog-form.d.ts +5 -5
- package/es/actions/dialog-form.js +1 -5
- package/es/actions/dialog.d.ts +12 -0
- package/es/actions/dialog.js +104 -27
- package/es/actions/index.d.ts +54 -47
- package/es/actions/index.js +28 -22
- package/es/actions/index.scss +48 -2
- package/es/actions/link.js +4 -2
- package/es/actions/request.d.ts +1 -1
- package/es/actions/request.js +2 -2
- package/es/card/index.d.ts +17 -5
- package/es/card/index.js +16 -11
- package/es/form/Components/ProField/index.d.ts +1 -161
- package/es/form/Components/ProField/index.js +34 -40
- package/es/form/Filter/index.js +2 -2
- package/es/form/ProForm/index.d.ts +2 -2
- package/es/form/ProForm/index.js +1 -6
- package/es/form/ProForm/index.scss +19 -1
- package/es/form/ProForm/useFieldRequest.d.ts +5 -0
- package/es/form/ProForm/useFieldRequest.js +26 -0
- package/es/form/SchemaForm/adapterDecorator.js +2 -2
- package/es/form/SchemaForm/index.d.ts +2 -2
- package/es/form/SchemaForm/index.js +12 -21
- package/es/form/SchemaForm/initializeArrayCards.d.ts +2 -2
- package/es/form/SchemaForm/initializeArrayCollapse.d.ts +2 -2
- package/es/form/SchemaForm/initializeArrayItems.d.ts +2 -2
- package/es/form/SchemaForm/initializeArrayTable.d.ts +2 -2
- package/es/form/SchemaForm/initializeDataSource.d.ts +2 -2
- package/es/form/SchemaForm/initializeDataSource.js +2 -2
- package/es/form/SchemaForm/initializeFormButton.d.ts +2 -2
- package/es/form/SchemaForm/initializeFormCollapse.d.ts +2 -2
- package/es/form/SchemaForm/initializeFormGroup.d.ts +2 -2
- package/es/form/SchemaForm/initializeFormStep.d.ts +3 -3
- package/es/form/SchemaForm/initializeFormTab.d.ts +2 -2
- package/es/form/SchemaForm/initializeRequest.d.ts +2 -2
- package/es/form/SchemaForm/initializeRequest.js +2 -2
- package/es/form/SchemaForm/initializeRules.js +44 -16
- package/es/form/SchemaForm/reactions.d.ts +5 -5
- package/es/form/SchemaForm/reactions.js +20 -18
- package/es/form/fieldTypeMap.d.ts +4 -0
- package/es/form/fieldTypeMap.js +41 -0
- package/es/form/index.d.ts +92 -4
- package/es/form/index.js +18 -5
- package/es/form/schemaNameMap.js +3 -0
- package/es/form/typing.d.ts +49 -26
- package/es/form/utils.d.ts +3 -1
- package/es/form/utils.js +38 -1
- package/es/form/warning.d.ts +2 -2
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/info/components/InfoGroup/index.js +73 -15
- package/es/info/components/InfoGroup/index.scss +45 -3
- package/es/info/components/InfoValueItem/index.js +9 -4
- package/es/info/components/InfoValueItem/index.scss +5 -1
- package/es/info/components/ProInfoItem/index.js +3 -3
- package/es/info/components/ProInfoItem/index.scss +1 -0
- package/es/info/components/baseInfo/index.d.ts +2 -3
- package/es/info/components/baseInfo/index.js +29 -10
- package/es/info/components/headerInfo/index.d.ts +2 -3
- package/es/info/components/tableInfo/index.d.ts +2 -3
- package/es/info/components/tableInfo/index.js +2 -2
- package/es/info/index.js +75 -51
- package/es/info/typing.d.ts +54 -36
- package/es/info/utils/index.d.ts +2 -2
- package/es/info/utils/utils.d.ts +1 -1
- package/es/nocode/pages/renderer.js +2 -2
- package/es/page-header/index.d.ts +42 -25
- package/es/page-header/index.js +56 -32
- package/es/page-header/index.scss +2 -1
- package/es/table/components/EmptyContent/index.d.ts +2 -0
- package/es/table/components/EmptyContent/index.js +11 -0
- package/es/table/components/Filter/index.d.ts +2 -2
- package/es/table/components/Filter/index.js +23 -10
- package/es/table/components/Filter/index.scss +1 -1
- package/es/table/components/Layout/index.js +2 -2
- package/es/table/components/QuickAction/index.d.ts +2 -2
- package/es/table/components/QuickAction/index.js +3 -3
- package/es/table/components/ToolBar/Fullscreen.js +1 -0
- package/es/table/index.js +76 -14
- package/es/table/index.scss +4 -0
- package/es/table/typing.d.ts +29 -14
- package/es/table/utils/columnRender.d.ts +3 -3
- package/es/table/utils/columnRender.js +2 -2
- package/es/table/utils/genProColumnToColumn.d.ts +2 -2
- package/es/table/utils/genProColumnToColumn.js +1 -1
- package/es/table/utils/index.js +33 -11
- package/es/templates/List/index.d.ts +2 -2
- package/es/utils/message.d.ts +3 -0
- package/es/utils/message.js +19 -0
- package/lib/actions/dialog-form.d.ts +5 -5
- package/lib/actions/dialog-form.js +1 -5
- package/lib/actions/dialog.d.ts +12 -0
- package/lib/actions/dialog.js +108 -26
- package/lib/actions/index.d.ts +54 -47
- package/lib/actions/index.js +37 -30
- package/lib/actions/index.scss +48 -2
- package/lib/actions/link.js +5 -2
- package/lib/actions/request.d.ts +1 -1
- package/lib/actions/request.js +2 -2
- package/lib/card/index.d.ts +17 -5
- package/lib/card/index.js +18 -12
- package/lib/form/Components/ProField/index.d.ts +1 -161
- package/lib/form/Components/ProField/index.js +32 -38
- package/lib/form/Filter/index.js +2 -2
- package/lib/form/ProForm/index.d.ts +2 -2
- package/lib/form/ProForm/index.js +1 -7
- package/lib/form/ProForm/index.scss +19 -1
- package/lib/form/ProForm/useFieldRequest.d.ts +5 -0
- package/lib/form/ProForm/useFieldRequest.js +37 -0
- package/lib/form/SchemaForm/adapterDecorator.js +4 -2
- package/lib/form/SchemaForm/index.d.ts +2 -2
- package/lib/form/SchemaForm/index.js +11 -22
- package/lib/form/SchemaForm/initializeArrayCards.d.ts +2 -2
- package/lib/form/SchemaForm/initializeArrayCollapse.d.ts +2 -2
- package/lib/form/SchemaForm/initializeArrayItems.d.ts +2 -2
- package/lib/form/SchemaForm/initializeArrayTable.d.ts +2 -2
- package/lib/form/SchemaForm/initializeDataSource.d.ts +2 -2
- package/lib/form/SchemaForm/initializeDataSource.js +2 -2
- package/lib/form/SchemaForm/initializeFormButton.d.ts +2 -2
- package/lib/form/SchemaForm/initializeFormCollapse.d.ts +2 -2
- package/lib/form/SchemaForm/initializeFormGroup.d.ts +2 -2
- package/lib/form/SchemaForm/initializeFormStep.d.ts +3 -3
- package/lib/form/SchemaForm/initializeFormTab.d.ts +2 -2
- package/lib/form/SchemaForm/initializeRequest.d.ts +2 -2
- package/lib/form/SchemaForm/initializeRequest.js +1 -1
- package/lib/form/SchemaForm/initializeRules.js +41 -13
- package/lib/form/SchemaForm/reactions.d.ts +5 -5
- package/lib/form/SchemaForm/reactions.js +22 -20
- package/lib/form/fieldTypeMap.d.ts +4 -0
- package/lib/form/fieldTypeMap.js +48 -0
- package/lib/form/index.d.ts +92 -4
- package/lib/form/index.js +17 -31
- package/lib/form/schemaNameMap.js +3 -0
- package/lib/form/typing.d.ts +49 -26
- package/lib/form/utils.d.ts +3 -1
- package/lib/form/utils.js +43 -1
- package/lib/form/warning.d.ts +2 -2
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/info/components/InfoGroup/index.js +76 -14
- package/lib/info/components/InfoGroup/index.scss +45 -3
- package/lib/info/components/InfoValueItem/index.js +8 -3
- package/lib/info/components/InfoValueItem/index.scss +5 -1
- package/lib/info/components/ProInfoItem/index.js +2 -2
- package/lib/info/components/ProInfoItem/index.scss +1 -0
- package/lib/info/components/baseInfo/index.d.ts +2 -3
- package/lib/info/components/baseInfo/index.js +29 -10
- package/lib/info/components/headerInfo/index.d.ts +2 -3
- package/lib/info/components/tableInfo/index.d.ts +2 -3
- package/lib/info/components/tableInfo/index.js +1 -1
- package/lib/info/index.js +73 -49
- package/lib/info/typing.d.ts +54 -36
- package/lib/info/utils/index.d.ts +2 -2
- package/lib/info/utils/utils.d.ts +1 -1
- package/lib/nocode/pages/renderer.js +1 -1
- package/lib/page-header/index.d.ts +42 -25
- package/lib/page-header/index.js +54 -30
- package/lib/page-header/index.scss +2 -1
- package/lib/table/components/EmptyContent/index.d.ts +2 -0
- package/lib/table/components/EmptyContent/index.js +25 -0
- package/lib/table/components/Filter/index.d.ts +2 -2
- package/lib/table/components/Filter/index.js +23 -10
- package/lib/table/components/Filter/index.scss +1 -1
- package/lib/table/components/Layout/index.js +1 -1
- package/lib/table/components/QuickAction/index.d.ts +2 -2
- package/lib/table/components/QuickAction/index.js +1 -1
- package/lib/table/components/ToolBar/Fullscreen.js +1 -0
- package/lib/table/index.js +77 -14
- package/lib/table/index.scss +4 -0
- package/lib/table/typing.d.ts +29 -14
- package/lib/table/utils/columnRender.d.ts +3 -3
- package/lib/table/utils/columnRender.js +1 -1
- package/lib/table/utils/genProColumnToColumn.d.ts +2 -2
- package/lib/table/utils/genProColumnToColumn.js +2 -2
- package/lib/table/utils/index.js +33 -11
- package/lib/templates/List/index.d.ts +2 -2
- package/lib/utils/message.d.ts +3 -0
- package/lib/utils/message.js +32 -0
- package/package.json +4 -4
- package/es/form/Components/Search/index.d.ts +0 -11
- package/es/form/Components/Search/index.js +0 -89
- package/es/form/SchemaForm/initializeArrayIcon.d.ts +0 -3
- package/es/form/SchemaForm/initializeArrayIcon.js +0 -62
- package/es/form/SchemaForm/initializeProField.d.ts +0 -5
- package/es/form/SchemaForm/initializeProField.js +0 -70
- package/es/info/utils/useInfoRequest.d.ts +0 -14
- package/es/info/utils/useInfoRequest.js +0 -76
- package/lib/form/Components/Search/index.d.ts +0 -11
- package/lib/form/Components/Search/index.js +0 -103
- package/lib/form/SchemaForm/initializeArrayIcon.d.ts +0 -3
- package/lib/form/SchemaForm/initializeArrayIcon.js +0 -73
- package/lib/form/SchemaForm/initializeProField.d.ts +0 -5
- package/lib/form/SchemaForm/initializeProField.js +0 -77
- package/lib/info/utils/useInfoRequest.d.ts +0 -14
- package/lib/info/utils/useInfoRequest.js +0 -85
package/lib/page-header/index.js
CHANGED
@@ -25,29 +25,35 @@ var _info = _interopRequireDefault(require("../info"));
|
|
25
25
|
|
26
26
|
require("./index.scss");
|
27
27
|
|
28
|
-
var _excluded = ["
|
28
|
+
var _excluded = ["text", "children"],
|
29
|
+
_excluded2 = ["text", "children", "closable"],
|
30
|
+
_excluded3 = ["color", "title", "num", "className"],
|
31
|
+
_excluded4 = ["title", "description", "icon", "iconColor", "iconBackgroundType", "iconBackgroundColor", "goback", "operation", "extra", "image", "loading", "breadcrumb", "tags", "data", "info", "children", "className", "style"];
|
29
32
|
|
30
33
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
31
34
|
|
32
|
-
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; }
|
33
|
-
|
34
|
-
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; }
|
35
|
-
|
36
35
|
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; }
|
37
36
|
|
38
37
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
39
38
|
|
40
39
|
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; }
|
41
40
|
|
41
|
+
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; }
|
42
|
+
|
43
|
+
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; }
|
44
|
+
|
42
45
|
var cls = (0, _utils.baseClass)('teamix-pro-page-header');
|
43
46
|
|
44
47
|
var renderNav = function renderNav(breadcrumbs) {
|
45
48
|
if (breadcrumbs && breadcrumbs.length) {
|
46
49
|
return /*#__PURE__*/_react.default.createElement(_components.Breadcrumb, null, breadcrumbs.map(function (b, i) {
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
50
|
+
var text = b.text,
|
51
|
+
children = b.children,
|
52
|
+
others = _objectWithoutProperties(b, _excluded);
|
53
|
+
|
54
|
+
return /*#__PURE__*/_react.default.createElement(_components.Breadcrumb.Item, _objectSpread({
|
55
|
+
key: i
|
56
|
+
}, others), text || children);
|
51
57
|
}));
|
52
58
|
}
|
53
59
|
|
@@ -69,7 +75,7 @@ var renderActionGroup = function renderActionGroup(group, defaultProps) {
|
|
69
75
|
type: buttonType
|
70
76
|
}, item);
|
71
77
|
});
|
72
|
-
return /*#__PURE__*/_react.default.createElement(_actions.
|
78
|
+
return /*#__PURE__*/_react.default.createElement(_actions.ProActionGroup, _objectSpread(_objectSpread(_objectSpread({}, defaultProps), actionGroup), {}, {
|
73
79
|
actions: actions
|
74
80
|
}));
|
75
81
|
}
|
@@ -85,15 +91,29 @@ var renderTags = function renderTags(tags) {
|
|
85
91
|
return /*#__PURE__*/_react.default.createElement(_components.Tag.Group, {
|
86
92
|
className: cls('tags')
|
87
93
|
}, tags.map(function (tag, i) {
|
88
|
-
|
94
|
+
// @ts-ignore
|
95
|
+
var text = tag.text,
|
96
|
+
children = tag.children,
|
97
|
+
closable = tag.closable,
|
98
|
+
others = _objectWithoutProperties(tag, _excluded2);
|
99
|
+
|
100
|
+
if (closable) {
|
101
|
+
return /*#__PURE__*/_react.default.createElement(_components.Tag.Closeable, _objectSpread({
|
102
|
+
key: i,
|
103
|
+
size: "large",
|
104
|
+
style: {
|
105
|
+
marginBottom: 0
|
106
|
+
}
|
107
|
+
}, others), text || children);
|
108
|
+
}
|
109
|
+
|
110
|
+
return /*#__PURE__*/_react.default.createElement(_components.Tag, _objectSpread({
|
89
111
|
key: i,
|
90
112
|
size: "large",
|
91
|
-
type: tag.type,
|
92
|
-
color: tag.color,
|
93
113
|
style: {
|
94
114
|
marginBottom: 0
|
95
115
|
}
|
96
|
-
},
|
116
|
+
}, others), text || children);
|
97
117
|
}));
|
98
118
|
};
|
99
119
|
|
@@ -130,26 +150,30 @@ var renderData = function renderData(data) {
|
|
130
150
|
}
|
131
151
|
|
132
152
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, data.map(function (item, i) {
|
133
|
-
var
|
153
|
+
var color = item.color,
|
154
|
+
title = item.title,
|
155
|
+
num = item.num,
|
156
|
+
customClassName = item.className,
|
157
|
+
others = _objectWithoutProperties(item, _excluded3);
|
158
|
+
|
159
|
+
var _getColorAndStyle = getColorAndStyle(color),
|
134
160
|
className = _getColorAndStyle.className,
|
135
161
|
style = _getColorAndStyle.style;
|
136
162
|
|
137
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
163
|
+
return /*#__PURE__*/_react.default.createElement("div", _objectSpread({
|
138
164
|
key: i,
|
139
|
-
className: cls('data-item')
|
140
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
165
|
+
className: (0, _classnames2.default)(cls('data-item'), customClassName)
|
166
|
+
}, others), /*#__PURE__*/_react.default.createElement("div", {
|
141
167
|
className: cls('data-item-title')
|
142
|
-
},
|
168
|
+
}, title), /*#__PURE__*/_react.default.createElement("div", {
|
143
169
|
className: (0, _classnames2.default)(cls('data-item-num'), className),
|
144
170
|
style: style
|
145
|
-
},
|
171
|
+
}, num));
|
146
172
|
}));
|
147
173
|
};
|
148
174
|
|
149
175
|
var renderInfo = function renderInfo(info) {
|
150
|
-
// @ts-ignore
|
151
176
|
if (info === null || info === void 0 ? void 0 : info.columns) {
|
152
|
-
// @ts-ignore
|
153
177
|
return /*#__PURE__*/_react.default.createElement(_info.default, _objectSpread({
|
154
178
|
type: "header"
|
155
179
|
}, info));
|
@@ -158,7 +182,7 @@ var renderInfo = function renderInfo(info) {
|
|
158
182
|
return info;
|
159
183
|
};
|
160
184
|
|
161
|
-
var
|
185
|
+
var ProPageHeader = function ProPageHeader(props) {
|
162
186
|
var title = props.title,
|
163
187
|
description = props.description,
|
164
188
|
icon = props.icon,
|
@@ -178,7 +202,7 @@ var PageHeader = function PageHeader(props) {
|
|
178
202
|
children = props.children,
|
179
203
|
className = props.className,
|
180
204
|
style = props.style,
|
181
|
-
others = _objectWithoutProperties(props,
|
205
|
+
others = _objectWithoutProperties(props, _excluded4);
|
182
206
|
|
183
207
|
var history = (0, _reactRouterDom.useHistory)();
|
184
208
|
var backgroundImage = image ? "url('".concat(image, "')") : undefined;
|
@@ -228,7 +252,7 @@ var PageHeader = function PageHeader(props) {
|
|
228
252
|
className: cls('section')
|
229
253
|
}, /*#__PURE__*/_react.default.createElement("nav", {
|
230
254
|
className: cls('nav')
|
231
|
-
}, loading && /*#__PURE__*/_react.default.createElement(_skeleton.
|
255
|
+
}, loading && /*#__PURE__*/_react.default.createElement(_skeleton.ProSkeletonRaw.Header.Nav, null), !loading && renderNav(breadcrumb)), /*#__PURE__*/_react.default.createElement("section", {
|
232
256
|
className: cls('extra')
|
233
257
|
}, !loading && renderActionGroup(extra, {
|
234
258
|
type: 'text',
|
@@ -241,18 +265,18 @@ var PageHeader = function PageHeader(props) {
|
|
241
265
|
className: cls('left')
|
242
266
|
}, /*#__PURE__*/_react.default.createElement("section", {
|
243
267
|
className: cls('title')
|
244
|
-
}, loading && /*#__PURE__*/_react.default.createElement(_skeleton.
|
268
|
+
}, loading && /*#__PURE__*/_react.default.createElement(_skeleton.ProSkeletonRaw.Header.Title, null), !loading && renderTitle()), description !== undefined && /*#__PURE__*/_react.default.createElement("section", {
|
245
269
|
className: cls('description')
|
246
|
-
}, loading && /*#__PURE__*/_react.default.createElement(_skeleton.
|
270
|
+
}, loading && /*#__PURE__*/_react.default.createElement(_skeleton.ProSkeletonRaw.Header.Description, null), !loading && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, description))), /*#__PURE__*/_react.default.createElement("section", {
|
247
271
|
className: cls('right')
|
248
272
|
}, data && !loading && /*#__PURE__*/_react.default.createElement("section", {
|
249
273
|
className: cls('data')
|
250
274
|
}, renderData(data)), /*#__PURE__*/_react.default.createElement("section", {
|
251
275
|
className: cls('operation')
|
252
|
-
}, !loading && renderActionGroup(operation)))), info &&
|
276
|
+
}, !loading && renderActionGroup(operation)))), info && /*#__PURE__*/_react.default.createElement("section", {
|
253
277
|
className: (0, _classnames2.default)(cls('section'), cls('info'))
|
254
|
-
}, renderInfo(info)), children);
|
278
|
+
}, !loading && renderInfo(info), loading && /*#__PURE__*/_react.default.createElement(_skeleton.ProSkeletonRaw.Info.Header, null)), children);
|
255
279
|
};
|
256
280
|
|
257
|
-
var _default =
|
281
|
+
var _default = ProPageHeader;
|
258
282
|
exports.default = _default;
|
@@ -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-
|
66
|
+
color: var(--color-text1-2, #5a5a5a);
|
66
67
|
}
|
67
68
|
|
68
69
|
.#{$prefix}-data {
|
@@ -0,0 +1,25 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.default = void 0;
|
7
|
+
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
9
|
+
|
10
|
+
var _result = _interopRequireDefault(require("@teamix/result"));
|
11
|
+
|
12
|
+
var _utils = require("@teamix/utils");
|
13
|
+
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
15
|
+
|
16
|
+
/** ProTable 空状态 */
|
17
|
+
var _default = function _default() {
|
18
|
+
return /*#__PURE__*/_react.default.createElement(_result.default, {
|
19
|
+
theme: "hybridcloud-container",
|
20
|
+
img: "noData",
|
21
|
+
title: (0, _utils.getMessage)('noData')
|
22
|
+
});
|
23
|
+
};
|
24
|
+
|
25
|
+
exports.default = _default;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import './index.scss';
|
3
|
-
import {
|
3
|
+
import { ProTableColumnProps, ProTableActionType } from '../../typing';
|
4
4
|
declare type ProTableFilterProps = {
|
5
|
-
column:
|
5
|
+
column: ProTableColumnProps;
|
6
6
|
actionRef: React.MutableRefObject<ProTableActionType | undefined>;
|
7
7
|
};
|
8
8
|
declare const Filter: React.FC<ProTableFilterProps>;
|
@@ -55,7 +55,9 @@ var RadioItem = _components.Menu.RadioItem;
|
|
55
55
|
|
56
56
|
var Filter = function Filter(props) {
|
57
57
|
var column = props.column,
|
58
|
-
actionRef = props.actionRef;
|
58
|
+
actionRef = props.actionRef;
|
59
|
+
var _column$filtersWidth = column.filtersWidth,
|
60
|
+
filtersWidth = _column$filtersWidth === void 0 ? 130 : _column$filtersWidth; // 选中过滤项
|
59
61
|
|
60
62
|
var _useState = (0, _react.useState)([]),
|
61
63
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -174,7 +176,10 @@ var Filter = function Filter(props) {
|
|
174
176
|
return setVisible(false);
|
175
177
|
}
|
176
178
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
177
|
-
className: cls()
|
179
|
+
className: cls(),
|
180
|
+
style: {
|
181
|
+
width: filtersWidth
|
182
|
+
}
|
178
183
|
}, /*#__PURE__*/_react.default.createElement(_components.Menu, null, renderSelect(), /*#__PURE__*/_react.default.createElement("div", {
|
179
184
|
className: cls({
|
180
185
|
'btn-box': true
|
@@ -186,7 +191,7 @@ var Filter = function Filter(props) {
|
|
186
191
|
btn: true
|
187
192
|
}),
|
188
193
|
onClick: function onClick() {
|
189
|
-
var _actionRef$current2, _actionRef$current2$f, _actionRef$current$ge5, _actionRef$current3, _actionRef$current3$g, _actionRef$current3$g2, _actionRef$current4, _actionRef$
|
194
|
+
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;
|
190
195
|
|
191
196
|
(_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
|
192
197
|
|
@@ -214,14 +219,22 @@ var Filter = function Filter(props) {
|
|
214
219
|
return null;
|
215
220
|
})), [[column.dataIndex, param]]).filter(function (item) {
|
216
221
|
return item && (item === null || item === void 0 ? void 0 : item[1]);
|
217
|
-
}));
|
222
|
+
}));
|
223
|
+
var targetPageKey = 'currentPage';
|
224
|
+
var pageInfo = (_actionRef$current4 = actionRef.current) === null || _actionRef$current4 === void 0 ? void 0 : _actionRef$current4.pageInfo;
|
225
|
+
|
226
|
+
if (pageInfo && (pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.targetPageKey)) {
|
227
|
+
targetPageKey = pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.targetPageKey;
|
228
|
+
} // 再设置所有的列筛选状态
|
218
229
|
|
219
|
-
(_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)); // 再设置所有的列筛选状态
|
220
230
|
|
221
231
|
(_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, {
|
222
232
|
rules: selected,
|
223
233
|
params: param
|
224
|
-
})));
|
234
|
+
}))); // 发送请求
|
235
|
+
|
236
|
+
(_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)));
|
237
|
+
(_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);
|
225
238
|
setVisible(false);
|
226
239
|
}
|
227
240
|
}, "\u786E\u5B9A"), /*#__PURE__*/_react.default.createElement(_components.Button, {
|
@@ -231,15 +244,15 @@ var Filter = function Filter(props) {
|
|
231
244
|
btn: true
|
232
245
|
}),
|
233
246
|
onClick: function onClick() {
|
234
|
-
var _actionRef$current$ge6, _actionRef$
|
247
|
+
var _actionRef$current$ge6, _actionRef$current8, _actionRef$current8$g, _actionRef$current8$g2, _actionRef$current9, _actionRef$current9$s, _actionRef$current10, _actionRef$current10$;
|
235
248
|
|
236
249
|
setSelected([]);
|
237
|
-
var rules = (_actionRef$current$ge6 = (_actionRef$
|
238
|
-
(_actionRef$
|
250
|
+
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 : {};
|
251
|
+
(_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, {
|
239
252
|
rules: [],
|
240
253
|
params: ''
|
241
254
|
})));
|
242
|
-
(_actionRef$
|
255
|
+
(_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);
|
243
256
|
}
|
244
257
|
}, "\u91CD\u7F6E")))));
|
245
258
|
};
|
@@ -99,7 +99,7 @@ var Layout = function Layout(props) {
|
|
99
99
|
};
|
100
100
|
return /*#__PURE__*/_react.default.createElement("div", {
|
101
101
|
className: cls('main-action')
|
102
|
-
}, /*#__PURE__*/_react.default.createElement(_actions.
|
102
|
+
}, /*#__PURE__*/_react.default.createElement(_actions.ProActionGroup, _objectSpread(_objectSpread({}, mainAction), {}, {
|
103
103
|
context: _objectSpread(_objectSpread({}, defaultContext), mainAction.context)
|
104
104
|
})));
|
105
105
|
} else return mainAction;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import {
|
2
|
+
import { ProActionButtonProps } from '../../../actions';
|
3
3
|
import { ProTableActionType, innerRowSelectionType, rowSelectionType } from '../../typing';
|
4
4
|
interface QuickActionProps {
|
5
|
-
quickAction?:
|
5
|
+
quickAction?: ProActionButtonProps | React.ReactNode | React.ReactNode[];
|
6
6
|
actionRef: React.MutableRefObject<ProTableActionType | undefined>;
|
7
7
|
rowSelection?: innerRowSelectionType | rowSelectionType;
|
8
8
|
}
|
@@ -24,7 +24,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
24
24
|
var QuickAction = function QuickAction(props) {
|
25
25
|
var quickAction = props.quickAction,
|
26
26
|
actionRef = props.actionRef,
|
27
|
-
rowSelection = props.rowSelection; // 如果传对象的话,默认为主要文字类型的
|
27
|
+
rowSelection = props.rowSelection; // 如果传对象的话,默认为主要文字类型的 ProActionButton
|
28
28
|
|
29
29
|
if (_typeof(quickAction) === 'object') {
|
30
30
|
// 默认 context
|
package/lib/table/index.js
CHANGED
@@ -30,6 +30,8 @@ var _useTableSelection = _interopRequireDefault(require("./utils/useTableSelecti
|
|
30
30
|
|
31
31
|
var _Fullscreen = _interopRequireDefault(require("./components/ToolBar/Fullscreen"));
|
32
32
|
|
33
|
+
var _EmptyContent = _interopRequireDefault(require("./components/EmptyContent"));
|
34
|
+
|
33
35
|
var _form = require("../form");
|
34
36
|
|
35
37
|
var _actions = require("../actions");
|
@@ -235,7 +237,7 @@ var ProTable = function ProTable(props) {
|
|
235
237
|
setShowLoading = _useState20[1]; // 存储定时器 id
|
236
238
|
|
237
239
|
|
238
|
-
var autoRefreshTimerRef = (0, _react.useRef)(); // 获取header
|
240
|
+
var autoRefreshTimerRef = (0, _react.useRef)(); // 获取header高度,用作全屏吸底吸底高度计算
|
239
241
|
|
240
242
|
var getHeaderHeight = function getHeaderHeight() {
|
241
243
|
var _tableDom$getElements, _tableDom$getElements2;
|
@@ -265,13 +267,35 @@ var ProTable = function ProTable(props) {
|
|
265
267
|
var _useState23 = (0, _react.useState)(false),
|
266
268
|
_useState24 = _slicedToArray(_useState23, 2),
|
267
269
|
fullscreenState = _useState24[0],
|
268
|
-
setFullscreenState = _useState24[1];
|
270
|
+
setFullscreenState = _useState24[1]; // 整个内容区是否超过一屏。用于表格在非全屏模式下的吸底
|
271
|
+
|
272
|
+
|
273
|
+
var _useState25 = (0, _react.useState)(false),
|
274
|
+
_useState26 = _slicedToArray(_useState25, 2),
|
275
|
+
footerSuctionState = _useState26[0],
|
276
|
+
setFooterSuctionState = _useState26[1];
|
269
277
|
/** 筛选区域 form */
|
270
278
|
|
271
279
|
|
272
280
|
var dataFilterForm = (0, _react.useMemo)(function () {
|
273
281
|
return (0, _form.createForm)();
|
274
|
-
}, []); //
|
282
|
+
}, []); // 获取内容区是否超出一屏(仅支持全家桶)
|
283
|
+
|
284
|
+
var getFooterSuctionState = function getFooterSuctionState() {
|
285
|
+
var containerDom = document.querySelector('.teamix-pro-page-container');
|
286
|
+
|
287
|
+
if (containerDom) {
|
288
|
+
var offsetHeight = containerDom.offsetHeight;
|
289
|
+
var scrollHeight = containerDom.scrollHeight;
|
290
|
+
|
291
|
+
if (offsetHeight < scrollHeight) {
|
292
|
+
setFooterSuctionState(true);
|
293
|
+
} else {
|
294
|
+
setFooterSuctionState(false);
|
295
|
+
}
|
296
|
+
}
|
297
|
+
}; // rowSelection 相关
|
298
|
+
|
275
299
|
|
276
300
|
var rowSelectionHook = (0, _useTableSelection.default)(_objectSpread(_objectSpread({}, propsRowSelection), {}, {
|
277
301
|
// 当初始出现骨架屏的时候,不可选择
|
@@ -387,12 +411,19 @@ var ProTable = function ProTable(props) {
|
|
387
411
|
return _request(params);
|
388
412
|
},
|
389
413
|
reset: function reset() {
|
390
|
-
|
414
|
+
var _actionRef$current, _actionRef$current$se;
|
415
|
+
|
416
|
+
(propsDataFilter === null || propsDataFilter === void 0 ? void 0 : propsDataFilter.onReset) && (propsDataFilter === null || propsDataFilter === void 0 ? void 0 : propsDataFilter.onReset()); // 清空列过滤参数
|
417
|
+
|
418
|
+
(_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, {});
|
391
419
|
dataFilterForm.reset();
|
392
420
|
setCurrentPage(1);
|
393
421
|
|
394
422
|
_request(_defineProperty({}, targetPageKey, 1));
|
395
423
|
},
|
424
|
+
resetPage: function resetPage() {
|
425
|
+
setCurrentPage(1);
|
426
|
+
},
|
396
427
|
clearRowSelection: function clearRowSelection() {
|
397
428
|
rowSelectionHook.setSelectedRowKeys([]);
|
398
429
|
rowSelectionHook.setSelectedRecords([]);
|
@@ -401,8 +432,11 @@ var ProTable = function ProTable(props) {
|
|
401
432
|
pageInfo: {
|
402
433
|
total: total,
|
403
434
|
current: currentPage,
|
435
|
+
targetPageKey: targetPageKey,
|
436
|
+
targetPageSizeKey: targetPageSizeKey,
|
404
437
|
pageSize: pageSize
|
405
438
|
},
|
439
|
+
dataFilterForm: dataFilterForm,
|
406
440
|
resetTableMaxBodyHeight: function resetTableMaxBodyHeight() {
|
407
441
|
getHeaderHeight().then(function (height) {
|
408
442
|
setHeaderHeight(height);
|
@@ -469,6 +503,11 @@ var ProTable = function ProTable(props) {
|
|
469
503
|
});
|
470
504
|
} else {
|
471
505
|
onFormatResult(nextData);
|
506
|
+
} // 重新计算是否需要吸底
|
507
|
+
|
508
|
+
|
509
|
+
if (footerSuction) {
|
510
|
+
getFooterSuctionState();
|
472
511
|
}
|
473
512
|
},
|
474
513
|
onError: function onError(error) {
|
@@ -478,12 +517,17 @@ var ProTable = function ProTable(props) {
|
|
478
517
|
props.onError(error);
|
479
518
|
} else {
|
480
519
|
_components.Message.error(error.toString());
|
520
|
+
} // 重新计算是否需要吸底
|
521
|
+
|
522
|
+
|
523
|
+
if (footerSuction) {
|
524
|
+
getFooterSuctionState();
|
481
525
|
}
|
482
526
|
}
|
483
527
|
}); // 请求函数
|
484
528
|
|
485
529
|
function _request(params, noLoading) {
|
486
|
-
var _actionRef$current, _actionRef$
|
530
|
+
var _actionRef$current$ge, _actionRef$current2, _actionRef$current2$g, _objectSpread2;
|
487
531
|
|
488
532
|
// 如果没有传 url 且没有 customRequest,直接返回
|
489
533
|
if (!url && !customRequest) {
|
@@ -492,13 +536,15 @@ var ProTable = function ProTable(props) {
|
|
492
536
|
|
493
537
|
var nextShowLoading = !noLoading;
|
494
538
|
nextShowLoading !== showLoading && setShowLoading(nextShowLoading); // 请求前需要优先清空列过滤条件
|
539
|
+
// actionRef.current?.setFilterRules?.({});
|
495
540
|
|
496
|
-
(_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, {});
|
497
541
|
var sortParams = targetFormatSort(sort); // 筛选区请求参数
|
498
542
|
|
499
|
-
var dataFilterParams = toJS(dataFilterForm.values); //
|
543
|
+
var dataFilterParams = toJS(dataFilterForm.values); // 列过滤请求参数
|
500
544
|
|
501
|
-
var
|
545
|
+
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 : {}; // 格式化后的请求参数
|
546
|
+
|
547
|
+
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));
|
502
548
|
|
503
549
|
if (requestData) {
|
504
550
|
if (autoRefreshTimerRef.current) {
|
@@ -545,6 +591,15 @@ var ProTable = function ProTable(props) {
|
|
545
591
|
}
|
546
592
|
|
547
593
|
(0, _react.useEffect)(function () {
|
594
|
+
// 监听 浏览器变化 更吸底状态
|
595
|
+
if (footerSuction) {
|
596
|
+
getFooterSuctionState();
|
597
|
+
|
598
|
+
window.onresize = function () {
|
599
|
+
getFooterSuctionState();
|
600
|
+
};
|
601
|
+
}
|
602
|
+
|
548
603
|
if (requestWhenMount) {
|
549
604
|
_request();
|
550
605
|
}
|
@@ -553,6 +608,10 @@ var ProTable = function ProTable(props) {
|
|
553
608
|
if (autoRefreshTimerRef.current) {
|
554
609
|
clearTimeout(autoRefreshTimerRef.current);
|
555
610
|
}
|
611
|
+
|
612
|
+
if (window.onresize) {
|
613
|
+
window.onresize = null;
|
614
|
+
}
|
556
615
|
};
|
557
616
|
}, []);
|
558
617
|
|
@@ -568,9 +627,12 @@ var ProTable = function ProTable(props) {
|
|
568
627
|
var dataFilter = _objectSpread(_objectSpread({}, propsDataFilter), {}, {
|
569
628
|
onFilter: (0, _lodash.default)(function () {
|
570
629
|
(propsDataFilter === null || propsDataFilter === void 0 ? void 0 : propsDataFilter.onFilter) && (propsDataFilter === null || propsDataFilter === void 0 ? void 0 : propsDataFilter.onFilter(_objectSpread({}, toJS(dataFilterForm.values))));
|
571
|
-
setCurrentPage(1);
|
572
630
|
|
573
|
-
|
631
|
+
if (dataFilterForm.validate()) {
|
632
|
+
setCurrentPage(1);
|
633
|
+
|
634
|
+
_request(_defineProperty({}, targetPageKey, 1));
|
635
|
+
}
|
574
636
|
}, filterDebounce),
|
575
637
|
onReset: function onReset() {
|
576
638
|
(propsDataFilter === null || propsDataFilter === void 0 ? void 0 : propsDataFilter.onReset) && (propsDataFilter === null || propsDataFilter === void 0 ? void 0 : propsDataFilter.onReset());
|
@@ -616,6 +678,7 @@ var ProTable = function ProTable(props) {
|
|
616
678
|
sort: sort,
|
617
679
|
primaryKey: primaryKey,
|
618
680
|
rowSelection: rowSelection,
|
681
|
+
emptyContent: /*#__PURE__*/_react.default.createElement(_EmptyContent.default, null),
|
619
682
|
sortIcons: (0, _getTableSortIcons.default)(),
|
620
683
|
fixedHeader: fullscreenState,
|
621
684
|
// 102px 为 底部 50px + 空格10px + 顶部 24px padding
|
@@ -651,7 +714,7 @@ var ProTable = function ProTable(props) {
|
|
651
714
|
|
652
715
|
return /*#__PURE__*/_react.default.createElement("div", {
|
653
716
|
className: cls('footer-action')
|
654
|
-
}, /*#__PURE__*/_react.default.createElement(_actions.
|
717
|
+
}, /*#__PURE__*/_react.default.createElement(_actions.ProActionGroup, _objectSpread(_objectSpread({}, targetFooterActions), {}, {
|
655
718
|
context: _objectSpread(_objectSpread({}, defaultContext), targetFooterActions === null || targetFooterActions === void 0 ? void 0 : targetFooterActions.context)
|
656
719
|
})));
|
657
720
|
} else return footerAction;
|
@@ -679,7 +742,7 @@ var ProTable = function ProTable(props) {
|
|
679
742
|
if (showSkeleton) {
|
680
743
|
return /*#__PURE__*/_react.default.createElement("div", {
|
681
744
|
className: cls('footer-left-wrapper')
|
682
|
-
}, /*#__PURE__*/_react.default.createElement(_skeleton.
|
745
|
+
}, /*#__PURE__*/_react.default.createElement(_skeleton.ProSkeletonRaw.Footer.Operation, null));
|
683
746
|
} else {
|
684
747
|
return /*#__PURE__*/_react.default.createElement("div", {
|
685
748
|
className: cls('footer-left-wrapper')
|
@@ -701,7 +764,7 @@ var ProTable = function ProTable(props) {
|
|
701
764
|
})
|
702
765
|
}, renderRowSelection(), /*#__PURE__*/_react.default.createElement("div", {
|
703
766
|
className: cls('footer-right-wrapper')
|
704
|
-
}, showSkeleton ? /*#__PURE__*/_react.default.createElement(_skeleton.
|
767
|
+
}, showSkeleton ? /*#__PURE__*/_react.default.createElement(_skeleton.ProSkeletonRaw.Footer.Pagination, null) : /*#__PURE__*/_react.default.createElement(_components.Pagination, _objectSpread({
|
705
768
|
className: cls('pagination'),
|
706
769
|
onChange: function onChange(number) {
|
707
770
|
return onChangePagination(number);
|
@@ -733,7 +796,7 @@ var ProTable = function ProTable(props) {
|
|
733
796
|
className: cls({
|
734
797
|
'': true,
|
735
798
|
fullscreen: fullscreenState,
|
736
|
-
'footer-suction': footerSuction
|
799
|
+
'footer-suction': footerSuctionState && footerSuction
|
737
800
|
}),
|
738
801
|
ref: tableRef
|
739
802
|
}, renderTable(), renderFooter()));
|