antd-management-fast-framework 1.11.31 → 1.11.33
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 +1 -0
- package/es/customComponents/FunctionComponent/index.js +9 -0
- package/es/framework/Common/index.js +10 -0
- package/es/framework/DataListView/Base/index.d.ts +9 -0
- package/es/framework/DataListView/Base/index.js +164 -9
- package/es/utils/constants.d.ts +4 -0
- package/es/utils/constants.js +6 -1
- package/package.json +1 -1
|
@@ -76,6 +76,7 @@ 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;
|
|
79
80
|
export function buildCustomGrid({ key, list, props }: {
|
|
80
81
|
key?: any;
|
|
81
82
|
list: any;
|
|
@@ -54,6 +54,7 @@ exports.buildSearchInput = buildSearchInput;
|
|
|
54
54
|
exports.buildSearchInputNumber = buildSearchInputNumber;
|
|
55
55
|
exports.buildSyntaxHighlighter = buildSyntaxHighlighter;
|
|
56
56
|
exports.buildTagList = buildTagList;
|
|
57
|
+
exports.buildTree = buildTree;
|
|
57
58
|
exports.empty = empty;
|
|
58
59
|
exports.pageHeaderExtraContent = pageHeaderExtraContent;
|
|
59
60
|
|
|
@@ -89,6 +90,10 @@ require("antd/es/col/style");
|
|
|
89
90
|
|
|
90
91
|
var _col = _interopRequireDefault(require("antd/es/col"));
|
|
91
92
|
|
|
93
|
+
require("antd/es/tree/style");
|
|
94
|
+
|
|
95
|
+
var _tree = _interopRequireDefault(require("antd/es/tree"));
|
|
96
|
+
|
|
92
97
|
require("antd/es/menu/style");
|
|
93
98
|
|
|
94
99
|
var _menu = _interopRequireDefault(require("antd/es/menu"));
|
|
@@ -915,6 +920,10 @@ function buildMenu(_ref5) {
|
|
|
915
920
|
}));
|
|
916
921
|
}
|
|
917
922
|
|
|
923
|
+
function buildTree(props) {
|
|
924
|
+
return /*#__PURE__*/_react.default.createElement(_tree.default, props);
|
|
925
|
+
}
|
|
926
|
+
|
|
918
927
|
function buildCustomGrid(_ref7) {
|
|
919
928
|
var _ref7$key = _ref7.key,
|
|
920
929
|
key = _ref7$key === void 0 ? null : _ref7$key,
|
|
@@ -1665,6 +1665,16 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1665
1665
|
}));
|
|
1666
1666
|
}
|
|
1667
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
|
+
|
|
1668
1678
|
if (type === _constants.cardConfig.contentItemType.html) {
|
|
1669
1679
|
return /*#__PURE__*/_react.default.createElement(_col.default, {
|
|
1670
1680
|
key: contentItemKey,
|
|
@@ -207,6 +207,15 @@ declare class ListBase extends AuthorizationWrapper {
|
|
|
207
207
|
renderCardCollectionView: () => JSX.Element;
|
|
208
208
|
renderPaginationView: () => JSX.Element;
|
|
209
209
|
renderView: () => JSX.Element | null;
|
|
210
|
+
establishSiderTopAreaConfig: () => null;
|
|
211
|
+
renderSiderTopArea: () => JSX.Element | null;
|
|
212
|
+
establishSiderBottomAreaConfig: () => null;
|
|
213
|
+
renderSiderBottomArea: () => JSX.Element | null;
|
|
214
|
+
buildCardCollectionArea: (config?: any) => JSX.Element | null;
|
|
215
|
+
renderSiderArea: () => JSX.Element | null;
|
|
216
|
+
renderContentArea: () => JSX.Element;
|
|
217
|
+
establishPageContentLayoutSiderConfig: () => {};
|
|
218
|
+
establishPageContentLayoutConfig: () => {};
|
|
210
219
|
renderPageContent: () => JSX.Element;
|
|
211
220
|
renderPageBody: () => JSX.Element;
|
|
212
221
|
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
|
|
|
@@ -1343,7 +1349,103 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
|
|
|
1343
1349
|
return null;
|
|
1344
1350
|
};
|
|
1345
1351
|
|
|
1346
|
-
_this.
|
|
1352
|
+
_this.establishSiderTopAreaConfig = function () {
|
|
1353
|
+
return null;
|
|
1354
|
+
};
|
|
1355
|
+
|
|
1356
|
+
_this.renderSiderTopArea = function () {
|
|
1357
|
+
var config = _this.establishSiderTopAreaConfig();
|
|
1358
|
+
|
|
1359
|
+
if (config == null) {
|
|
1360
|
+
return null;
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
return _this.buildCardCollectionArea(config);
|
|
1364
|
+
};
|
|
1365
|
+
|
|
1366
|
+
_this.establishSiderBottomAreaConfig = function () {
|
|
1367
|
+
return null;
|
|
1368
|
+
};
|
|
1369
|
+
|
|
1370
|
+
_this.renderSiderBottomArea = function () {
|
|
1371
|
+
var config = _this.establishSiderBottomAreaConfig();
|
|
1372
|
+
|
|
1373
|
+
if (config == null) {
|
|
1374
|
+
return null;
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1377
|
+
return _this.buildCardCollectionArea(config);
|
|
1378
|
+
};
|
|
1379
|
+
|
|
1380
|
+
_this.buildCardCollectionArea = function () {
|
|
1381
|
+
var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
1382
|
+
|
|
1383
|
+
if (config == null) {
|
|
1384
|
+
return null;
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
var formContentWrapperTypeConfig = _this.establishWrapperTypeConfig() || {
|
|
1388
|
+
mode: _constants.cardConfig.wrapperType.page
|
|
1389
|
+
};
|
|
1390
|
+
|
|
1391
|
+
var configData = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, {
|
|
1392
|
+
mode: _constants.cardConfig.wrapperType.page,
|
|
1393
|
+
justify: 'start',
|
|
1394
|
+
align: 'top'
|
|
1395
|
+
}), formContentWrapperTypeConfig || {}), {
|
|
1396
|
+
list: []
|
|
1397
|
+
}), config || {});
|
|
1398
|
+
|
|
1399
|
+
var mode = configData.mode,
|
|
1400
|
+
justifyGeneral = configData.justify,
|
|
1401
|
+
alignGeneral = configData.align,
|
|
1402
|
+
list = configData.list;
|
|
1403
|
+
var listData = [];
|
|
1404
|
+
|
|
1405
|
+
if ((0, _tools.isArray)(list)) {
|
|
1406
|
+
list.forEach(function (co, ci) {
|
|
1407
|
+
listData.push(co);
|
|
1408
|
+
|
|
1409
|
+
if (ci !== list.length - 1) {
|
|
1410
|
+
listData.push('');
|
|
1411
|
+
}
|
|
1412
|
+
});
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
return /*#__PURE__*/_react.default.createElement(_space.default, {
|
|
1416
|
+
style: {
|
|
1417
|
+
width: '100%'
|
|
1418
|
+
},
|
|
1419
|
+
direction: "vertical",
|
|
1420
|
+
size: 24
|
|
1421
|
+
}, listData.map(function (item, index) {
|
|
1422
|
+
return _this.buildCardCollectionItem({
|
|
1423
|
+
mode: mode,
|
|
1424
|
+
justify: justifyGeneral,
|
|
1425
|
+
align: alignGeneral,
|
|
1426
|
+
config: item,
|
|
1427
|
+
key: index
|
|
1428
|
+
});
|
|
1429
|
+
}));
|
|
1430
|
+
};
|
|
1431
|
+
|
|
1432
|
+
_this.renderSiderArea = function () {
|
|
1433
|
+
var topArea = _this.renderSiderTopArea();
|
|
1434
|
+
|
|
1435
|
+
var bottomArea = _this.renderSiderBottomArea();
|
|
1436
|
+
|
|
1437
|
+
if ((bottomArea || null) == null) {
|
|
1438
|
+
return topArea;
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
return /*#__PURE__*/_react.default.createElement(_FlexBox.default, {
|
|
1442
|
+
direction: "vertical",
|
|
1443
|
+
top: topArea,
|
|
1444
|
+
bottom: bottomArea
|
|
1445
|
+
});
|
|
1446
|
+
};
|
|
1447
|
+
|
|
1448
|
+
_this.renderContentArea = function () {
|
|
1347
1449
|
var _this$state10 = _this.state,
|
|
1348
1450
|
listTitle = _this$state10.listTitle,
|
|
1349
1451
|
renderSearchForm = _this$state10.renderSearchForm;
|
|
@@ -1353,18 +1455,13 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
|
|
|
1353
1455
|
var searchForm = _this.renderForm();
|
|
1354
1456
|
|
|
1355
1457
|
var hasPagination = _this.renderPaginationView() != null;
|
|
1356
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
1357
|
-
className: _index.default.containorBox,
|
|
1358
|
-
style: {
|
|
1359
|
-
overflowX: 'hidden'
|
|
1360
|
-
}
|
|
1361
|
-
}, /*#__PURE__*/_react.default.createElement(_space.default, {
|
|
1458
|
+
return /*#__PURE__*/_react.default.createElement(_space.default, {
|
|
1362
1459
|
style: {
|
|
1363
1460
|
width: '100%'
|
|
1364
1461
|
},
|
|
1365
1462
|
direction: "vertical",
|
|
1366
1463
|
size: 24
|
|
1367
|
-
},
|
|
1464
|
+
}, renderSearchForm && (searchForm || null) != null ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_card.default, {
|
|
1368
1465
|
bordered: false,
|
|
1369
1466
|
className: _index.default.containorSearch
|
|
1370
1467
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -1385,7 +1482,65 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
|
|
|
1385
1482
|
}), _this.renderBatchAction(), _this.renderCardExtraAction())
|
|
1386
1483
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
1387
1484
|
className: _index.default.tableList
|
|
1388
|
-
}, _this.renderAboveTable(), _this.renderView()))
|
|
1485
|
+
}, _this.renderAboveTable(), _this.renderView())));
|
|
1486
|
+
};
|
|
1487
|
+
|
|
1488
|
+
_this.establishPageContentLayoutSiderConfig = function () {
|
|
1489
|
+
return {};
|
|
1490
|
+
};
|
|
1491
|
+
|
|
1492
|
+
_this.establishPageContentLayoutConfig = function () {
|
|
1493
|
+
return {};
|
|
1494
|
+
};
|
|
1495
|
+
|
|
1496
|
+
_this.renderPageContent = function () {
|
|
1497
|
+
var siderArea = _this.renderSiderArea();
|
|
1498
|
+
|
|
1499
|
+
var contentArea = _this.renderContentArea();
|
|
1500
|
+
|
|
1501
|
+
var layoutSiderConfig = _this.establishPageContentLayoutSiderConfig();
|
|
1502
|
+
|
|
1503
|
+
var layoutConfig = _this.establishPageContentLayoutConfig();
|
|
1504
|
+
|
|
1505
|
+
var _position = _objectSpread(_objectSpread({}, {
|
|
1506
|
+
position: 'left'
|
|
1507
|
+
}), layoutSiderConfig || {}),
|
|
1508
|
+
siderPosition = _position.position;
|
|
1509
|
+
|
|
1510
|
+
var siderConfig = _objectSpread(_objectSpread({}, {
|
|
1511
|
+
width: 300,
|
|
1512
|
+
style: _objectSpread(_objectSpread({}, {
|
|
1513
|
+
backgroundColor: '#fff',
|
|
1514
|
+
borderRadius: '4px',
|
|
1515
|
+
overflowX: 'auto',
|
|
1516
|
+
overflowY: 'hidden'
|
|
1517
|
+
}), siderPosition === 'left' ? {
|
|
1518
|
+
marginRight: '24px'
|
|
1519
|
+
} : {
|
|
1520
|
+
marginLeft: '24px'
|
|
1521
|
+
})
|
|
1522
|
+
}), layoutSiderConfig || {});
|
|
1523
|
+
|
|
1524
|
+
layoutConfig = _objectSpread(_objectSpread({}, {
|
|
1525
|
+
breakpoint: 'sm',
|
|
1526
|
+
style: {
|
|
1527
|
+
backgroundColor: '#f0f2f5',
|
|
1528
|
+
minHeight: 'auto'
|
|
1529
|
+
}
|
|
1530
|
+
}), layoutConfig || {});
|
|
1531
|
+
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);
|
|
1532
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
1533
|
+
className: _index.default.containorBox,
|
|
1534
|
+
style: {
|
|
1535
|
+
overflowX: 'hidden'
|
|
1536
|
+
}
|
|
1537
|
+
}, /*#__PURE__*/_react.default.createElement(_space.default, {
|
|
1538
|
+
style: {
|
|
1539
|
+
width: '100%'
|
|
1540
|
+
},
|
|
1541
|
+
direction: "vertical",
|
|
1542
|
+
size: 24
|
|
1543
|
+
}, _this.buildToolBarWrapper(), inner, _this.buildHelpWrapper()));
|
|
1389
1544
|
};
|
|
1390
1545
|
|
|
1391
1546
|
_this.renderPageBody = function () {
|
package/es/utils/constants.d.ts
CHANGED
package/es/utils/constants.js
CHANGED