antd-management-fast-framework 1.2.6 → 1.2.7
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.
|
@@ -1365,6 +1365,7 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
|
|
|
1365
1365
|
|
|
1366
1366
|
_this.renderTableView = function () {
|
|
1367
1367
|
var _this$state6 = _this.state,
|
|
1368
|
+
metaListData = _this$state6.metaListData,
|
|
1368
1369
|
tableScroll = _this$state6.tableScroll,
|
|
1369
1370
|
showSelect = _this$state6.showSelect,
|
|
1370
1371
|
selectedDataTableDataRows = _this$state6.selectedDataTableDataRows,
|
|
@@ -1406,13 +1407,18 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
|
|
|
1406
1407
|
standardTableCustomOption.scroll = tableScroll;
|
|
1407
1408
|
}
|
|
1408
1409
|
|
|
1409
|
-
var
|
|
1410
|
+
var _checkNeedExpander$ro = _objectSpread(_objectSpread({}, {
|
|
1411
|
+
// 断整夜数据,如若整页数据不需要显示展开按钮,则整体不渲染,有助于优化页面显示效果,需要判断时配置此处检测函数
|
|
1412
|
+
checkNeedExpander: function checkNeedExpander(list) {
|
|
1413
|
+
return (0, _tools.isArray)(list) && list.length > 0;
|
|
1414
|
+
},
|
|
1410
1415
|
rowExpandable: false,
|
|
1411
1416
|
expandPlaceholderIcon: /*#__PURE__*/_react["default"].createElement(_icons.BorderOuterOutlined, {
|
|
1412
1417
|
style: {
|
|
1413
1418
|
color: '#ccc'
|
|
1414
1419
|
}
|
|
1415
1420
|
}),
|
|
1421
|
+
expanderStyle: null,
|
|
1416
1422
|
animalType: _constants.listViewConfig.expandAnimalType.none,
|
|
1417
1423
|
expandIconRotate: true,
|
|
1418
1424
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -1424,14 +1430,17 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
|
|
|
1424
1430
|
},
|
|
1425
1431
|
expandedRowRender: null
|
|
1426
1432
|
}), expandable || null),
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1433
|
+
checkNeedExpander = _checkNeedExpander$ro.checkNeedExpander,
|
|
1434
|
+
rowExpandable = _checkNeedExpander$ro.rowExpandable,
|
|
1435
|
+
expandPlaceholderIcon = _checkNeedExpander$ro.expandPlaceholderIcon,
|
|
1436
|
+
expanderStyle = _checkNeedExpander$ro.expanderStyle,
|
|
1437
|
+
expandAnimalType = _checkNeedExpander$ro.animalType,
|
|
1438
|
+
expandIconRotate = _checkNeedExpander$ro.expandIconRotate,
|
|
1439
|
+
expandIconCustom = _checkNeedExpander$ro.expandIcon,
|
|
1440
|
+
expandedRowRenderCustom = _checkNeedExpander$ro.expandedRowRender;
|
|
1441
|
+
|
|
1442
|
+
var checkNeedExpanderResult = checkNeedExpander(metaListData);
|
|
1443
|
+
var expandableConfig = (0, _tools.isBoolean)(checkNeedExpanderResult) && checkNeedExpanderResult ? {
|
|
1435
1444
|
rowExpandable: rowExpandable,
|
|
1436
1445
|
expandIcon: function expandIcon(_ref5) {
|
|
1437
1446
|
var canExpand = _ref5.expandable,
|
|
@@ -1467,20 +1476,22 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
|
|
|
1467
1476
|
var child = expandedRowRenderCustom(record, index, indent, expanded);
|
|
1468
1477
|
|
|
1469
1478
|
if (expandAnimalType === _constants.listViewConfig.expandAnimalType.fade) {
|
|
1470
|
-
|
|
1479
|
+
child = /*#__PURE__*/_react["default"].createElement(_FadeBox["default"], {
|
|
1471
1480
|
show: expanded
|
|
1472
1481
|
}, child);
|
|
1473
1482
|
}
|
|
1474
1483
|
|
|
1475
1484
|
if (expandAnimalType === _constants.listViewConfig.expandAnimalType.queue) {
|
|
1476
|
-
|
|
1485
|
+
child = /*#__PURE__*/_react["default"].createElement(_QueueBox["default"], {
|
|
1477
1486
|
show: expanded
|
|
1478
1487
|
}, child);
|
|
1479
1488
|
}
|
|
1480
1489
|
|
|
1481
|
-
return
|
|
1490
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
1491
|
+
style: expanderStyle || {}
|
|
1492
|
+
}, child);
|
|
1482
1493
|
}
|
|
1483
|
-
};
|
|
1494
|
+
} : {};
|
|
1484
1495
|
standardTableCustomOption.expandable = expandableConfig;
|
|
1485
1496
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
1486
1497
|
className: _index["default"].tableContainor
|
|
@@ -1365,6 +1365,7 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
|
|
|
1365
1365
|
|
|
1366
1366
|
_this.renderTableView = function () {
|
|
1367
1367
|
var _this$state6 = _this.state,
|
|
1368
|
+
metaListData = _this$state6.metaListData,
|
|
1368
1369
|
tableScroll = _this$state6.tableScroll,
|
|
1369
1370
|
showSelect = _this$state6.showSelect,
|
|
1370
1371
|
selectedDataTableDataRows = _this$state6.selectedDataTableDataRows,
|
|
@@ -1406,13 +1407,18 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
|
|
|
1406
1407
|
standardTableCustomOption.scroll = tableScroll;
|
|
1407
1408
|
}
|
|
1408
1409
|
|
|
1409
|
-
var
|
|
1410
|
+
var _checkNeedExpander$ro = _objectSpread(_objectSpread({}, {
|
|
1411
|
+
// 断整夜数据,如若整页数据不需要显示展开按钮,则整体不渲染,有助于优化页面显示效果,需要判断时配置此处检测函数
|
|
1412
|
+
checkNeedExpander: function checkNeedExpander(list) {
|
|
1413
|
+
return (0, _tools.isArray)(list) && list.length > 0;
|
|
1414
|
+
},
|
|
1410
1415
|
rowExpandable: false,
|
|
1411
1416
|
expandPlaceholderIcon: /*#__PURE__*/_react["default"].createElement(_icons.BorderOuterOutlined, {
|
|
1412
1417
|
style: {
|
|
1413
1418
|
color: '#ccc'
|
|
1414
1419
|
}
|
|
1415
1420
|
}),
|
|
1421
|
+
expanderStyle: null,
|
|
1416
1422
|
animalType: _constants.listViewConfig.expandAnimalType.none,
|
|
1417
1423
|
expandIconRotate: true,
|
|
1418
1424
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -1424,14 +1430,17 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
|
|
|
1424
1430
|
},
|
|
1425
1431
|
expandedRowRender: null
|
|
1426
1432
|
}), expandable || null),
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1433
|
+
checkNeedExpander = _checkNeedExpander$ro.checkNeedExpander,
|
|
1434
|
+
rowExpandable = _checkNeedExpander$ro.rowExpandable,
|
|
1435
|
+
expandPlaceholderIcon = _checkNeedExpander$ro.expandPlaceholderIcon,
|
|
1436
|
+
expanderStyle = _checkNeedExpander$ro.expanderStyle,
|
|
1437
|
+
expandAnimalType = _checkNeedExpander$ro.animalType,
|
|
1438
|
+
expandIconRotate = _checkNeedExpander$ro.expandIconRotate,
|
|
1439
|
+
expandIconCustom = _checkNeedExpander$ro.expandIcon,
|
|
1440
|
+
expandedRowRenderCustom = _checkNeedExpander$ro.expandedRowRender;
|
|
1441
|
+
|
|
1442
|
+
var checkNeedExpanderResult = checkNeedExpander(metaListData);
|
|
1443
|
+
var expandableConfig = (0, _tools.isBoolean)(checkNeedExpanderResult) && checkNeedExpanderResult ? {
|
|
1435
1444
|
rowExpandable: rowExpandable,
|
|
1436
1445
|
expandIcon: function expandIcon(_ref5) {
|
|
1437
1446
|
var canExpand = _ref5.expandable,
|
|
@@ -1467,20 +1476,22 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
|
|
|
1467
1476
|
var child = expandedRowRenderCustom(record, index, indent, expanded);
|
|
1468
1477
|
|
|
1469
1478
|
if (expandAnimalType === _constants.listViewConfig.expandAnimalType.fade) {
|
|
1470
|
-
|
|
1479
|
+
child = /*#__PURE__*/_react["default"].createElement(_FadeBox["default"], {
|
|
1471
1480
|
show: expanded
|
|
1472
1481
|
}, child);
|
|
1473
1482
|
}
|
|
1474
1483
|
|
|
1475
1484
|
if (expandAnimalType === _constants.listViewConfig.expandAnimalType.queue) {
|
|
1476
|
-
|
|
1485
|
+
child = /*#__PURE__*/_react["default"].createElement(_QueueBox["default"], {
|
|
1477
1486
|
show: expanded
|
|
1478
1487
|
}, child);
|
|
1479
1488
|
}
|
|
1480
1489
|
|
|
1481
|
-
return
|
|
1490
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
1491
|
+
style: expanderStyle || {}
|
|
1492
|
+
}, child);
|
|
1482
1493
|
}
|
|
1483
|
-
};
|
|
1494
|
+
} : {};
|
|
1484
1495
|
standardTableCustomOption.expandable = expandableConfig;
|
|
1485
1496
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
1486
1497
|
className: _index["default"].tableContainor
|