@teamix/pro 1.1.39 → 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 +2214 -4073
- 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 +6 -3
- package/es/actions/dialog.js +12 -5
- package/es/actions/index.d.ts +54 -47
- package/es/actions/index.js +28 -22
- package/es/actions/index.scss +17 -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 -78
- 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 +44 -21
- 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 +6 -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/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 +52 -49
- package/es/info/typing.d.ts +52 -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 +34 -21
- package/es/page-header/index.js +39 -30
- 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 +16 -8
- 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 +27 -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 +6 -3
- package/lib/actions/dialog.js +13 -5
- package/lib/actions/index.d.ts +54 -47
- package/lib/actions/index.js +37 -30
- package/lib/actions/index.scss +17 -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 -78
- 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 +44 -21
- 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 +5 -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/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 +51 -48
- package/lib/info/typing.d.ts +52 -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 +34 -21
- package/lib/page-header/index.js +37 -28
- 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 +16 -8
- 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 +27 -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
@@ -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>;
|
@@ -191,7 +191,7 @@ var Filter = function Filter(props) {
|
|
191
191
|
btn: true
|
192
192
|
}),
|
193
193
|
onClick: function onClick() {
|
194
|
-
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;
|
195
195
|
|
196
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
|
197
197
|
|
@@ -219,14 +219,22 @@ var Filter = function Filter(props) {
|
|
219
219
|
return null;
|
220
220
|
})), [[column.dataIndex, param]]).filter(function (item) {
|
221
221
|
return item && (item === null || item === void 0 ? void 0 : item[1]);
|
222
|
-
}));
|
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
|
+
} // 再设置所有的列筛选状态
|
223
229
|
|
224
|
-
(_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)); // 再设置所有的列筛选状态
|
225
230
|
|
226
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, {
|
227
232
|
rules: selected,
|
228
233
|
params: param
|
229
|
-
})));
|
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);
|
230
238
|
setVisible(false);
|
231
239
|
}
|
232
240
|
}, "\u786E\u5B9A"), /*#__PURE__*/_react.default.createElement(_components.Button, {
|
@@ -236,15 +244,15 @@ var Filter = function Filter(props) {
|
|
236
244
|
btn: true
|
237
245
|
}),
|
238
246
|
onClick: function onClick() {
|
239
|
-
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$;
|
240
248
|
|
241
249
|
setSelected([]);
|
242
|
-
var rules = (_actionRef$current$ge6 = (_actionRef$
|
243
|
-
(_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, {
|
244
252
|
rules: [],
|
245
253
|
params: ''
|
246
254
|
})));
|
247
|
-
(_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);
|
248
256
|
}
|
249
257
|
}, "\u91CD\u7F6E")))));
|
250
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()));
|
package/lib/table/index.scss
CHANGED
package/lib/table/typing.d.ts
CHANGED
@@ -2,19 +2,19 @@
|
|
2
2
|
* ProTable 类型定义
|
3
3
|
*/
|
4
4
|
import { ColumnProps, TableProps } from '@alicloudfe/components/types/table';
|
5
|
-
import {
|
5
|
+
import { ProFieldType, ProFieldRenderProps, ProFieldDataSourceItem } from '../field';
|
6
6
|
import { IFilterProps } from '../form';
|
7
|
-
import { ActionGroupProps,
|
7
|
+
import { ActionGroupProps, ProActionButtonProps } from '../actions';
|
8
8
|
import { PaginationProps } from '@alicloudfe/components/types/pagination';
|
9
9
|
import { HeaderProps as ProTableHeaderProps } from '@teamix/utils';
|
10
10
|
import { Method } from 'axios';
|
11
11
|
import React from 'react';
|
12
12
|
import type { Form as FormType } from '@formily/core';
|
13
|
-
declare type IFieldRenderProps = keyof
|
13
|
+
declare type IFieldRenderProps = keyof ProFieldRenderProps;
|
14
14
|
/** 列record函数 */
|
15
15
|
declare type ProTableCellFunProp = (value: any, index: number, record: any) => any;
|
16
16
|
declare type ITableCellRender = {
|
17
|
-
[key in IFieldRenderProps]?:
|
17
|
+
[key in IFieldRenderProps]?: ProFieldRenderProps[key] | ProTableCellFunProp;
|
18
18
|
} | ((...other: any) => React.ReactNode);
|
19
19
|
declare type TDataService = {
|
20
20
|
/** 翻页器总数 */
|
@@ -22,7 +22,7 @@ declare type TDataService = {
|
|
22
22
|
/** 表格数据 */
|
23
23
|
data?: any;
|
24
24
|
};
|
25
|
-
export declare type
|
25
|
+
export declare type ProTableColumnProps = {
|
26
26
|
/**
|
27
27
|
* 会在 title 之后展示一个 icon,hover 之后提示一些信息
|
28
28
|
*/
|
@@ -32,7 +32,7 @@ export declare type ProColumnProps = {
|
|
32
32
|
*/
|
33
33
|
tooltipIcon?: React.ReactNode;
|
34
34
|
/** 对应 ProField 里面的 type */
|
35
|
-
valueType?:
|
35
|
+
valueType?: ProFieldType;
|
36
36
|
/** 【列配置】是否默认隐藏列 */
|
37
37
|
columnFilters?: boolean;
|
38
38
|
/** 【列配置】是否禁用隐藏列 */
|
@@ -40,7 +40,7 @@ export declare type ProColumnProps = {
|
|
40
40
|
/** 渲染单元格内容字段 */
|
41
41
|
render?: ITableCellRender;
|
42
42
|
/** 枚举值 */
|
43
|
-
dataSource?:
|
43
|
+
dataSource?: ProFieldDataSourceItem[] | ProTableCellFunProp;
|
44
44
|
/** 表头的过滤菜单项,当值为 true 时,自动使用 dataSource 生成 */
|
45
45
|
filters?: boolean | ProTableColumnsFilterItemProps[];
|
46
46
|
/** 表头的过滤菜单项过滤方式 single 单选 multiple 多选 */
|
@@ -56,9 +56,10 @@ export declare type ProColumnProps = {
|
|
56
56
|
/** 指定 valueType 为日期时间格式时,可以格式化日期时间 */
|
57
57
|
format?: string;
|
58
58
|
} & Omit<ColumnProps, 'filters' | 'dataIndex' | 'filtersMode'>;
|
59
|
+
export declare type ProColumnProps = ProTableColumnProps;
|
59
60
|
export declare type ProTableProps = {
|
60
61
|
/** ProColums 定义,取代 Table 的 columns */
|
61
|
-
columns:
|
62
|
+
columns: ProTableColumnProps[];
|
62
63
|
/** 请求地址 */
|
63
64
|
url?: string;
|
64
65
|
/** 请求方法 */
|
@@ -163,7 +164,15 @@ export declare type ProTableActionType = {
|
|
163
164
|
current?: number;
|
164
165
|
/** 每页数据量 */
|
165
166
|
pageSize?: number;
|
167
|
+
/** 翻页页数的请求参数名*/
|
168
|
+
targetPageKey?: string;
|
169
|
+
/** 翻页单页数量的请求参数名 */
|
170
|
+
targetPageSizeKey?: string;
|
166
171
|
};
|
172
|
+
/** 重置翻页器为1,不发送请求 */
|
173
|
+
resetPage?: () => void;
|
174
|
+
/** 获取数据过滤区表单实例 */
|
175
|
+
dataFilterForm?: FormType;
|
167
176
|
} & ProTableActionTypeMutations;
|
168
177
|
/** action State 定义 */
|
169
178
|
export declare type ProTableActionTypeMutations = {
|
@@ -177,6 +186,8 @@ export declare type ProTableActionTypeMutations = {
|
|
177
186
|
off?: (...args: any) => void;
|
178
187
|
/** 设置 列 过滤规则 */
|
179
188
|
setFilterRules?: (rules: ProTableColumnsFilterRulesItem) => void;
|
189
|
+
/** 获取 列 过滤规则 */
|
190
|
+
getFilterRules?: () => object;
|
180
191
|
/** 重新计算表格maxHeight高度 */
|
181
192
|
resetTableMaxBodyHeight?: () => void;
|
182
193
|
};
|
@@ -185,7 +196,7 @@ export declare type ProTableActionTypeState = {
|
|
185
196
|
fullScreenState: boolean;
|
186
197
|
filterRules: ProTableColumnsFilterRulesItem;
|
187
198
|
};
|
188
|
-
export declare type
|
199
|
+
export declare type ProTableDataFilterProps = {
|
189
200
|
/** 展示形式 */
|
190
201
|
mode?: 'inline' | 'panel';
|
191
202
|
/** mode='panel' 时是否默认展开 */
|
@@ -195,25 +206,27 @@ export declare type dataFilterProps = {
|
|
195
206
|
/** 搜索时是否传入值为空字符串的参数,默认不传 */
|
196
207
|
searchEmptyString?: boolean;
|
197
208
|
} & IFilterProps;
|
209
|
+
export declare type dataFilterProps = ProTableDataFilterProps;
|
198
210
|
export declare type ProTableTopAreaProps = {
|
199
211
|
/** 标题区 */
|
200
212
|
header?: ProTableHeaderProps;
|
201
213
|
/** 主操作区 */
|
202
214
|
mainAction?: ActionGroupProps | React.ReactNode;
|
203
215
|
/** 工具栏区 */
|
204
|
-
toolBar?: boolean |
|
216
|
+
toolBar?: boolean | ProTableToolBarItem[];
|
205
217
|
/** 快捷操作区 */
|
206
|
-
extra?:
|
218
|
+
extra?: ProActionButtonProps | React.ReactNode | React.ReactNode[];
|
207
219
|
/** 数据过滤区 */
|
208
|
-
dataFilter?:
|
220
|
+
dataFilter?: ProTableDataFilterProps;
|
209
221
|
/** 数据过滤区 form 表单模型 */
|
210
222
|
dataFilterForm?: FormType;
|
211
223
|
};
|
212
224
|
/** 单个工具栏 */
|
213
|
-
declare type
|
225
|
+
export declare type ProTableToolBarItem = React.ReactNode | 'refresh' | 'density' | 'filterColumn' | 'fullscreen';
|
226
|
+
export declare type toolBarItem = ProTableToolBarItem;
|
214
227
|
export declare type ProTableLayoutProps = {
|
215
228
|
actionRef: React.MutableRefObject<ProTableActionType | undefined>;
|
216
|
-
columns?:
|
229
|
+
columns?: ProTableColumnProps[];
|
217
230
|
rowSelection?: innerRowSelectionType | rowSelectionType;
|
218
231
|
} & ProTableTopAreaProps;
|
219
232
|
/** columns 列过滤 */
|
@@ -2,12 +2,12 @@
|
|
2
2
|
* 渲染列的逻辑函数
|
3
3
|
*/
|
4
4
|
import React from 'react';
|
5
|
-
import {
|
5
|
+
import { ProTableColumnProps, ProTableActionType } from '../typing';
|
6
6
|
/**
|
7
7
|
* 增加了 icon 的功能 render title
|
8
8
|
*/
|
9
|
-
export declare const renderColumnsTitle: (item:
|
9
|
+
export declare const renderColumnsTitle: (item: ProTableColumnProps, actionRef: React.MutableRefObject<ProTableActionType | undefined>) => JSX.Element;
|
10
10
|
/**
|
11
11
|
* 负责单元格的具体渲染
|
12
12
|
*/
|
13
|
-
export declare const renderCell: (value: any, item:
|
13
|
+
export declare const renderCell: (value: any, item: ProTableColumnProps, index: number, record: any, actionRef: React.MutableRefObject<ProTableActionType | undefined>) => JSX.Element;
|
@@ -106,7 +106,7 @@ var renderCell = function renderCell(value, item, index, record, actionRef) {
|
|
106
106
|
record: record,
|
107
107
|
action: actionRef.current
|
108
108
|
};
|
109
|
-
return /*#__PURE__*/_react.default.createElement(_actions.
|
109
|
+
return /*#__PURE__*/_react.default.createElement(_actions.ProActionGroup, _objectSpread(_objectSpread({
|
110
110
|
type: "text"
|
111
111
|
}, actionSchema), {}, {
|
112
112
|
context: _objectSpread(_objectSpread({}, defaultContext), actionSchema.context)
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import {
|
2
|
+
import { ProTableColumnProps, ProTableActionType } from '../typing';
|
3
3
|
import { ColumnProps } from '@alicloudfe/components/types/table';
|
4
4
|
/**
|
5
5
|
* ProColumn => Column
|
6
6
|
*/
|
7
|
-
export default function genProColumnToColumn(columns:
|
7
|
+
export default function genProColumnToColumn(columns: ProTableColumnProps[],
|
8
8
|
/** 是否渲染骨架屏 */
|
9
9
|
showSkeleton: boolean, actionRef: React.MutableRefObject<ProTableActionType | undefined>): ColumnProps[];
|
@@ -41,9 +41,9 @@ showSkeleton, actionRef) {
|
|
41
41
|
filters: undefined,
|
42
42
|
sortable: false,
|
43
43
|
dataIndex: dataIndex === null || dataIndex === void 0 ? void 0 : dataIndex.toString(),
|
44
|
-
title: /*#__PURE__*/_react.default.createElement(_skeleton.
|
44
|
+
title: /*#__PURE__*/_react.default.createElement(_skeleton.ProSkeletonRaw.Table.TH, null),
|
45
45
|
cell: function cell() {
|
46
|
-
return /*#__PURE__*/_react.default.createElement(_skeleton.
|
46
|
+
return /*#__PURE__*/_react.default.createElement(_skeleton.ProSkeletonRaw.Table.TD, null);
|
47
47
|
}
|
48
48
|
});
|
49
49
|
}
|
package/lib/table/utils/index.js
CHANGED
@@ -56,6 +56,28 @@ var mutations = {
|
|
56
56
|
state.filterRules = rules;
|
57
57
|
},
|
58
58
|
|
59
|
+
/**
|
60
|
+
* 获取筛选规则。为params
|
61
|
+
*/
|
62
|
+
getFilterRules: function getFilterRules() {
|
63
|
+
var result = {};
|
64
|
+
|
65
|
+
if (state.filterRules) {
|
66
|
+
result = Object.entries(state.filterRules).map(function (_ref) {
|
67
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
68
|
+
k = _ref2[0],
|
69
|
+
v = _ref2[1];
|
70
|
+
|
71
|
+
return _defineProperty({}, k, v.params);
|
72
|
+
}).reduce(function (acc, cur) {
|
73
|
+
acc = _objectSpread(_objectSpread({}, acc), cur);
|
74
|
+
return acc;
|
75
|
+
}, {});
|
76
|
+
}
|
77
|
+
|
78
|
+
return result;
|
79
|
+
},
|
80
|
+
|
59
81
|
/**
|
60
82
|
* 绑定监听函数
|
61
83
|
* @param fun 监听函数
|
@@ -66,14 +88,14 @@ var mutations = {
|
|
66
88
|
callback[state][name] = fun;
|
67
89
|
},
|
68
90
|
off: function off(name) {
|
69
|
-
callback = Object.fromEntries(Object.entries(callback).map(function (
|
70
|
-
var
|
71
|
-
k =
|
72
|
-
v =
|
91
|
+
callback = Object.fromEntries(Object.entries(callback).map(function (_ref4) {
|
92
|
+
var _ref5 = _slicedToArray(_ref4, 2),
|
93
|
+
k = _ref5[0],
|
94
|
+
v = _ref5[1];
|
73
95
|
|
74
|
-
var filterV = Object.fromEntries(Object.entries(v).filter(function (
|
75
|
-
var
|
76
|
-
k =
|
96
|
+
var filterV = Object.fromEntries(Object.entries(v).filter(function (_ref6) {
|
97
|
+
var _ref7 = _slicedToArray(_ref6, 1),
|
98
|
+
k = _ref7[0];
|
77
99
|
|
78
100
|
return k !== name;
|
79
101
|
}));
|
@@ -88,10 +110,10 @@ var useOn = function useOn(state) {
|
|
88
110
|
}
|
89
111
|
|
90
112
|
if (callback[state]) {
|
91
|
-
Object.entries(callback[state]).forEach(function (
|
92
|
-
var
|
93
|
-
k =
|
94
|
-
v =
|
113
|
+
Object.entries(callback[state]).forEach(function (_ref8) {
|
114
|
+
var _ref9 = _slicedToArray(_ref8, 2),
|
115
|
+
k = _ref9[0],
|
116
|
+
v = _ref9[1];
|
95
117
|
|
96
118
|
if (v) {
|
97
119
|
v === null || v === void 0 ? void 0 : v.apply(void 0, args);
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { PageProps } from '../../page-container';
|
2
|
-
import {
|
2
|
+
import { ProPageHeaderProps } from '../../page-header';
|
3
3
|
import { ProTableProps } from '../../table';
|
4
4
|
export declare type ListPageProps = PageProps<{
|
5
|
-
header:
|
5
|
+
header: ProPageHeaderProps;
|
6
6
|
content: ProTableProps;
|
7
7
|
}>;
|
8
8
|
export declare const ListPage: (props: ListPageProps) => JSX.Element;
|