antd-management-fast-framework 1.11.21 → 1.11.34
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/es/customComponents/FunctionComponent/index.d.ts +2 -0
- package/es/customComponents/FunctionComponent/index.js +51 -16
- package/es/customComponents/HtmlBox/index.d.ts +6 -0
- package/es/customComponents/HtmlBox/index.js +24 -4
- package/es/framework/AuthorizationWrapper/index.d.ts +0 -1
- package/es/framework/AuthorizationWrapper/index.js +0 -4
- package/es/framework/Common/index.d.ts +1 -0
- package/es/framework/Common/index.js +62 -0
- package/es/framework/DataListView/Base/index.d.ts +10 -0
- package/es/framework/DataListView/Base/index.js +188 -28
- package/es/framework/DataMultiPageView/MultiPageDrawer/index.js +11 -20
- package/es/framework/DataSinglePageView/SinglePageDrawer/index.js +27 -19
- package/es/utils/constants.d.ts +21 -7
- package/es/utils/constants.js +23 -2
- package/package.json +12 -12
|
@@ -76,6 +76,8 @@ export function buildMenu({ handleData: r, handleMenuClick, menuItems, }: {
|
|
|
76
76
|
handleMenuClick?: (() => void) | undefined;
|
|
77
77
|
menuItems?: any[] | undefined;
|
|
78
78
|
}): JSX.Element;
|
|
79
|
+
export function buildTree(props: any): JSX.Element;
|
|
80
|
+
export function buildAlert(props: any): JSX.Element;
|
|
79
81
|
export function buildCustomGrid({ key, list, props }: {
|
|
80
82
|
key?: any;
|
|
81
83
|
list: any;
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.adjustTableExpandConfig = adjustTableExpandConfig;
|
|
7
|
+
exports.buildAlert = buildAlert;
|
|
7
8
|
exports.buildButton = buildButton;
|
|
8
9
|
exports.buildButtonGroup = buildButtonGroup;
|
|
9
10
|
exports.buildColorText = buildColorText;
|
|
@@ -54,6 +55,7 @@ exports.buildSearchInput = buildSearchInput;
|
|
|
54
55
|
exports.buildSearchInputNumber = buildSearchInputNumber;
|
|
55
56
|
exports.buildSyntaxHighlighter = buildSyntaxHighlighter;
|
|
56
57
|
exports.buildTagList = buildTagList;
|
|
58
|
+
exports.buildTree = buildTree;
|
|
57
59
|
exports.empty = empty;
|
|
58
60
|
exports.pageHeaderExtraContent = pageHeaderExtraContent;
|
|
59
61
|
|
|
@@ -89,6 +91,14 @@ require("antd/es/col/style");
|
|
|
89
91
|
|
|
90
92
|
var _col = _interopRequireDefault(require("antd/es/col"));
|
|
91
93
|
|
|
94
|
+
require("antd/es/alert/style");
|
|
95
|
+
|
|
96
|
+
var _alert = _interopRequireDefault(require("antd/es/alert"));
|
|
97
|
+
|
|
98
|
+
require("antd/es/tree/style");
|
|
99
|
+
|
|
100
|
+
var _tree = _interopRequireDefault(require("antd/es/tree"));
|
|
101
|
+
|
|
92
102
|
require("antd/es/menu/style");
|
|
93
103
|
|
|
94
104
|
var _menu = _interopRequireDefault(require("antd/es/menu"));
|
|
@@ -915,6 +925,14 @@ function buildMenu(_ref5) {
|
|
|
915
925
|
}));
|
|
916
926
|
}
|
|
917
927
|
|
|
928
|
+
function buildTree(props) {
|
|
929
|
+
return /*#__PURE__*/_react.default.createElement(_tree.default, props);
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
function buildAlert(props) {
|
|
933
|
+
return /*#__PURE__*/_react.default.createElement(_alert.default, props);
|
|
934
|
+
}
|
|
935
|
+
|
|
918
936
|
function buildCustomGrid(_ref7) {
|
|
919
937
|
var _ref7$key = _ref7.key,
|
|
920
938
|
key = _ref7$key === void 0 ? null : _ref7$key,
|
|
@@ -941,7 +959,8 @@ function buildCustomGrid(_ref7) {
|
|
|
941
959
|
emptyStyle: null,
|
|
942
960
|
bordered: false,
|
|
943
961
|
colon: true,
|
|
944
|
-
size: null
|
|
962
|
+
size: null,
|
|
963
|
+
ellipsis: true
|
|
945
964
|
}), props || {}),
|
|
946
965
|
title = _title$column$labelSt.title,
|
|
947
966
|
columnSource = _title$column$labelSt.column,
|
|
@@ -951,7 +970,8 @@ function buildCustomGrid(_ref7) {
|
|
|
951
970
|
globalEmptyStyle = _title$column$labelSt.emptyStyle,
|
|
952
971
|
borderedSource = _title$column$labelSt.bordered,
|
|
953
972
|
colonSource = _title$column$labelSt.colon,
|
|
954
|
-
sizeSource = _title$column$labelSt.size
|
|
973
|
+
sizeSource = _title$column$labelSt.size,
|
|
974
|
+
ellipsis = _title$column$labelSt.ellipsis;
|
|
955
975
|
|
|
956
976
|
if (!(0, _tools.isNumber)(columnSource)) {
|
|
957
977
|
column = 3;
|
|
@@ -989,11 +1009,13 @@ function buildCustomGrid(_ref7) {
|
|
|
989
1009
|
borderTop: '1px solid #f0f0f0',
|
|
990
1010
|
borderLeft: '1px solid #f0f0f0'
|
|
991
1011
|
} : null;
|
|
992
|
-
|
|
1012
|
+
|
|
1013
|
+
var labelStyle = _objectSpread(_objectSpread(_objectSpread({}, {
|
|
993
1014
|
width: '180px'
|
|
994
|
-
}), labelStyleSource || {}), {
|
|
1015
|
+
}), labelStyleSource || {}), bordered ? {
|
|
995
1016
|
margin: margin
|
|
996
|
-
}
|
|
1017
|
+
} : {});
|
|
1018
|
+
|
|
997
1019
|
var contentStyle = bordered ? _objectSpread(_objectSpread(_objectSpread({}, {
|
|
998
1020
|
margin: '16px 24px'
|
|
999
1021
|
}), contentStyleSource || {}), {
|
|
@@ -1071,15 +1093,16 @@ function buildCustomGrid(_ref7) {
|
|
|
1071
1093
|
borderRight: '1px solid #f0f0f0'
|
|
1072
1094
|
} : {}),
|
|
1073
1095
|
right: /*#__PURE__*/_react.default.createElement("div", {
|
|
1074
|
-
style: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, contentStyle), isEmpty ? globalEmptyStyle || {} : {}), isEmpty ? itemEmptyStyle || {} : {}), {
|
|
1096
|
+
style: _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, contentStyle), isEmpty ? globalEmptyStyle || {} : {}), isEmpty ? itemEmptyStyle || {} : {}), {
|
|
1075
1097
|
WebkitBoxOrient: 'vertical',
|
|
1076
|
-
WebkitLineClamp: '1',
|
|
1077
1098
|
overflow: 'hidden',
|
|
1078
1099
|
display: '-webkit-box',
|
|
1079
1100
|
textOverflow: 'ellipsis',
|
|
1080
1101
|
wordBreak: 'break-all',
|
|
1081
1102
|
whiteSpace: 'normal'
|
|
1082
|
-
})
|
|
1103
|
+
}), ellipsis ? {
|
|
1104
|
+
WebkitLineClamp: '1'
|
|
1105
|
+
} : {})
|
|
1083
1106
|
}, v, itemCanCopy && (itemCanCopy || null) != null ? /*#__PURE__*/_react.default.createElement("a", {
|
|
1084
1107
|
style: {
|
|
1085
1108
|
marginLeft: '10px'
|
|
@@ -1296,7 +1319,11 @@ function buildMenuHeaderRender(_ref10) {
|
|
|
1296
1319
|
collapsed = _ref10.collapsed,
|
|
1297
1320
|
navTheme = _ref10.navTheme,
|
|
1298
1321
|
shortName = _ref10.shortName;
|
|
1299
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
1322
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
1323
|
+
style: {
|
|
1324
|
+
overflow: 'hidden'
|
|
1325
|
+
}
|
|
1326
|
+
}, /*#__PURE__*/_react.default.createElement(_FlexBox.default, {
|
|
1300
1327
|
flexAuto: "right",
|
|
1301
1328
|
left: logoDom,
|
|
1302
1329
|
right: collapsed ? null : /*#__PURE__*/_react.default.createElement(_VerticalBox.default, {
|
|
@@ -1305,21 +1332,20 @@ function buildMenuHeaderRender(_ref10) {
|
|
|
1305
1332
|
style: {
|
|
1306
1333
|
height: '100%'
|
|
1307
1334
|
}
|
|
1308
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
1309
|
-
level: 1,
|
|
1335
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
1310
1336
|
style: _objectSpread(_objectSpread({}, {
|
|
1311
1337
|
margin: ' 0 0 0 12px',
|
|
1312
1338
|
fontSize: '20px',
|
|
1313
1339
|
color: 'white',
|
|
1314
1340
|
fontWeight: '600',
|
|
1315
|
-
lineHeight: '32px'
|
|
1341
|
+
lineHeight: '32px',
|
|
1342
|
+
overflow: 'hidden',
|
|
1343
|
+
height: '100%',
|
|
1344
|
+
whiteSpace: 'nowrap'
|
|
1316
1345
|
}), navTheme === 'light' ? {
|
|
1317
1346
|
color: '#000000d9'
|
|
1318
1347
|
} : {})
|
|
1319
|
-
},
|
|
1320
|
-
type: "alpha",
|
|
1321
|
-
mode: "smooth"
|
|
1322
|
-
}, shortName || '应用简称')))
|
|
1348
|
+
}, shortName || '应用简称'))
|
|
1323
1349
|
}));
|
|
1324
1350
|
}
|
|
1325
1351
|
|
|
@@ -2910,6 +2936,15 @@ function buildColumnItem(_ref49) {
|
|
|
2910
2936
|
}));
|
|
2911
2937
|
}
|
|
2912
2938
|
|
|
2939
|
+
if (facadeMode === _constants.columnFacadeMode.dropdown) {
|
|
2940
|
+
if (!(0, _tools.isFunction)(d.configBuilder)) {
|
|
2941
|
+
return null;
|
|
2942
|
+
}
|
|
2943
|
+
|
|
2944
|
+
var operateConfig = d.configBuilder(value, record, index);
|
|
2945
|
+
return buildDropdown(operateConfig);
|
|
2946
|
+
}
|
|
2947
|
+
|
|
2913
2948
|
throw new Error("\u65E0\u6548\u7684\u6E32\u67D3\u6A21\u5F0F\uFF1A".concat(facadeMode));
|
|
2914
2949
|
};
|
|
2915
2950
|
}
|
|
@@ -8,4 +8,10 @@ declare class HtmlBox extends React.PureComponent<any, any, any> {
|
|
|
8
8
|
renderToHtml: () => void;
|
|
9
9
|
main: HTMLSpanElement | null | undefined;
|
|
10
10
|
}
|
|
11
|
+
declare namespace HtmlBox {
|
|
12
|
+
export namespace defaultProps {
|
|
13
|
+
export const useEmpty: boolean;
|
|
14
|
+
export const html: string;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
11
17
|
import React from "react";
|
|
@@ -7,16 +7,22 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
|
|
10
|
+
require("antd/es/empty/style");
|
|
11
|
+
|
|
12
|
+
var _empty = _interopRequireDefault(require("antd/es/empty"));
|
|
13
|
+
|
|
10
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
15
|
|
|
12
|
-
var
|
|
16
|
+
var _tools = require("../../utils/tools");
|
|
13
17
|
|
|
14
|
-
|
|
18
|
+
var _index = _interopRequireDefault(require("./index.less"));
|
|
15
19
|
|
|
16
20
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
21
|
|
|
18
22
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
23
|
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
+
|
|
20
26
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
21
27
|
|
|
22
28
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
@@ -57,10 +63,10 @@ var HtmlBox = /*#__PURE__*/function (_PureComponent) {
|
|
|
57
63
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
58
64
|
|
|
59
65
|
_this.renderToHtml = function () {
|
|
60
|
-
var
|
|
66
|
+
var html = _this.props.html;
|
|
61
67
|
|
|
62
68
|
if (_this.main) {
|
|
63
|
-
_this.main.innerHTML =
|
|
69
|
+
_this.main.innerHTML = html;
|
|
64
70
|
}
|
|
65
71
|
};
|
|
66
72
|
|
|
@@ -82,6 +88,16 @@ var HtmlBox = /*#__PURE__*/function (_PureComponent) {
|
|
|
82
88
|
value: function render() {
|
|
83
89
|
var _this2 = this;
|
|
84
90
|
|
|
91
|
+
var _this$props = this.props,
|
|
92
|
+
useEmpty = _this$props.useEmpty,
|
|
93
|
+
html = _this$props.html;
|
|
94
|
+
|
|
95
|
+
if (!!useEmpty && (0, _tools.stringIsNullOrWhiteSpace)(html)) {
|
|
96
|
+
return /*#__PURE__*/_react.default.createElement(_empty.default, {
|
|
97
|
+
image: _empty.default.PRESENTED_IMAGE_SIMPLE
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
|
|
85
101
|
return /*#__PURE__*/_react.default.createElement("span", {
|
|
86
102
|
className: _index.default.richTextBox,
|
|
87
103
|
ref: function ref(_ref) {
|
|
@@ -94,5 +110,9 @@ var HtmlBox = /*#__PURE__*/function (_PureComponent) {
|
|
|
94
110
|
return HtmlBox;
|
|
95
111
|
}(_react.PureComponent);
|
|
96
112
|
|
|
113
|
+
HtmlBox.defaultProps = {
|
|
114
|
+
useEmpty: true,
|
|
115
|
+
html: ''
|
|
116
|
+
};
|
|
97
117
|
var _default = HtmlBox;
|
|
98
118
|
exports.default = _default;
|
|
@@ -3,7 +3,6 @@ declare class AuthorizationWrapper extends SupplementWrapper {
|
|
|
3
3
|
componentAuthority: any;
|
|
4
4
|
doDidMountTask: () => void;
|
|
5
5
|
checkAuthority: (auth: any) => boolean;
|
|
6
|
-
checkAuthorities: (auth: any) => any;
|
|
7
6
|
getCurrentOperator: () => any;
|
|
8
7
|
reloadCurrentOperator: (callback?: any) => void;
|
|
9
8
|
}
|
|
@@ -83,10 +83,6 @@ var AuthorizationWrapper = /*#__PURE__*/function (_SupplementWrapper) {
|
|
|
83
83
|
return (0, _authority.checkHasAuthority)(auth);
|
|
84
84
|
};
|
|
85
85
|
|
|
86
|
-
_this.checkAuthorities = function (auth) {
|
|
87
|
-
return (0, _authority.checkHasAuthorities)(auth);
|
|
88
|
-
};
|
|
89
|
-
|
|
90
86
|
_this.getCurrentOperator = function () {
|
|
91
87
|
var currentOperator = _this.props.global.currentOperator;
|
|
92
88
|
return currentOperator;
|
|
@@ -79,6 +79,8 @@ var _QueueBox = _interopRequireDefault(require("../../customComponents/AnimalBox
|
|
|
79
79
|
|
|
80
80
|
var _ColorText = _interopRequireDefault(require("../../customComponents/ColorText"));
|
|
81
81
|
|
|
82
|
+
var _HtmlBox = _interopRequireDefault(require("../../customComponents/HtmlBox"));
|
|
83
|
+
|
|
82
84
|
var _FunctionComponent = require("../../customComponents/FunctionComponent");
|
|
83
85
|
|
|
84
86
|
var _Whether = require("../../customComponents/FunctionSupplement/Whether");
|
|
@@ -148,6 +150,20 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
148
150
|
return false;
|
|
149
151
|
};
|
|
150
152
|
|
|
153
|
+
_this.getGlobal = function () {
|
|
154
|
+
var global = _this.props.global;
|
|
155
|
+
|
|
156
|
+
if ((global || null) == null) {
|
|
157
|
+
var text = 'global is null, function getGlobal need override. ';
|
|
158
|
+
(0, _tools.showRuntimeError)({
|
|
159
|
+
message: text
|
|
160
|
+
});
|
|
161
|
+
throw new Error(text);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
return global;
|
|
165
|
+
};
|
|
166
|
+
|
|
151
167
|
_this.getApiData = function (props) {
|
|
152
168
|
var text = 'getApiData 方法需要重载实现';
|
|
153
169
|
(0, _tools.showRuntimeError)({
|
|
@@ -1626,6 +1642,52 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1626
1642
|
}, /*#__PURE__*/_react.default.createElement(_divider.default, _objectSpread(_objectSpread({}, {}), contentItem.otherProps || {}), (0, _tools.stringIsNullOrWhiteSpace)(contentItem.text || '') ? null : contentItem.text));
|
|
1627
1643
|
}
|
|
1628
1644
|
|
|
1645
|
+
if (type === _constants.cardConfig.contentItemType.customGrid) {
|
|
1646
|
+
return /*#__PURE__*/_react.default.createElement(_col.default, {
|
|
1647
|
+
key: contentItemKey,
|
|
1648
|
+
lg: lg,
|
|
1649
|
+
md: lg || md,
|
|
1650
|
+
sm: lg || sm,
|
|
1651
|
+
xs: lg || xs
|
|
1652
|
+
}, (0, _FunctionComponent.buildCustomGrid)({
|
|
1653
|
+
list: (0, _tools.isArray)(contentItem.list) ? contentItem.list : [],
|
|
1654
|
+
props: _objectSpread(_objectSpread({}, {
|
|
1655
|
+
bordered: true,
|
|
1656
|
+
column: 3,
|
|
1657
|
+
emptyStyle: {
|
|
1658
|
+
color: '#cccccc'
|
|
1659
|
+
},
|
|
1660
|
+
emptyValue: '暂无',
|
|
1661
|
+
labelStyle: {
|
|
1662
|
+
width: '100px'
|
|
1663
|
+
}
|
|
1664
|
+
}), contentItem.props || {})
|
|
1665
|
+
}));
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1668
|
+
if (type === _constants.cardConfig.contentItemType.tree) {
|
|
1669
|
+
return /*#__PURE__*/_react.default.createElement(_col.default, {
|
|
1670
|
+
key: contentItemKey,
|
|
1671
|
+
lg: lg,
|
|
1672
|
+
md: lg || md,
|
|
1673
|
+
sm: lg || sm,
|
|
1674
|
+
xs: lg || xs
|
|
1675
|
+
}, (0, _FunctionComponent.buildTree)(contentItem));
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1678
|
+
if (type === _constants.cardConfig.contentItemType.html) {
|
|
1679
|
+
return /*#__PURE__*/_react.default.createElement(_col.default, {
|
|
1680
|
+
key: contentItemKey,
|
|
1681
|
+
lg: lg,
|
|
1682
|
+
md: lg || md,
|
|
1683
|
+
sm: lg || sm,
|
|
1684
|
+
xs: lg || xs
|
|
1685
|
+
}, /*#__PURE__*/_react.default.createElement(_HtmlBox.default, {
|
|
1686
|
+
useEmpty: (contentItem.useEmpty || null) == null ? true : contentItem.useEmpty || false,
|
|
1687
|
+
html: contentItem.html || ''
|
|
1688
|
+
}));
|
|
1689
|
+
}
|
|
1690
|
+
|
|
1629
1691
|
if (type === _constants.cardConfig.contentItemType.imageUpload) {
|
|
1630
1692
|
var uploadProps = _objectSpread(_objectSpread({}, {
|
|
1631
1693
|
image: contentItem.image || '',
|
|
@@ -9,6 +9,7 @@ declare class ListBase extends AuthorizationWrapper {
|
|
|
9
9
|
* 使用前台模拟分页,有助于优化长列表页面交互操作导致的延迟
|
|
10
10
|
*/
|
|
11
11
|
useFrontendPagination: boolean;
|
|
12
|
+
showSearchForm: boolean;
|
|
12
13
|
affixPaginationBar: boolean;
|
|
13
14
|
formRef: React.RefObject<any>;
|
|
14
15
|
pageSizeAdditional: number;
|
|
@@ -207,6 +208,15 @@ declare class ListBase extends AuthorizationWrapper {
|
|
|
207
208
|
renderCardCollectionView: () => JSX.Element;
|
|
208
209
|
renderPaginationView: () => JSX.Element;
|
|
209
210
|
renderView: () => JSX.Element | null;
|
|
211
|
+
establishSiderTopAreaConfig: () => null;
|
|
212
|
+
renderSiderTopArea: () => JSX.Element | null;
|
|
213
|
+
establishSiderBottomAreaConfig: () => null;
|
|
214
|
+
renderSiderBottomArea: () => JSX.Element | null;
|
|
215
|
+
buildCardCollectionArea: (config?: any) => JSX.Element | null;
|
|
216
|
+
renderSiderArea: () => JSX.Element | null;
|
|
217
|
+
renderContentArea: () => JSX.Element;
|
|
218
|
+
establishPageContentLayoutSiderConfig: () => {};
|
|
219
|
+
establishPageContentLayoutConfig: () => {};
|
|
210
220
|
renderPageContent: () => JSX.Element;
|
|
211
221
|
renderPageBody: () => JSX.Element;
|
|
212
222
|
renderFurther(): JSX.Element;
|
|
@@ -71,6 +71,10 @@ require("antd/es/form/style");
|
|
|
71
71
|
|
|
72
72
|
var _form = _interopRequireDefault(require("antd/es/form"));
|
|
73
73
|
|
|
74
|
+
require("antd/es/layout/style");
|
|
75
|
+
|
|
76
|
+
var _layout = _interopRequireDefault(require("antd/es/layout"));
|
|
77
|
+
|
|
74
78
|
var _react = _interopRequireWildcard(require("react"));
|
|
75
79
|
|
|
76
80
|
var _icons = require("@ant-design/icons");
|
|
@@ -147,6 +151,8 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
147
151
|
|
|
148
152
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
149
153
|
|
|
154
|
+
var Content = _layout.default.Content,
|
|
155
|
+
Sider = _layout.default.Sider;
|
|
150
156
|
var FormItem = _form.default.Item;
|
|
151
157
|
var RangePicker = _datePicker.default.RangePicker;
|
|
152
158
|
|
|
@@ -171,6 +177,7 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
|
|
|
171
177
|
_this.useRemotePagination = true;
|
|
172
178
|
_this.useFrontendPagination = false;
|
|
173
179
|
_this.useFrontendPagination = false;
|
|
180
|
+
_this.showSearchForm = true;
|
|
174
181
|
_this.affixPaginationBar = true;
|
|
175
182
|
_this.formRef = /*#__PURE__*/_react.default.createRef();
|
|
176
183
|
_this.pageSizeAdditional = 0;
|
|
@@ -1343,33 +1350,112 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
|
|
|
1343
1350
|
return null;
|
|
1344
1351
|
};
|
|
1345
1352
|
|
|
1346
|
-
_this.
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
renderSearchForm = _this$state10.renderSearchForm;
|
|
1353
|
+
_this.establishSiderTopAreaConfig = function () {
|
|
1354
|
+
return null;
|
|
1355
|
+
};
|
|
1350
1356
|
|
|
1351
|
-
|
|
1357
|
+
_this.renderSiderTopArea = function () {
|
|
1358
|
+
var config = _this.establishSiderTopAreaConfig();
|
|
1352
1359
|
|
|
1353
|
-
|
|
1360
|
+
if (config == null) {
|
|
1361
|
+
return null;
|
|
1362
|
+
}
|
|
1354
1363
|
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1364
|
+
return _this.buildCardCollectionArea(config);
|
|
1365
|
+
};
|
|
1366
|
+
|
|
1367
|
+
_this.establishSiderBottomAreaConfig = function () {
|
|
1368
|
+
return null;
|
|
1369
|
+
};
|
|
1370
|
+
|
|
1371
|
+
_this.renderSiderBottomArea = function () {
|
|
1372
|
+
var config = _this.establishSiderBottomAreaConfig();
|
|
1373
|
+
|
|
1374
|
+
if (config == null) {
|
|
1375
|
+
return null;
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
return _this.buildCardCollectionArea(config);
|
|
1379
|
+
};
|
|
1380
|
+
|
|
1381
|
+
_this.buildCardCollectionArea = function () {
|
|
1382
|
+
var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
1383
|
+
|
|
1384
|
+
if (config == null) {
|
|
1385
|
+
return null;
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
var formContentWrapperTypeConfig = _this.establishWrapperTypeConfig() || {
|
|
1389
|
+
mode: _constants.cardConfig.wrapperType.page
|
|
1390
|
+
};
|
|
1391
|
+
|
|
1392
|
+
var configData = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, {
|
|
1393
|
+
mode: _constants.cardConfig.wrapperType.page,
|
|
1394
|
+
justify: 'start',
|
|
1395
|
+
align: 'top'
|
|
1396
|
+
}), formContentWrapperTypeConfig || {}), {
|
|
1397
|
+
list: []
|
|
1398
|
+
}), config || {});
|
|
1399
|
+
|
|
1400
|
+
var mode = configData.mode,
|
|
1401
|
+
justifyGeneral = configData.justify,
|
|
1402
|
+
alignGeneral = configData.align,
|
|
1403
|
+
list = configData.list;
|
|
1404
|
+
var listData = [];
|
|
1405
|
+
|
|
1406
|
+
if ((0, _tools.isArray)(list)) {
|
|
1407
|
+
list.forEach(function (co, ci) {
|
|
1408
|
+
listData.push(co);
|
|
1409
|
+
|
|
1410
|
+
if (ci !== list.length - 1) {
|
|
1411
|
+
listData.push('');
|
|
1412
|
+
}
|
|
1413
|
+
});
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
return /*#__PURE__*/_react.default.createElement(_space.default, {
|
|
1362
1417
|
style: {
|
|
1363
1418
|
width: '100%'
|
|
1364
1419
|
},
|
|
1365
1420
|
direction: "vertical",
|
|
1366
1421
|
size: 24
|
|
1367
|
-
},
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1422
|
+
}, listData.map(function (item, index) {
|
|
1423
|
+
return _this.buildCardCollectionItem({
|
|
1424
|
+
mode: mode,
|
|
1425
|
+
justify: justifyGeneral,
|
|
1426
|
+
align: alignGeneral,
|
|
1427
|
+
config: item,
|
|
1428
|
+
key: index
|
|
1429
|
+
});
|
|
1430
|
+
}));
|
|
1431
|
+
};
|
|
1432
|
+
|
|
1433
|
+
_this.renderSiderArea = function () {
|
|
1434
|
+
var topArea = _this.renderSiderTopArea();
|
|
1435
|
+
|
|
1436
|
+
var bottomArea = _this.renderSiderBottomArea();
|
|
1437
|
+
|
|
1438
|
+
if ((bottomArea || null) == null) {
|
|
1439
|
+
return topArea;
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
return /*#__PURE__*/_react.default.createElement(_FlexBox.default, {
|
|
1443
|
+
direction: "vertical",
|
|
1444
|
+
top: topArea,
|
|
1445
|
+
bottom: bottomArea
|
|
1446
|
+
});
|
|
1447
|
+
};
|
|
1448
|
+
|
|
1449
|
+
_this.renderContentArea = function () {
|
|
1450
|
+
var listTitle = _this.state.listTitle;
|
|
1451
|
+
|
|
1452
|
+
var extraAction = _this.renderExtraActionView();
|
|
1453
|
+
|
|
1454
|
+
var searchForm = _this.renderForm();
|
|
1455
|
+
|
|
1456
|
+
var hasPagination = _this.renderPaginationView() != null;
|
|
1457
|
+
|
|
1458
|
+
var gridView = /*#__PURE__*/_react.default.createElement(_card.default, {
|
|
1373
1459
|
title: listTitle,
|
|
1374
1460
|
headStyle: {
|
|
1375
1461
|
borderBottom: '0px'
|
|
@@ -1385,7 +1471,82 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
|
|
|
1385
1471
|
}), _this.renderBatchAction(), _this.renderCardExtraAction())
|
|
1386
1472
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
1387
1473
|
className: _index.default.tableList
|
|
1388
|
-
}, _this.renderAboveTable(), _this.renderView()))
|
|
1474
|
+
}, _this.renderAboveTable(), _this.renderView()));
|
|
1475
|
+
|
|
1476
|
+
if (!_this.showSearchForm || (searchForm || null) == null) {
|
|
1477
|
+
return gridView;
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
return /*#__PURE__*/_react.default.createElement(_space.default, {
|
|
1481
|
+
style: {
|
|
1482
|
+
width: '100%'
|
|
1483
|
+
},
|
|
1484
|
+
direction: "vertical",
|
|
1485
|
+
size: 24
|
|
1486
|
+
}, /*#__PURE__*/_react.default.createElement(_card.default, {
|
|
1487
|
+
bordered: false,
|
|
1488
|
+
className: _index.default.containorSearch
|
|
1489
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
1490
|
+
className: _index.default.tableListForm
|
|
1491
|
+
}, searchForm)), gridView);
|
|
1492
|
+
};
|
|
1493
|
+
|
|
1494
|
+
_this.establishPageContentLayoutSiderConfig = function () {
|
|
1495
|
+
return {};
|
|
1496
|
+
};
|
|
1497
|
+
|
|
1498
|
+
_this.establishPageContentLayoutConfig = function () {
|
|
1499
|
+
return {};
|
|
1500
|
+
};
|
|
1501
|
+
|
|
1502
|
+
_this.renderPageContent = function () {
|
|
1503
|
+
var siderArea = _this.renderSiderArea();
|
|
1504
|
+
|
|
1505
|
+
var contentArea = _this.renderContentArea();
|
|
1506
|
+
|
|
1507
|
+
var layoutSiderConfig = _this.establishPageContentLayoutSiderConfig();
|
|
1508
|
+
|
|
1509
|
+
var layoutConfig = _this.establishPageContentLayoutConfig();
|
|
1510
|
+
|
|
1511
|
+
var _position = _objectSpread(_objectSpread({}, {
|
|
1512
|
+
position: 'left'
|
|
1513
|
+
}), layoutSiderConfig || {}),
|
|
1514
|
+
siderPosition = _position.position;
|
|
1515
|
+
|
|
1516
|
+
var siderConfig = _objectSpread(_objectSpread({}, {
|
|
1517
|
+
width: 300,
|
|
1518
|
+
style: _objectSpread(_objectSpread({}, {
|
|
1519
|
+
backgroundColor: '#fff',
|
|
1520
|
+
borderRadius: '4px',
|
|
1521
|
+
overflowX: 'auto',
|
|
1522
|
+
overflowY: 'hidden'
|
|
1523
|
+
}), siderPosition === 'left' ? {
|
|
1524
|
+
marginRight: '24px'
|
|
1525
|
+
} : {
|
|
1526
|
+
marginLeft: '24px'
|
|
1527
|
+
})
|
|
1528
|
+
}), layoutSiderConfig || {});
|
|
1529
|
+
|
|
1530
|
+
layoutConfig = _objectSpread(_objectSpread({}, {
|
|
1531
|
+
breakpoint: 'sm',
|
|
1532
|
+
style: {
|
|
1533
|
+
backgroundColor: '#f0f2f5',
|
|
1534
|
+
minHeight: 'auto'
|
|
1535
|
+
}
|
|
1536
|
+
}), layoutConfig || {});
|
|
1537
|
+
var inner = siderArea == null ? contentArea : /*#__PURE__*/_react.default.createElement(_layout.default, layoutConfig, siderPosition === 'left' ? /*#__PURE__*/_react.default.createElement(Sider, siderConfig, siderArea) : null, /*#__PURE__*/_react.default.createElement(Content, null, contentArea), siderPosition !== 'left' ? /*#__PURE__*/_react.default.createElement(Sider, siderConfig, siderArea) : null);
|
|
1538
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
1539
|
+
className: _index.default.containorBox,
|
|
1540
|
+
style: {
|
|
1541
|
+
overflowX: 'hidden'
|
|
1542
|
+
}
|
|
1543
|
+
}, /*#__PURE__*/_react.default.createElement(_space.default, {
|
|
1544
|
+
style: {
|
|
1545
|
+
width: '100%'
|
|
1546
|
+
},
|
|
1547
|
+
direction: "vertical",
|
|
1548
|
+
size: 24
|
|
1549
|
+
}, _this.buildToolBarWrapper(), inner, _this.buildHelpWrapper()));
|
|
1389
1550
|
};
|
|
1390
1551
|
|
|
1391
1552
|
_this.renderPageBody = function () {
|
|
@@ -1405,7 +1566,6 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
|
|
|
1405
1566
|
showPageHeaderAvatar: false,
|
|
1406
1567
|
tableSize: _constants.listViewConfig.tableSize.middle,
|
|
1407
1568
|
counterSetColumnsOtherConfig: 0,
|
|
1408
|
-
renderSearchForm: true,
|
|
1409
1569
|
showListViewItemActionSelect: false
|
|
1410
1570
|
});
|
|
1411
1571
|
return _this;
|
|
@@ -1416,13 +1576,13 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
|
|
|
1416
1576
|
value: function renderFurther() {
|
|
1417
1577
|
var _this2 = this;
|
|
1418
1578
|
|
|
1419
|
-
var _this$
|
|
1420
|
-
renderPageHeaderWrapper = _this$
|
|
1421
|
-
showPageHeaderAvatar = _this$
|
|
1422
|
-
defaultAvatarIcon = _this$
|
|
1423
|
-
dataLoading = _this$
|
|
1424
|
-
reloading = _this$
|
|
1425
|
-
avatarImageLoadResult = _this$
|
|
1579
|
+
var _this$state10 = this.state,
|
|
1580
|
+
renderPageHeaderWrapper = _this$state10.renderPageHeaderWrapper,
|
|
1581
|
+
showPageHeaderAvatar = _this$state10.showPageHeaderAvatar,
|
|
1582
|
+
defaultAvatarIcon = _this$state10.defaultAvatarIcon,
|
|
1583
|
+
dataLoading = _this$state10.dataLoading,
|
|
1584
|
+
reloading = _this$state10.reloading,
|
|
1585
|
+
avatarImageLoadResult = _this$state10.avatarImageLoadResult;
|
|
1426
1586
|
var tabListAvailable = this.getTabListAvailable();
|
|
1427
1587
|
var avatarProps = showPageHeaderAvatar ? (0, _DecorateAvatar.decorateAvatar)(this.establishPageHeaderAvatarConfig(), defaultAvatarIcon, showPageHeaderAvatar, dataLoading, reloading, avatarImageLoadResult, function () {
|
|
1428
1588
|
_this2.onPageHeaderAvatarLoadErrorCallback();
|
|
@@ -142,18 +142,12 @@ var MultiPageDrawer = /*#__PURE__*/function (_MultiPage) {
|
|
|
142
142
|
dataLoading: true
|
|
143
143
|
});
|
|
144
144
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
that.handleSearchReset(false, 700);
|
|
145
|
+
_this.handleSearchReset(false, 700);
|
|
148
146
|
} else if (_this.reloadWhenShow) {
|
|
149
|
-
_this.
|
|
147
|
+
_this.reloadData({
|
|
150
148
|
reloadAnimalShow: true
|
|
151
|
-
})
|
|
152
|
-
|
|
153
|
-
var _that = _assertThisInitialized(_this);
|
|
154
|
-
|
|
155
|
-
_that.reloadData({}, function () {
|
|
156
|
-
_that.setState({
|
|
149
|
+
}, function () {
|
|
150
|
+
_this.setState({
|
|
157
151
|
reloadAnimalShow: false
|
|
158
152
|
});
|
|
159
153
|
}, 700);
|
|
@@ -232,8 +226,7 @@ var MultiPageDrawer = /*#__PURE__*/function (_MultiPage) {
|
|
|
232
226
|
reloading = _this$state.reloading,
|
|
233
227
|
processing = _this$state.processing,
|
|
234
228
|
refreshing = _this$state.refreshing,
|
|
235
|
-
listViewMode = _this$state.listViewMode
|
|
236
|
-
renderSearchForm = _this$state.renderSearchForm;
|
|
229
|
+
listViewMode = _this$state.listViewMode;
|
|
237
230
|
|
|
238
231
|
var extraAction = _this.renderExtraActionView();
|
|
239
232
|
|
|
@@ -253,7 +246,7 @@ var MultiPageDrawer = /*#__PURE__*/function (_MultiPage) {
|
|
|
253
246
|
display: 'flex',
|
|
254
247
|
flexDirection: 'column'
|
|
255
248
|
} : {}
|
|
256
|
-
},
|
|
249
|
+
}, _this.showSearchForm && (searchForm || null) != null ? /*#__PURE__*/_react.default.createElement("div", {
|
|
257
250
|
style: listViewMode === _constants.listViewConfig.viewMode.list ? {
|
|
258
251
|
flex: 0
|
|
259
252
|
} : {}
|
|
@@ -359,9 +352,7 @@ var MultiPageDrawer = /*#__PURE__*/function (_MultiPage) {
|
|
|
359
352
|
};
|
|
360
353
|
|
|
361
354
|
_this.renderContentContainor = function () {
|
|
362
|
-
var
|
|
363
|
-
listViewMode = _this$state2.listViewMode,
|
|
364
|
-
renderSearchForm = _this$state2.renderSearchForm;
|
|
355
|
+
var listViewMode = _this.state.listViewMode;
|
|
365
356
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
366
357
|
className: _index.default.contentContainor,
|
|
367
358
|
style: _objectSpread(_objectSpread(_objectSpread({}, listViewMode === _constants.listViewConfig.viewMode.list ? {
|
|
@@ -370,7 +361,7 @@ var MultiPageDrawer = /*#__PURE__*/function (_MultiPage) {
|
|
|
370
361
|
overflow: 'hidden'
|
|
371
362
|
} : {
|
|
372
363
|
paddingBottom: 0
|
|
373
|
-
}),
|
|
364
|
+
}), _this.showSearchForm ? {} : {
|
|
374
365
|
paddingTop: 0
|
|
375
366
|
}), {
|
|
376
367
|
backgroundColor: '#fff'
|
|
@@ -472,9 +463,9 @@ var MultiPageDrawer = /*#__PURE__*/function (_MultiPage) {
|
|
|
472
463
|
key: "renderFurther",
|
|
473
464
|
value: function renderFurther() {
|
|
474
465
|
var widthDrawer = this.props.width;
|
|
475
|
-
var _this$
|
|
476
|
-
visible = _this$
|
|
477
|
-
listViewMode = _this$
|
|
466
|
+
var _this$state2 = this.state,
|
|
467
|
+
visible = _this$state2.visible,
|
|
468
|
+
listViewMode = _this$state2.listViewMode;
|
|
478
469
|
return /*#__PURE__*/_react.default.createElement(_drawer.default, {
|
|
479
470
|
title: /*#__PURE__*/_react.default.createElement("span", null, this.renderTitleIcon(), this.getPageName()),
|
|
480
471
|
destroyOnClose: false,
|
|
@@ -130,12 +130,23 @@ var SinglePageDrawer = /*#__PURE__*/function (_SinglePage) {
|
|
|
130
130
|
};
|
|
131
131
|
|
|
132
132
|
_this.doOtherWhenChangeVisibleToShow = function (preProps, preState, snapshot) {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
133
|
+
var firstLoadSuccess = _this.state.firstLoadSuccess; // 未加载数据过数据的时候,进行加载
|
|
134
|
+
|
|
135
|
+
if (!firstLoadSuccess) {
|
|
136
|
+
// 设置界面效果为加载中,减少用户误解
|
|
137
|
+
_this.setState({
|
|
138
|
+
dataLoading: true
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
_this.handleSearchReset(false, 700);
|
|
142
|
+
} else if (_this.reloadWhenShow) {
|
|
143
|
+
_this.reloadData({
|
|
144
|
+
reloadAnimalShow: true
|
|
145
|
+
}, function () {
|
|
146
|
+
_this.setState({
|
|
147
|
+
reloadAnimalShow: false
|
|
148
|
+
});
|
|
149
|
+
}, 700);
|
|
139
150
|
}
|
|
140
151
|
};
|
|
141
152
|
|
|
@@ -201,8 +212,7 @@ var SinglePageDrawer = /*#__PURE__*/function (_SinglePage) {
|
|
|
201
212
|
listTitle = _this$state.listTitle,
|
|
202
213
|
tableSize = _this$state.tableSize,
|
|
203
214
|
refreshing = _this$state.refreshing,
|
|
204
|
-
listViewMode = _this$state.listViewMode
|
|
205
|
-
renderSearchForm = _this$state.renderSearchForm;
|
|
215
|
+
listViewMode = _this$state.listViewMode;
|
|
206
216
|
|
|
207
217
|
var extraAction = _this.renderExtraActionView();
|
|
208
218
|
|
|
@@ -222,7 +232,7 @@ var SinglePageDrawer = /*#__PURE__*/function (_SinglePage) {
|
|
|
222
232
|
display: 'flex',
|
|
223
233
|
flexDirection: 'column'
|
|
224
234
|
} : {}
|
|
225
|
-
},
|
|
235
|
+
}, _this.showSearchForm && (searchForm || null) != null ? /*#__PURE__*/_react.default.createElement("div", {
|
|
226
236
|
style: listViewMode === _constants.listViewConfig.viewMode.list ? {
|
|
227
237
|
flex: 0
|
|
228
238
|
} : {}
|
|
@@ -325,9 +335,7 @@ var SinglePageDrawer = /*#__PURE__*/function (_SinglePage) {
|
|
|
325
335
|
};
|
|
326
336
|
|
|
327
337
|
_this.renderContentContainor = function () {
|
|
328
|
-
var
|
|
329
|
-
listViewMode = _this$state2.listViewMode,
|
|
330
|
-
renderSearchForm = _this$state2.renderSearchForm;
|
|
338
|
+
var listViewMode = _this.state.listViewMode;
|
|
331
339
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
332
340
|
className: _index.default.contentContainor,
|
|
333
341
|
style: _objectSpread(_objectSpread(_objectSpread({}, listViewMode === _constants.listViewConfig.viewMode.list ? {
|
|
@@ -336,7 +344,7 @@ var SinglePageDrawer = /*#__PURE__*/function (_SinglePage) {
|
|
|
336
344
|
overflow: 'hidden'
|
|
337
345
|
} : {
|
|
338
346
|
paddingBottom: 0
|
|
339
|
-
}),
|
|
347
|
+
}), _this.showSearchForm ? {} : {
|
|
340
348
|
paddingTop: 0
|
|
341
349
|
}), {
|
|
342
350
|
backgroundColor: '#fff'
|
|
@@ -356,9 +364,9 @@ var SinglePageDrawer = /*#__PURE__*/function (_SinglePage) {
|
|
|
356
364
|
};
|
|
357
365
|
|
|
358
366
|
_this.renderListView = function () {
|
|
359
|
-
var _this$
|
|
360
|
-
dataLoading = _this$
|
|
361
|
-
listViewMode = _this$
|
|
367
|
+
var _this$state2 = _this.state,
|
|
368
|
+
dataLoading = _this$state2.dataLoading,
|
|
369
|
+
listViewMode = _this$state2.listViewMode;
|
|
362
370
|
var list = _this.getCanUseFrontendPagination() ? _this.adjustFrontendPaginationViewDataSource() : _this.adjustViewDataSource();
|
|
363
371
|
|
|
364
372
|
var bottomBar = _this.renderPaginationView();
|
|
@@ -433,9 +441,9 @@ var SinglePageDrawer = /*#__PURE__*/function (_SinglePage) {
|
|
|
433
441
|
key: "renderFurther",
|
|
434
442
|
value: function renderFurther() {
|
|
435
443
|
var widthDrawer = this.props.width;
|
|
436
|
-
var _this$
|
|
437
|
-
visible = _this$
|
|
438
|
-
listViewMode = _this$
|
|
444
|
+
var _this$state3 = this.state,
|
|
445
|
+
visible = _this$state3.visible,
|
|
446
|
+
listViewMode = _this$state3.listViewMode;
|
|
439
447
|
return /*#__PURE__*/_react.default.createElement(_drawer.default, {
|
|
440
448
|
title: /*#__PURE__*/_react.default.createElement("span", null, this.renderTitleIcon(), this.getPageName()),
|
|
441
449
|
destroyOnClose: false,
|
package/es/utils/constants.d.ts
CHANGED
|
@@ -143,6 +143,7 @@ export namespace columnFacadeMode {
|
|
|
143
143
|
export const badge: string;
|
|
144
144
|
const money_1: string;
|
|
145
145
|
export { money_1 as money };
|
|
146
|
+
export const dropdown: string;
|
|
146
147
|
}
|
|
147
148
|
export namespace columnPlaceholder {
|
|
148
149
|
export const placeholder: boolean;
|
|
@@ -168,7 +169,8 @@ export namespace listViewConfig {
|
|
|
168
169
|
export namespace dataContainerExtraActionBuildType {
|
|
169
170
|
export const generalButton: string;
|
|
170
171
|
export const button: string;
|
|
171
|
-
|
|
172
|
+
const dropdown_1: string;
|
|
173
|
+
export { dropdown_1 as dropdown };
|
|
172
174
|
export const dropdownButton: string;
|
|
173
175
|
export const dropdownEllipsis: string;
|
|
174
176
|
export const iconInfo: string;
|
|
@@ -212,8 +214,8 @@ export namespace drawerConfig {
|
|
|
212
214
|
export { dropdownButton_1 as dropdownButton };
|
|
213
215
|
const dropdownEllipsis_1: string;
|
|
214
216
|
export { dropdownEllipsis_1 as dropdownEllipsis };
|
|
215
|
-
const
|
|
216
|
-
export {
|
|
217
|
+
const dropdown_2: string;
|
|
218
|
+
export { dropdown_2 as dropdown };
|
|
217
219
|
const component_1: string;
|
|
218
220
|
export { component_1 as component };
|
|
219
221
|
}
|
|
@@ -248,8 +250,8 @@ export namespace cardConfig {
|
|
|
248
250
|
export { dropdownButton_2 as dropdownButton };
|
|
249
251
|
const dropdownEllipsis_2: string;
|
|
250
252
|
export { dropdownEllipsis_2 as dropdownEllipsis };
|
|
251
|
-
const
|
|
252
|
-
export {
|
|
253
|
+
const dropdown_3: string;
|
|
254
|
+
export { dropdown_3 as dropdown };
|
|
253
255
|
const component_2: string;
|
|
254
256
|
export { component_2 as component };
|
|
255
257
|
}
|
|
@@ -386,6 +388,18 @@ export namespace cardConfig {
|
|
|
386
388
|
* 分隔符
|
|
387
389
|
*/
|
|
388
390
|
divider: string;
|
|
391
|
+
/**
|
|
392
|
+
* Html
|
|
393
|
+
*/
|
|
394
|
+
html: string;
|
|
395
|
+
/**
|
|
396
|
+
* CustomGrid
|
|
397
|
+
*/
|
|
398
|
+
customGrid: string;
|
|
399
|
+
/**
|
|
400
|
+
* tree
|
|
401
|
+
*/
|
|
402
|
+
tree: string;
|
|
389
403
|
};
|
|
390
404
|
}
|
|
391
405
|
export namespace searchCardConfig {
|
|
@@ -522,8 +536,8 @@ export namespace tabBarCollection {
|
|
|
522
536
|
export { dropdownButton_3 as dropdownButton };
|
|
523
537
|
const dropdownEllipsis_3: string;
|
|
524
538
|
export { dropdownEllipsis_3 as dropdownEllipsis };
|
|
525
|
-
const
|
|
526
|
-
export {
|
|
539
|
+
const dropdown_4: string;
|
|
540
|
+
export { dropdown_4 as dropdown };
|
|
527
541
|
const component_4: string;
|
|
528
542
|
export { component_4 as component };
|
|
529
543
|
}
|
package/es/utils/constants.js
CHANGED
|
@@ -234,7 +234,13 @@ var columnFacadeMode = {
|
|
|
234
234
|
* 货币,例如¥0.05
|
|
235
235
|
* value : money
|
|
236
236
|
*/
|
|
237
|
-
money: 'money'
|
|
237
|
+
money: 'money',
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* dropdown
|
|
241
|
+
* value : dropdown component
|
|
242
|
+
*/
|
|
243
|
+
dropdown: 'dropdown'
|
|
238
244
|
};
|
|
239
245
|
exports.columnFacadeMode = columnFacadeMode;
|
|
240
246
|
var columnPlaceholder = {
|
|
@@ -569,7 +575,22 @@ var cardConfig = _objectSpread(_objectSpread({}, contentConfig), {}, {
|
|
|
569
575
|
/**
|
|
570
576
|
* 分隔符
|
|
571
577
|
*/
|
|
572
|
-
divider: 'divider'
|
|
578
|
+
divider: 'divider',
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* Html
|
|
582
|
+
*/
|
|
583
|
+
html: 'html',
|
|
584
|
+
|
|
585
|
+
/**
|
|
586
|
+
* CustomGrid
|
|
587
|
+
*/
|
|
588
|
+
customGrid: 'customGrid',
|
|
589
|
+
|
|
590
|
+
/**
|
|
591
|
+
* tree
|
|
592
|
+
*/
|
|
593
|
+
tree: 'tree'
|
|
573
594
|
}
|
|
574
595
|
});
|
|
575
596
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "antd-management-fast-framework",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.34",
|
|
4
4
|
"description": "antd-management-fast-framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"antd-management-fast-framework"
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@ant-design/icons": "^4.7.0",
|
|
33
|
-
"@ant-design/pro-layout": "^6.31.
|
|
33
|
+
"@ant-design/pro-layout": "^6.31.5",
|
|
34
34
|
"@antv/data-set": "^0.11.8",
|
|
35
|
-
"antd": "^4.17.
|
|
35
|
+
"antd": "^4.17.3",
|
|
36
36
|
"array-move": "^4.0.0",
|
|
37
|
-
"bizcharts": "^4.1.
|
|
37
|
+
"bizcharts": "^4.1.15",
|
|
38
38
|
"browserslist": "^4.18.1",
|
|
39
|
-
"caniuse-lite": "^1.0.
|
|
39
|
+
"caniuse-lite": "^1.0.30001285",
|
|
40
40
|
"classnames": "^2.3.1",
|
|
41
41
|
"copy-to-clipboard": "^3.3.1",
|
|
42
42
|
"enquire-js": "^0.2.1",
|
|
43
|
-
"html-react-parser": "^1.4.
|
|
43
|
+
"html-react-parser": "^1.4.2",
|
|
44
44
|
"lodash": "^4.17.21",
|
|
45
45
|
"lodash-decorators": "^6.0.1",
|
|
46
46
|
"lodash.debounce": "^4.0.8",
|
|
@@ -90,8 +90,8 @@
|
|
|
90
90
|
"@testing-library/react": "^12.1.2",
|
|
91
91
|
"@testing-library/react-hooks": "^7.0.2",
|
|
92
92
|
"@types/jest": "^27.0.3",
|
|
93
|
-
"@types/node": "^16.11.
|
|
94
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
93
|
+
"@types/node": "^16.11.12",
|
|
94
|
+
"@typescript-eslint/eslint-plugin": "^5.6.0",
|
|
95
95
|
"@umijs/fabric": "^2.8.1",
|
|
96
96
|
"@umijs/test": "^3.5.20",
|
|
97
97
|
"@umijs/test-utils": "^3.5.20",
|
|
@@ -101,9 +101,9 @@
|
|
|
101
101
|
"body-parser": "^1.19.0",
|
|
102
102
|
"commitizen": "^4.2.4",
|
|
103
103
|
"cross-env": "^7.0.3",
|
|
104
|
-
"eslint": "^8.
|
|
105
|
-
"eslint-config-airbnb": "^19.0.
|
|
106
|
-
"eslint-config-airbnb-typescript": "^16.
|
|
104
|
+
"eslint": "^8.4.1",
|
|
105
|
+
"eslint-config-airbnb": "^19.0.2",
|
|
106
|
+
"eslint-config-airbnb-typescript": "^16.1.0",
|
|
107
107
|
"eslint-config-prettier": "^8.3.0",
|
|
108
108
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
109
109
|
"eslint-plugin-import": "^2.25.3",
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"pify": "^5.0.0",
|
|
127
127
|
"postcss": "^8.4.4",
|
|
128
128
|
"postcss-less": "^5.0.0",
|
|
129
|
-
"prettier": "^2.5.
|
|
129
|
+
"prettier": "^2.5.1",
|
|
130
130
|
"puppeteer": "^12.0.1",
|
|
131
131
|
"query-string": "^7.0.1",
|
|
132
132
|
"react": "^17.0.2",
|