antd-management-fast-framework 1.9.39 → 1.11.2
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/configGroup/configGeneral.js +1 -1
- package/es/configGroup/webpackPlugin.js +5 -5
- package/es/customComponents/AMap/UIPoiPicker.js +2 -2
- package/es/customComponents/AMap/UIPositionPicker.js +2 -2
- package/es/customComponents/ActiveChart/index.js +22 -22
- package/es/customComponents/AnimalBox/FadeBox/index.js +8 -8
- package/es/customComponents/AnimalBox/QueueBox/index.js +5 -5
- package/es/customComponents/AnimalBox/QueueListBox/index.js +8 -8
- package/es/customComponents/AnimalBox/RotateBox/index.js +6 -6
- package/es/customComponents/ArticleListContent/index.js +13 -13
- package/es/customComponents/Authorized/Authorized.js +6 -6
- package/es/customComponents/Authorized/AuthorizedRoute.js +8 -8
- package/es/customComponents/Authorized/CheckPermissions.js +5 -5
- package/es/customComponents/Authorized/PromiseRender.js +11 -11
- package/es/customComponents/Authorized/Secured.js +8 -8
- package/es/customComponents/Authorized/index.js +6 -6
- package/es/customComponents/Authorized/renderAuthorize.js +2 -2
- package/es/customComponents/AvatarList/index.js +16 -16
- package/es/customComponents/Canvas/Bubbly/index.js +4 -4
- package/es/customComponents/Canvas/Core/index.js +7 -7
- package/es/customComponents/Canvas/RadarScanning/index.js +4 -4
- package/es/customComponents/Canvas/Spirit/index.js +4 -4
- package/es/customComponents/Canvas/index.js +6 -6
- package/es/customComponents/CenterBox/index.js +5 -5
- package/es/customComponents/Charts/Bar/index.js +12 -12
- package/es/customComponents/Charts/ChartCard/index.js +29 -29
- package/es/customComponents/Charts/Field/index.js +9 -9
- package/es/customComponents/Charts/Gauge/index.js +14 -14
- package/es/customComponents/Charts/MiniArea/index.js +13 -13
- package/es/customComponents/Charts/MiniBar/index.js +10 -10
- package/es/customComponents/Charts/MiniProgress/index.js +14 -14
- package/es/customComponents/Charts/Pie/index.js +33 -33
- package/es/customComponents/Charts/TagCloud/index.js +12 -12
- package/es/customComponents/Charts/TimelineChart/index.js +14 -14
- package/es/customComponents/Charts/WaterWave/index.js +12 -12
- package/es/customComponents/Charts/autoHeight.js +5 -5
- package/es/customComponents/Charts/bizcharts.js +3 -3
- package/es/customComponents/Charts/index.js +26 -26
- package/es/customComponents/ColorText/index.js +7 -7
- package/es/customComponents/Countdown/index.js +7 -7
- package/es/customComponents/DataPreviewDrawer/index.js +14 -14
- package/es/customComponents/DecorateAvatar/index.js +9 -9
- package/es/customComponents/DisplayCopyData/index.js +7 -7
- package/es/customComponents/EditableItem/index.js +15 -15
- package/es/customComponents/EditableLinkGroup/index.js +11 -11
- package/es/customComponents/Ellipsis/index.js +35 -26
- package/es/customComponents/Ellipsis/index.less +2 -1
- package/es/customComponents/EllipsisCustom/index.js +23 -23
- package/es/customComponents/EverySpace/index.js +5 -5
- package/es/customComponents/Exception/index.js +20 -20
- package/es/customComponents/Exception/typeConfig.js +2 -2
- package/es/customComponents/FigureRange/index.js +33 -33
- package/es/customComponents/FileBase64Upload/index.js +8 -8
- package/es/customComponents/FlexBox/index.js +23 -17
- package/es/customComponents/FlexText/index.d.ts +1 -0
- package/es/customComponents/FlexText/index.js +16 -8
- package/es/customComponents/FooterToolbar/index.js +11 -11
- package/es/customComponents/FromDisplayItem/index.js +6 -6
- package/es/customComponents/FunctionComponent/index.js +211 -200
- package/es/customComponents/GlobalFooter/index.js +10 -10
- package/es/customComponents/HelpBox/index.js +8 -8
- package/es/customComponents/HelpCard/index.js +6 -6
- package/es/customComponents/HtmlBox/index.js +6 -6
- package/es/customComponents/IconInfo/index.d.ts +5 -1
- package/es/customComponents/IconInfo/index.js +160 -68
- package/es/customComponents/ImageBox/index.js +48 -48
- package/es/customComponents/ImageContentPreview/index.js +18 -18
- package/es/customComponents/ImageUpload/index.js +31 -31
- package/es/customComponents/Login/LoginItem.js +18 -18
- package/es/customComponents/Login/LoginSubmit.js +6 -6
- package/es/customComponents/Login/LoginTab.js +8 -8
- package/es/customComponents/Login/index.js +19 -19
- package/es/customComponents/Login/loginContext.js +2 -2
- package/es/customComponents/Login/map.js +11 -11
- package/es/customComponents/MobileContainor/index.js +11 -11
- package/es/customComponents/NoticeIconCustom/NoticeList.js +26 -26
- package/es/customComponents/NoticeIconCustom/index.js +19 -19
- package/es/customComponents/NumberInfo/index.js +16 -16
- package/es/customComponents/PageLoading/index.js +2 -2
- package/es/customComponents/PercentageBox/index.js +4 -4
- package/es/customComponents/PriceBox/index.js +9 -9
- package/es/customComponents/Result/index.js +18 -18
- package/es/customComponents/StandardFormRow/index.js +9 -9
- package/es/customComponents/StandardTable/index.js +14 -14
- package/es/customComponents/StandardTableCustom/index.js +15 -15
- package/es/customComponents/StatusBar/index.js +9 -9
- package/es/customComponents/TagSelect/index.js +15 -15
- package/es/customComponents/TimeLineCustom/index.js +40 -40
- package/es/customComponents/Trend/index.js +7 -7
- package/es/customComponents/VerticalBox/index.js +8 -8
- package/es/customComponents/VideoUpload/index.js +35 -35
- package/es/framework/AuthorizationWrapper/index.js +4 -4
- package/es/framework/Base/index.js +6 -6
- package/es/framework/ButtonExtension/SelectButton/Base/index.js +6 -6
- package/es/framework/ButtonExtension/SelectButton/InteractiveBase/index.js +4 -4
- package/es/framework/Common/index.js +98 -92
- package/es/framework/Core/index.js +4 -4
- package/es/framework/CustomBase/index.js +2 -2
- package/es/framework/CustomWrapper/Supplement/index.js +4 -4
- package/es/framework/CustomWrapper/SupplementCore/index.js +4 -4
- package/es/framework/CustomWrapper/SupplementWrapper/index.js +4 -4
- package/es/framework/DataDrawer/Base/index.js +26 -26
- package/es/framework/DataDrawer/BaseAddDrawer/index.js +5 -5
- package/es/framework/DataDrawer/BaseLoadDrawer/index.js +4 -4
- package/es/framework/DataDrawer/BaseNeedlessLoadDrawer/index.js +4 -4
- package/es/framework/DataDrawer/BaseSaveDrawer/index.js +4 -4
- package/es/framework/DataDrawer/BaseUpdateDrawer/index.js +4 -4
- package/es/framework/DataForm/BaseAddForm/index.js +11 -11
- package/es/framework/DataForm/BaseUpdateForm/index.js +7 -7
- package/es/framework/DataForm/BaseUpdateFormContent/index.js +5 -5
- package/es/framework/DataForm/BaseUpdateFormTab/index.js +4 -4
- package/es/framework/DataListView/Base/index.js +79 -79
- package/es/framework/DataListView/BatchAction/index.js +18 -18
- package/es/framework/DataListView/ColumnSetting/DndItem.js +4 -4
- package/es/framework/DataListView/ColumnSetting/index.js +37 -37
- package/es/framework/DataListView/DensityAction/index.js +12 -12
- package/es/framework/DataMenuContainer/index.js +15 -15
- package/es/framework/DataModal/Base/index.js +14 -14
- package/es/framework/DataModal/BaseAddModal/index.js +4 -4
- package/es/framework/DataModal/BaseLoadModal/index.js +4 -4
- package/es/framework/DataModal/BaseNeedlessLoadModal/index.js +4 -4
- package/es/framework/DataModal/BaseSelectModal/index.js +4 -4
- package/es/framework/DataModal/BaseUpdateModal/index.js +4 -4
- package/es/framework/DataModal/BaseUpdateTransferModal/index.js +5 -5
- package/es/framework/DataMultiPageView/InnerMultiPage/index.js +4 -4
- package/es/framework/DataMultiPageView/MultiPage/index.js +6 -6
- package/es/framework/DataMultiPageView/MultiPageDrawer/index.js +51 -51
- package/es/framework/DataMultiPageView/MultiPageSelectDrawer/index.js +6 -6
- package/es/framework/DataOperation/Base/index.js +10 -10
- package/es/framework/DataOperation/BaseView/index.js +4 -4
- package/es/framework/DataOperation/BaseWindow/index.js +8 -8
- package/es/framework/DataSinglePageView/InnerSinglePage/index.js +4 -4
- package/es/framework/DataSinglePageView/SinglePage/index.js +6 -6
- package/es/framework/DataSinglePageView/SinglePageDrawer/index.js +48 -48
- package/es/framework/DataSinglePageView/SinglePageSelectDrawer/index.js +6 -6
- package/es/framework/DataSingleView/DataCore/index.js +21 -21
- package/es/framework/DataSingleView/DataLoad/index.js +4 -4
- package/es/framework/DataTabContainer/index.js +9 -9
- package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldBase/index.js +10 -10
- package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldDrawerBase/index.js +5 -5
- package/es/framework/Wrapper/index.js +4 -4
- package/es/index.js +1 -1
- package/es/utils/Authorized.js +5 -5
- package/es/utils/Yuan.js +5 -5
- package/es/utils/actionAssist.js +6 -6
- package/es/utils/authority.js +2 -2
- package/es/utils/cacheAssist.js +2 -2
- package/es/utils/constants.d.ts +1 -0
- package/es/utils/constants.js +7 -2
- package/es/utils/proLayoutCollection.js +7 -7
- package/es/utils/request.js +7 -7
- package/es/utils/requestAssistor.js +5 -5
- package/es/utils/tools.js +34 -34
- package/es/utils/virtualRequest.js +4 -4
- package/package.json +3 -1
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports
|
|
8
|
+
exports.default = void 0;
|
|
9
9
|
|
|
10
10
|
require("antd/es/row/style");
|
|
11
11
|
|
|
@@ -73,6 +73,8 @@ var _FadeBox = _interopRequireDefault(require("../../customComponents/AnimalBox/
|
|
|
73
73
|
|
|
74
74
|
var _QueueBox = _interopRequireDefault(require("../../customComponents/AnimalBox/QueueBox"));
|
|
75
75
|
|
|
76
|
+
var _ColorText = _interopRequireDefault(require("../../customComponents/ColorText"));
|
|
77
|
+
|
|
76
78
|
var _FunctionComponent = require("../../customComponents/FunctionComponent");
|
|
77
79
|
|
|
78
80
|
var _Whether = require("../../customComponents/FunctionSupplement/Whether");
|
|
@@ -83,9 +85,9 @@ var _index = _interopRequireDefault(require("./index.less"));
|
|
|
83
85
|
|
|
84
86
|
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); }
|
|
85
87
|
|
|
86
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return {
|
|
88
|
+
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; }
|
|
87
89
|
|
|
88
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {
|
|
90
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
89
91
|
|
|
90
92
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
91
93
|
|
|
@@ -416,7 +418,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
416
418
|
}
|
|
417
419
|
|
|
418
420
|
_this.clearRequestingData();
|
|
419
|
-
})
|
|
421
|
+
}).catch(function (res) {
|
|
420
422
|
(0, _tools.recordObject)(res);
|
|
421
423
|
|
|
422
424
|
_this.setState({
|
|
@@ -611,7 +613,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
611
613
|
|
|
612
614
|
_this.renderSearchInput = function (label, name) {
|
|
613
615
|
var helper = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
614
|
-
var icon = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : /*#__PURE__*/_react
|
|
616
|
+
var icon = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : /*#__PURE__*/_react.default.createElement(_icons.FormOutlined, null);
|
|
615
617
|
var inputProps = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
|
|
616
618
|
var canOperate = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : true;
|
|
617
619
|
var formItemLayout = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : {};
|
|
@@ -628,7 +630,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
628
630
|
|
|
629
631
|
_this.renderSearchInputNumber = function (label, name) {
|
|
630
632
|
var helper = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
631
|
-
var icon = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : /*#__PURE__*/_react
|
|
633
|
+
var icon = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : /*#__PURE__*/_react.default.createElement(_icons.FormOutlined, null);
|
|
632
634
|
var inputProps = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
|
|
633
635
|
var canOperate = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : true;
|
|
634
636
|
var formItemLayout = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : {};
|
|
@@ -664,7 +666,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
664
666
|
|
|
665
667
|
_this.renderFormInputFieldData = function (fieldData) {
|
|
666
668
|
var required = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
667
|
-
var icon = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : /*#__PURE__*/_react
|
|
669
|
+
var icon = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : /*#__PURE__*/_react.default.createElement(_icons.FormOutlined, null);
|
|
668
670
|
var inputProps = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
669
671
|
var canOperate = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
|
|
670
672
|
var formItemLayout = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : {};
|
|
@@ -685,7 +687,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
685
687
|
_this.renderFormInput = function (label, name) {
|
|
686
688
|
var required = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
687
689
|
var helper = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
688
|
-
var icon = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : /*#__PURE__*/_react
|
|
690
|
+
var icon = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : /*#__PURE__*/_react.default.createElement(_icons.FormOutlined, null);
|
|
689
691
|
var inputProps = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : {};
|
|
690
692
|
var canOperate = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : true;
|
|
691
693
|
var formItemLayout = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : {};
|
|
@@ -727,7 +729,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
727
729
|
_this.renderFormPassword = function (label, name) {
|
|
728
730
|
var required = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
729
731
|
var helper = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
730
|
-
var icon = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : /*#__PURE__*/_react
|
|
732
|
+
var icon = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : /*#__PURE__*/_react.default.createElement(_icons.FormOutlined, null);
|
|
731
733
|
var inputProps = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : {};
|
|
732
734
|
var canOperate = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : true;
|
|
733
735
|
var formItemLayout = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : {};
|
|
@@ -842,7 +844,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
842
844
|
|
|
843
845
|
_this.renderFormOnlyShowInput = function (label, value) {
|
|
844
846
|
var helper = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
845
|
-
var icon = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : /*#__PURE__*/_react
|
|
847
|
+
var icon = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : /*#__PURE__*/_react.default.createElement(_icons.FormOutlined, null);
|
|
846
848
|
var inputProps = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {
|
|
847
849
|
disabled: true
|
|
848
850
|
};
|
|
@@ -860,7 +862,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
860
862
|
_this.renderFormInputNumber = function (label, name) {
|
|
861
863
|
var required = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
862
864
|
var helper = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
863
|
-
var icon = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : /*#__PURE__*/_react
|
|
865
|
+
var icon = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : /*#__PURE__*/_react.default.createElement(_icons.FormOutlined, null);
|
|
864
866
|
var inputNumberProps = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : {};
|
|
865
867
|
var canOperate = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : true;
|
|
866
868
|
var formItemLayout = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : {};
|
|
@@ -984,16 +986,16 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
984
986
|
};
|
|
985
987
|
|
|
986
988
|
_this.getSaveButtonIcon = function () {
|
|
987
|
-
return /*#__PURE__*/_react
|
|
989
|
+
return /*#__PURE__*/_react.default.createElement(_icons.SaveOutlined, null);
|
|
988
990
|
};
|
|
989
991
|
|
|
990
992
|
_this.getDisabledButtonIcon = function () {
|
|
991
|
-
return /*#__PURE__*/_react
|
|
993
|
+
return /*#__PURE__*/_react.default.createElement(_icons.SaveOutlined, null);
|
|
992
994
|
};
|
|
993
995
|
|
|
994
996
|
_this.renderDisabledButton = function () {
|
|
995
997
|
var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
996
|
-
return /*#__PURE__*/_react
|
|
998
|
+
return /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
997
999
|
type: "primary",
|
|
998
1000
|
disabled: true
|
|
999
1001
|
}, _this.getDisabledButtonIcon(), text || '保存');
|
|
@@ -1091,11 +1093,11 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1091
1093
|
reloading = _this$state2.reloading,
|
|
1092
1094
|
processing = _this$state2.processing,
|
|
1093
1095
|
loadSuccess = _this$state2.loadSuccess;
|
|
1094
|
-
return /*#__PURE__*/_react
|
|
1096
|
+
return /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
1095
1097
|
disabled: dataLoading || reloading || processing || !loadSuccess,
|
|
1096
1098
|
onClick: _this.reloadData
|
|
1097
|
-
}, /*#__PURE__*/_react
|
|
1098
|
-
icon: reloading ? /*#__PURE__*/_react
|
|
1099
|
+
}, /*#__PURE__*/_react.default.createElement(_IconInfo.default, {
|
|
1100
|
+
icon: reloading ? /*#__PURE__*/_react.default.createElement(_icons.LoadingOutlined, null) : /*#__PURE__*/_react.default.createElement(_icons.ReloadOutlined, null),
|
|
1099
1101
|
text: "\u5237\u65B0"
|
|
1100
1102
|
}));
|
|
1101
1103
|
};
|
|
@@ -1189,19 +1191,19 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1189
1191
|
});
|
|
1190
1192
|
});
|
|
1191
1193
|
|
|
1192
|
-
var bar = /*#__PURE__*/_react
|
|
1193
|
-
className: _index
|
|
1194
|
-
}, /*#__PURE__*/_react
|
|
1195
|
-
title: /*#__PURE__*/_react
|
|
1196
|
-
icon: /*#__PURE__*/_react
|
|
1194
|
+
var bar = /*#__PURE__*/_react.default.createElement("div", {
|
|
1195
|
+
className: _index.default.cardContainor
|
|
1196
|
+
}, /*#__PURE__*/_react.default.createElement(_card.default, {
|
|
1197
|
+
title: /*#__PURE__*/_react.default.createElement(_IconInfo.default, {
|
|
1198
|
+
icon: /*#__PURE__*/_react.default.createElement(_icons.ToolOutlined, null),
|
|
1197
1199
|
text: title || '工具栏'
|
|
1198
1200
|
}),
|
|
1199
1201
|
bordered: false,
|
|
1200
1202
|
bodyStyle: {
|
|
1201
1203
|
padding: 0
|
|
1202
1204
|
},
|
|
1203
|
-
extra: /*#__PURE__*/_react
|
|
1204
|
-
split: /*#__PURE__*/_react
|
|
1205
|
+
extra: /*#__PURE__*/_react.default.createElement(_space.default, {
|
|
1206
|
+
split: /*#__PURE__*/_react.default.createElement(_divider.default, {
|
|
1205
1207
|
type: "vertical"
|
|
1206
1208
|
})
|
|
1207
1209
|
}, toolList.map(function (o) {
|
|
@@ -1214,7 +1216,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1214
1216
|
return null;
|
|
1215
1217
|
}
|
|
1216
1218
|
|
|
1217
|
-
return /*#__PURE__*/_react
|
|
1219
|
+
return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
|
|
1218
1220
|
key: o.key,
|
|
1219
1221
|
title: o.title || ''
|
|
1220
1222
|
}, o.component);
|
|
@@ -1222,7 +1224,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1222
1224
|
}));
|
|
1223
1225
|
|
|
1224
1226
|
if ((0, _tools.isBoolean)(stick) && stick) {
|
|
1225
|
-
return /*#__PURE__*/_react
|
|
1227
|
+
return /*#__PURE__*/_react.default.createElement(_affix.default, {
|
|
1226
1228
|
offsetTop: 0
|
|
1227
1229
|
}, bar);
|
|
1228
1230
|
}
|
|
@@ -1285,7 +1287,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1285
1287
|
return null;
|
|
1286
1288
|
}
|
|
1287
1289
|
|
|
1288
|
-
return /*#__PURE__*/_react
|
|
1290
|
+
return /*#__PURE__*/_react.default.createElement(_HelpCard.default, {
|
|
1289
1291
|
border: mode !== _constants.contentConfig.wrapperType.model && mode !== _constants.contentConfig.wrapperType.drawer,
|
|
1290
1292
|
compact: mode === _constants.contentConfig.wrapperType.model,
|
|
1291
1293
|
helpBoxProps: {
|
|
@@ -1335,7 +1337,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1335
1337
|
});
|
|
1336
1338
|
}
|
|
1337
1339
|
|
|
1338
|
-
return /*#__PURE__*/_react
|
|
1340
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_space.default, {
|
|
1339
1341
|
style: {
|
|
1340
1342
|
width: '100%'
|
|
1341
1343
|
},
|
|
@@ -1405,20 +1407,24 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1405
1407
|
return null;
|
|
1406
1408
|
}
|
|
1407
1409
|
|
|
1408
|
-
var _image$
|
|
1410
|
+
var _image$imageCircle$ic = _objectSpread(_objectSpread({}, {
|
|
1409
1411
|
image: '',
|
|
1412
|
+
imageCircle: true,
|
|
1410
1413
|
icon: null,
|
|
1411
1414
|
text: '',
|
|
1415
|
+
textEllipsisMaxWidth: 0,
|
|
1412
1416
|
subText: '',
|
|
1413
1417
|
addonBefore: null,
|
|
1414
1418
|
addonAfter: null
|
|
1415
1419
|
}), title || {}),
|
|
1416
|
-
image = _image$
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1420
|
+
image = _image$imageCircle$ic.image,
|
|
1421
|
+
imageCircle = _image$imageCircle$ic.imageCircle,
|
|
1422
|
+
icon = _image$imageCircle$ic.icon,
|
|
1423
|
+
text = _image$imageCircle$ic.text,
|
|
1424
|
+
textEllipsisMaxWidth = _image$imageCircle$ic.textEllipsisMaxWidth,
|
|
1425
|
+
subText = _image$imageCircle$ic.subText,
|
|
1426
|
+
titleAddonBefore = _image$imageCircle$ic.addonBefore,
|
|
1427
|
+
titleAddonAfter = _image$imageCircle$ic.addonAfter;
|
|
1422
1428
|
|
|
1423
1429
|
var _affix$split$list = _objectSpread(_objectSpread({}, {
|
|
1424
1430
|
affix: false,
|
|
@@ -1430,7 +1436,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1430
1436
|
extraItemList = _affix$split$list.list;
|
|
1431
1437
|
|
|
1432
1438
|
var imageVisible = !(0, _tools.stringIsNullOrWhiteSpace)(image);
|
|
1433
|
-
var iconAdjust = imageVisible ? icon : icon || /*#__PURE__*/_react
|
|
1439
|
+
var iconAdjust = imageVisible ? icon : icon || /*#__PURE__*/_react.default.createElement(_icons.ContactsOutlined, null);
|
|
1434
1440
|
var extraListData = [];
|
|
1435
1441
|
|
|
1436
1442
|
if ((0, _tools.isArray)(extraItemList)) {
|
|
@@ -1460,10 +1466,11 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1460
1466
|
};
|
|
1461
1467
|
}
|
|
1462
1468
|
|
|
1463
|
-
var card = /*#__PURE__*/_react
|
|
1464
|
-
title: cardItemKey === 0 && mode !== _constants.cardConfig.wrapperType.page ? null : (text || '') === '' && (subText || '') === '' ? null : /*#__PURE__*/_react
|
|
1469
|
+
var card = /*#__PURE__*/_react.default.createElement(_card.default, {
|
|
1470
|
+
title: cardItemKey === 0 && mode !== _constants.cardConfig.wrapperType.page ? null : (text || '') === '' && (subText || '') === '' ? null : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_FlexText.default, {
|
|
1465
1471
|
icon: iconAdjust || null,
|
|
1466
1472
|
text: text || '',
|
|
1473
|
+
textEllipsisMaxWidth: textEllipsisMaxWidth,
|
|
1467
1474
|
subText: subText || '',
|
|
1468
1475
|
addonBefore: (titleAddonBefore || null) == null ? null : titleAddonBefore,
|
|
1469
1476
|
addonAfter: (titleAddonAfter || null) == null ? null : titleAddonAfter
|
|
@@ -1472,27 +1479,27 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1472
1479
|
position: 'relative'
|
|
1473
1480
|
} : {},
|
|
1474
1481
|
headStyle: imageVisible ? {
|
|
1475
|
-
paddingLeft: '
|
|
1482
|
+
paddingLeft: '64px'
|
|
1476
1483
|
} : {},
|
|
1477
1484
|
size: size || 'default',
|
|
1478
1485
|
bordered: bordered,
|
|
1479
|
-
extra: hasExtraItems ? mode === _constants.cardConfig.wrapperType.page && affix ? /*#__PURE__*/_react
|
|
1486
|
+
extra: hasExtraItems ? mode === _constants.cardConfig.wrapperType.page && affix ? /*#__PURE__*/_react.default.createElement(_affix.default, {
|
|
1480
1487
|
offsetTop: 20
|
|
1481
|
-
}, /*#__PURE__*/_react
|
|
1482
|
-
split: (0, _tools.isBoolean)(split) ? split ? /*#__PURE__*/_react
|
|
1488
|
+
}, /*#__PURE__*/_react.default.createElement(_space.default, {
|
|
1489
|
+
split: (0, _tools.isBoolean)(split) ? split ? /*#__PURE__*/_react.default.createElement(_divider.default, {
|
|
1483
1490
|
type: "vertical"
|
|
1484
1491
|
}) : null : split
|
|
1485
|
-
}, extraItems)) : /*#__PURE__*/_react
|
|
1486
|
-
split: (0, _tools.isBoolean)(split) ? split ? /*#__PURE__*/_react
|
|
1492
|
+
}, extraItems)) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_space.default, {
|
|
1493
|
+
split: (0, _tools.isBoolean)(split) ? split ? /*#__PURE__*/_react.default.createElement(_divider.default, {
|
|
1487
1494
|
type: "vertical"
|
|
1488
1495
|
}) : null : split
|
|
1489
1496
|
}, extraItems)) : null,
|
|
1490
1497
|
bodyStyle: mode === _constants.cardConfig.wrapperType.model ? _objectSpread(_objectSpread(_objectSpread({}, cardBodyStyle || {}), cardTypeBodyStyle || {}), {
|
|
1491
1498
|
paddingBottom: 0
|
|
1492
1499
|
}) : _objectSpread(_objectSpread({}, cardBodyStyle || {}), cardTypeBodyStyle || {})
|
|
1493
|
-
}, /*#__PURE__*/_react
|
|
1500
|
+
}, /*#__PURE__*/_react.default.createElement(_spin.default, {
|
|
1494
1501
|
spinning: spinning || false
|
|
1495
|
-
}, /*#__PURE__*/_react
|
|
1502
|
+
}, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, _this.buildCardCollectionItemContent({
|
|
1496
1503
|
mode: mode,
|
|
1497
1504
|
justify: justifyRow || justifyGeneral,
|
|
1498
1505
|
align: alignRow || alignGeneral,
|
|
@@ -1508,19 +1515,19 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1508
1515
|
}
|
|
1509
1516
|
|
|
1510
1517
|
var keyHelpBox = "".concat(key, "_HelpBox_$").concat(indexHelpBox);
|
|
1511
|
-
return /*#__PURE__*/_react
|
|
1518
|
+
return /*#__PURE__*/_react.default.createElement(_HelpBox.default, _extends({
|
|
1512
1519
|
key: keyHelpBox
|
|
1513
1520
|
}, o));
|
|
1514
|
-
}) : /*#__PURE__*/_react
|
|
1521
|
+
}) : /*#__PURE__*/_react.default.createElement(_HelpBox.default, instruction) : null)), imageVisible ? /*#__PURE__*/_react.default.createElement("div", {
|
|
1515
1522
|
style: {
|
|
1516
1523
|
position: 'absolute',
|
|
1517
|
-
width: '
|
|
1518
|
-
left: '
|
|
1519
|
-
top: '
|
|
1524
|
+
width: '32px',
|
|
1525
|
+
left: '22px',
|
|
1526
|
+
top: '15px'
|
|
1520
1527
|
}
|
|
1521
|
-
}, /*#__PURE__*/_react
|
|
1528
|
+
}, /*#__PURE__*/_react.default.createElement(_ImageBox.default, {
|
|
1522
1529
|
src: image,
|
|
1523
|
-
circle:
|
|
1530
|
+
circle: imageCircle,
|
|
1524
1531
|
lazyLoad: true,
|
|
1525
1532
|
errorOverlayVisible: true,
|
|
1526
1533
|
showErrorOverlay: true,
|
|
@@ -1529,10 +1536,10 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1529
1536
|
previewSimpleMask: true
|
|
1530
1537
|
})) : null);
|
|
1531
1538
|
|
|
1532
|
-
return /*#__PURE__*/_react
|
|
1539
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
1533
1540
|
key: key,
|
|
1534
|
-
className: _index
|
|
1535
|
-
}, (0, _tools.isBoolean)(useAnimal) && animalType === _constants.cardConfig.animalType.fade ? /*#__PURE__*/_react
|
|
1541
|
+
className: _index.default.cardContainor
|
|
1542
|
+
}, (0, _tools.isBoolean)(useAnimal) && animalType === _constants.cardConfig.animalType.fade ? /*#__PURE__*/_react.default.createElement(_FadeBox.default, null, card) : null, (0, _tools.isBoolean)(useAnimal) && animalType === _constants.cardConfig.animalType.queue ? /*#__PURE__*/_react.default.createElement(_QueueBox.default, null, card) : null, !(0, _tools.isBoolean)(useAnimal) || (0, _tools.isBoolean)(useAnimal) && !(0, _tools.inCollection)([_constants.cardConfig.animalType.fade, _constants.cardConfig.animalType.queue], animalType) ? card : null);
|
|
1536
1543
|
};
|
|
1537
1544
|
|
|
1538
1545
|
_this.buildCardCollectionItemContent = function (_ref8) {
|
|
@@ -1543,7 +1550,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1543
1550
|
gutter = _ref8$gutter === void 0 ? 24 : _ref8$gutter,
|
|
1544
1551
|
contentItems = _ref8.items,
|
|
1545
1552
|
contentIndex = _ref8.index;
|
|
1546
|
-
return /*#__PURE__*/_react
|
|
1553
|
+
return /*#__PURE__*/_react.default.createElement(_row.default, {
|
|
1547
1554
|
justify: justify,
|
|
1548
1555
|
align: align,
|
|
1549
1556
|
gutter: gutter || 24
|
|
@@ -1592,7 +1599,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1592
1599
|
lg = lg > 24 ? 24 : lg;
|
|
1593
1600
|
|
|
1594
1601
|
if (type === _constants.cardConfig.contentItemType.placeholder) {
|
|
1595
|
-
return /*#__PURE__*/_react
|
|
1602
|
+
return /*#__PURE__*/_react.default.createElement(_col.default, {
|
|
1596
1603
|
key: contentItemKey,
|
|
1597
1604
|
lg: lg,
|
|
1598
1605
|
md: lg || md,
|
|
@@ -1602,13 +1609,13 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1602
1609
|
}
|
|
1603
1610
|
|
|
1604
1611
|
if (type === _constants.cardConfig.contentItemType.divider) {
|
|
1605
|
-
return /*#__PURE__*/_react
|
|
1612
|
+
return /*#__PURE__*/_react.default.createElement(_col.default, {
|
|
1606
1613
|
key: contentItemKey,
|
|
1607
1614
|
lg: lg,
|
|
1608
1615
|
md: lg || md,
|
|
1609
1616
|
sm: lg || sm,
|
|
1610
1617
|
xs: lg || xs
|
|
1611
|
-
}, /*#__PURE__*/_react
|
|
1618
|
+
}, /*#__PURE__*/_react.default.createElement(_divider.default, _objectSpread(_objectSpread({}, {}), contentItem.otherProps || {}), (0, _tools.stringIsNullOrWhiteSpace)(contentItem.text || '') ? null : contentItem.text));
|
|
1612
1619
|
}
|
|
1613
1620
|
|
|
1614
1621
|
if (type === _constants.cardConfig.contentItemType.imageUpload) {
|
|
@@ -1623,13 +1630,13 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1623
1630
|
disabled: contentItem.disabled || false
|
|
1624
1631
|
}), contentItem.uploadProps || {});
|
|
1625
1632
|
|
|
1626
|
-
return /*#__PURE__*/_react
|
|
1633
|
+
return /*#__PURE__*/_react.default.createElement(_col.default, {
|
|
1627
1634
|
key: contentItemKey,
|
|
1628
1635
|
lg: 24,
|
|
1629
1636
|
md: md,
|
|
1630
1637
|
sm: sm,
|
|
1631
1638
|
xs: xs
|
|
1632
|
-
}, /*#__PURE__*/_react
|
|
1639
|
+
}, /*#__PURE__*/_react.default.createElement(_ImageUpload.default, _extends({}, uploadProps, {
|
|
1633
1640
|
pretreatmentRemoteResponse: _this.pretreatmentImageUploadRemoteResponse,
|
|
1634
1641
|
afterUploadSuccess: function afterUploadSuccess(image) {
|
|
1635
1642
|
if ((0, _tools.isFunction)(contentItem.afterUploadSuccess)) {
|
|
@@ -1653,18 +1660,18 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1653
1660
|
width: '120px'
|
|
1654
1661
|
}), contentItem.imageBoxContainorStyle || {});
|
|
1655
1662
|
|
|
1656
|
-
var imageBox = /*#__PURE__*/_react
|
|
1663
|
+
var imageBox = /*#__PURE__*/_react.default.createElement(_ImageBox.default, _extends({
|
|
1657
1664
|
src: contentItem.image || _constants.defaultEmptyImage,
|
|
1658
1665
|
preview: !(0, _tools.stringIsEmpty)(contentItem.image || '')
|
|
1659
1666
|
}, imageBoxProps));
|
|
1660
1667
|
|
|
1661
|
-
return /*#__PURE__*/_react
|
|
1668
|
+
return /*#__PURE__*/_react.default.createElement(_col.default, {
|
|
1662
1669
|
key: contentItemKey,
|
|
1663
1670
|
lg: 24,
|
|
1664
1671
|
md: 24,
|
|
1665
1672
|
sm: 24,
|
|
1666
1673
|
xs: 24
|
|
1667
|
-
}, /*#__PURE__*/_react
|
|
1674
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
1668
1675
|
style: imageBoxContainorStyle
|
|
1669
1676
|
}, imageBox));
|
|
1670
1677
|
}
|
|
@@ -1697,7 +1704,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1697
1704
|
imageItemShowList.push({
|
|
1698
1705
|
key: imageKey,
|
|
1699
1706
|
imageBoxContainorStyle: _imageBoxContainorStyle,
|
|
1700
|
-
component: /*#__PURE__*/_react
|
|
1707
|
+
component: /*#__PURE__*/_react.default.createElement(_ImageBox.default, _extends({
|
|
1701
1708
|
src: imageOne || _constants.defaultEmptyImage,
|
|
1702
1709
|
preview: !(0, _tools.stringIsEmpty)(imageOne || '')
|
|
1703
1710
|
}, _imageBoxProps))
|
|
@@ -1707,7 +1714,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1707
1714
|
imageItemShowList.push({
|
|
1708
1715
|
key: imageKey,
|
|
1709
1716
|
imageBoxContainorStyle: _imageBoxContainorStyle,
|
|
1710
|
-
component: /*#__PURE__*/_react
|
|
1717
|
+
component: /*#__PURE__*/_react.default.createElement(_ImageBox.default, _extends({
|
|
1711
1718
|
src: imageOne || _constants.defaultEmptyImage,
|
|
1712
1719
|
preview: !(0, _tools.stringIsEmpty)(imageOne || '')
|
|
1713
1720
|
}, _imageBoxProps))
|
|
@@ -1715,20 +1722,20 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1715
1722
|
}
|
|
1716
1723
|
});
|
|
1717
1724
|
|
|
1718
|
-
var imageListContainor = /*#__PURE__*/_react
|
|
1719
|
-
return /*#__PURE__*/_react
|
|
1725
|
+
var imageListContainor = /*#__PURE__*/_react.default.createElement(_space.default, null, imageItemShowList.map(function (o) {
|
|
1726
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
1720
1727
|
key: o.key,
|
|
1721
1728
|
style: o.imageBoxContainorStyle
|
|
1722
1729
|
}, o.component);
|
|
1723
1730
|
}));
|
|
1724
1731
|
|
|
1725
|
-
return /*#__PURE__*/_react
|
|
1732
|
+
return /*#__PURE__*/_react.default.createElement(_col.default, {
|
|
1726
1733
|
key: contentItemKey,
|
|
1727
1734
|
lg: 24,
|
|
1728
1735
|
md: 24,
|
|
1729
1736
|
sm: 24,
|
|
1730
1737
|
xs: 24
|
|
1731
|
-
}, imageBoxListContainorStyle == null ? imageListContainor : /*#__PURE__*/_react
|
|
1738
|
+
}, imageBoxListContainorStyle == null ? imageListContainor : /*#__PURE__*/_react.default.createElement("div", {
|
|
1732
1739
|
style: imageBoxListContainorStyle
|
|
1733
1740
|
}, imageListContainor));
|
|
1734
1741
|
}
|
|
@@ -1740,13 +1747,13 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1740
1747
|
tokenSet: _this.getUploadTokenObject()
|
|
1741
1748
|
});
|
|
1742
1749
|
|
|
1743
|
-
return /*#__PURE__*/_react
|
|
1750
|
+
return /*#__PURE__*/_react.default.createElement(_col.default, {
|
|
1744
1751
|
key: contentItemKey,
|
|
1745
1752
|
lg: 24,
|
|
1746
1753
|
md: 24,
|
|
1747
1754
|
sm: 24,
|
|
1748
1755
|
xs: 24
|
|
1749
|
-
}, _this.renderFormInnerComponent(fieldData.label, /*#__PURE__*/_react
|
|
1756
|
+
}, _this.renderFormInnerComponent(fieldData.label, /*#__PURE__*/_react.default.createElement(_FileBase64Upload.default, _extends({}, _uploadProps, {
|
|
1750
1757
|
pretreatmentRemoteResponse: _this.pretreatmentFileBase64UploadRemoteResponse,
|
|
1751
1758
|
afterUploadSuccess: function afterUploadSuccess(fileBase64) {
|
|
1752
1759
|
if ((0, _tools.isFunction)(contentItem.afterUploadSuccess)) {
|
|
@@ -1764,13 +1771,13 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1764
1771
|
tokenSet: _this.getUploadTokenObject()
|
|
1765
1772
|
});
|
|
1766
1773
|
|
|
1767
|
-
return /*#__PURE__*/_react
|
|
1774
|
+
return /*#__PURE__*/_react.default.createElement(_col.default, {
|
|
1768
1775
|
key: contentItemKey,
|
|
1769
1776
|
lg: lg || 6,
|
|
1770
1777
|
md: md,
|
|
1771
1778
|
sm: sm,
|
|
1772
1779
|
xs: xs
|
|
1773
|
-
}, _this.renderFormInnerComponent(fieldData.label, /*#__PURE__*/_react
|
|
1780
|
+
}, _this.renderFormInnerComponent(fieldData.label, /*#__PURE__*/_react.default.createElement(_VideoUpload.default, _extends({}, _uploadProps2, {
|
|
1774
1781
|
pretreatmentRemoteResponse: _this.pretreatmentVideoUploadRemoteResponse,
|
|
1775
1782
|
afterChangeSuccess: function afterChangeSuccess(video) {
|
|
1776
1783
|
if ((0, _tools.isFunction)(contentItem.afterChangeSuccess)) {
|
|
@@ -1780,19 +1787,19 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1780
1787
|
})), fieldData.helper, formItemLayout, require));
|
|
1781
1788
|
}
|
|
1782
1789
|
|
|
1783
|
-
return /*#__PURE__*/_react
|
|
1790
|
+
return /*#__PURE__*/_react.default.createElement(_col.default, {
|
|
1784
1791
|
key: contentItemKey,
|
|
1785
1792
|
lg: lg || 6,
|
|
1786
1793
|
md: md,
|
|
1787
1794
|
sm: sm,
|
|
1788
1795
|
xs: xs
|
|
1789
|
-
}, type === _constants.cardConfig.contentItemType.text ? _this.renderFormText(fieldData.label, contentItem.value || '', fieldData.helper, formItemLayout) : null, type === _constants.cardConfig.contentItemType.input ? _this.renderFormInput(fieldData.label, fieldData.name, require, fieldData.helper, contentItem.icon || /*#__PURE__*/_react
|
|
1796
|
+
}, type === _constants.cardConfig.contentItemType.text ? _this.renderFormText(fieldData.label, contentItem.value || '', fieldData.helper, formItemLayout) : null, type === _constants.cardConfig.contentItemType.input ? _this.renderFormInput(fieldData.label, fieldData.name, require, fieldData.helper, contentItem.icon || /*#__PURE__*/_react.default.createElement(_icons.FormOutlined, null), _objectSpread(_objectSpread({}, {}), contentItem.otherProps || {}), canOperate, formItemLayout) : null, type === _constants.cardConfig.contentItemType.password ? _this.renderFormPassword(fieldData.label, fieldData.name, require, fieldData.helper, contentItem.icon || /*#__PURE__*/_react.default.createElement(_icons.FormOutlined, null), _objectSpread(_objectSpread({}, {}), contentItem.otherProps || {}), canOperate, formItemLayout) : null, type === _constants.cardConfig.contentItemType.inputNumber ? _this.renderFormInputNumber(fieldData.label, fieldData.name, require, fieldData.helper, contentItem.icon || /*#__PURE__*/_react.default.createElement(_icons.FormOutlined, null), _objectSpread(_objectSpread({}, {}), contentItem.otherProps || {}), canOperate, formItemLayout) : null, type === _constants.cardConfig.contentItemType.switch ? _this.renderFormSwitch(fieldData.label, fieldData.name, require, fieldData.helper, _objectSpread(_objectSpread(_objectSpread({}, {}), contentItem.otherProps || {}), {
|
|
1790
1797
|
checked: contentItem.checked || false
|
|
1791
|
-
}), canOperate, formItemLayout) : null, type === _constants.cardConfig.contentItemType.flexText ? /*#__PURE__*/_react
|
|
1798
|
+
}), canOperate, formItemLayout) : null, type === _constants.cardConfig.contentItemType.flexText ? /*#__PURE__*/_react.default.createElement(_FlexText.default, _objectSpread(_objectSpread({}, {
|
|
1792
1799
|
style: {
|
|
1793
1800
|
margin: '5px 0'
|
|
1794
1801
|
}
|
|
1795
|
-
}), contentItem.flexTextProps || {})) : null, type === _constants.cardConfig.contentItemType.onlyShowTextByFlexText ? /*#__PURE__*/_react
|
|
1802
|
+
}), contentItem.flexTextProps || {})) : null, type === _constants.cardConfig.contentItemType.onlyShowTextByFlexText ? /*#__PURE__*/_react.default.createElement(_FlexText.default, {
|
|
1796
1803
|
style: {
|
|
1797
1804
|
margin: '5px 0'
|
|
1798
1805
|
},
|
|
@@ -1812,7 +1819,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1812
1819
|
}), contentItem.otherProps || {}), {
|
|
1813
1820
|
disabled: true,
|
|
1814
1821
|
placeholder: "\u6682\u65E0".concat(fieldData.label, "\u4FE1\u606F")
|
|
1815
|
-
}), formItemLayout) : null, type === _constants.cardConfig.contentItemType.onlyShowInput ? _this.renderFormOnlyShowInput(fieldData.label, contentItem.value, fieldData.helper || '', contentItem.icon || /*#__PURE__*/_react
|
|
1822
|
+
}), formItemLayout) : null, type === _constants.cardConfig.contentItemType.onlyShowInput ? _this.renderFormOnlyShowInput(fieldData.label, contentItem.value, fieldData.helper || '', contentItem.icon || /*#__PURE__*/_react.default.createElement(_icons.FormOutlined, null), _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, {}), contentItem.otherProps || {}), {
|
|
1816
1823
|
disabled: true,
|
|
1817
1824
|
placeholder: "\u6682\u65E0".concat(fieldData.label, "\u4FE1\u606F")
|
|
1818
1825
|
}), contentItem.canCopy || false ? {
|
|
@@ -1833,7 +1840,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1833
1840
|
} : {}), formItemLayout) : null, type === _constants.cardConfig.contentItemType.onlyShowInputDatetime ? _this.renderFormOnlyShowInput(fieldData.label, (0, _tools.formatDatetime)({
|
|
1834
1841
|
data: (0, _tools.toDatetime)(contentItem.value),
|
|
1835
1842
|
format: _constants.datetimeFormat.yearMonthDayHourMinute
|
|
1836
|
-
}), fieldData.helper || '', contentItem.icon || /*#__PURE__*/_react
|
|
1843
|
+
}), fieldData.helper || '', contentItem.icon || /*#__PURE__*/_react.default.createElement(_icons.FormOutlined, null), _objectSpread(_objectSpread(_objectSpread({}, {}), contentItem.otherProps || {}), {
|
|
1837
1844
|
disabled: true,
|
|
1838
1845
|
placeholder: "\u6682\u65E0".concat(fieldData.label, "\u4FE1\u606F")
|
|
1839
1846
|
}), formItemLayout) : null, type === _constants.cardConfig.contentItemType.select ? _this.renderFormSelect(fieldData.label, fieldData.name, function () {
|
|
@@ -1848,8 +1855,8 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1848
1855
|
otherProps: _objectSpread(_objectSpread({}, {}), contentItem.otherProps || {})
|
|
1849
1856
|
}) : null, type === _constants.cardConfig.contentItemType.customSelect ? contentItem.component : null, type === _constants.cardConfig.contentItemType.radio ? _this.renderFormSelect(fieldData.label, fieldData.name, function () {
|
|
1850
1857
|
return _this.renderFormRadioCore((0, _tools.refitCommonData)((0, _tools.isArray)(contentItem.listData) ? contentItem.listData : []));
|
|
1851
|
-
}, fieldData.helper || '', (0, _tools.isFunction)(contentItem.onChangeCallback) ? contentItem.onChangeCallback : null, formItemLayout, true, _objectSpread(_objectSpread({}, {}), contentItem.otherProps || {})) : null, type === _constants.cardConfig.contentItemType.whetherRadio ? _this.renderFormWhetherRadio(fieldData.label, fieldData.name, fieldData.helper, contentItem.onChangeCallback, formItemLayout, true, _objectSpread(_objectSpread({}, {}), contentItem.otherProps || {})) : null, type === _constants.cardConfig.contentItemType.customRadio ? contentItem.component : null, type === _constants.cardConfig.contentItemType.onlyShowText ? _this.renderFormOnlyShowText(fieldData.label, contentItem.value, ((0, _tools.isUndefined)(contentItem.showHelper) ? false : contentItem.showHelper || false) ? fieldData.helper || '' : '', formItemLayout) : null, type === _constants.cardConfig.contentItemType.innerComponent ? _this.renderFormInnerComponent(fieldData.label, contentItem.component, fieldData.helper, formItemLayout, require) : null, type === _constants.cardConfig.contentItemType.save ? _this.renderFormActionItem(_this.renderSaveButton(contentItem.config || {}), formItemLayout) : null, type === _constants.cardConfig.contentItemType.button ? _this.renderFormButton(contentItem.config || {}, formItemLayout) : null, type === _constants.cardConfig.contentItemType.actionList ? /*#__PURE__*/_react
|
|
1852
|
-
split: (0, _tools.isBoolean)(contentItem.split || false) ? contentItem.split || false ? /*#__PURE__*/_react
|
|
1858
|
+
}, fieldData.helper || '', (0, _tools.isFunction)(contentItem.onChangeCallback) ? contentItem.onChangeCallback : null, formItemLayout, true, _objectSpread(_objectSpread({}, {}), contentItem.otherProps || {})) : null, type === _constants.cardConfig.contentItemType.whetherRadio ? _this.renderFormWhetherRadio(fieldData.label, fieldData.name, fieldData.helper, contentItem.onChangeCallback, formItemLayout, true, _objectSpread(_objectSpread({}, {}), contentItem.otherProps || {})) : null, type === _constants.cardConfig.contentItemType.customRadio ? contentItem.component : null, type === _constants.cardConfig.contentItemType.onlyShowText ? _this.renderFormOnlyShowText(fieldData.label, contentItem.value, ((0, _tools.isUndefined)(contentItem.showHelper) ? false : contentItem.showHelper || false) ? fieldData.helper || '' : '', formItemLayout) : null, type === _constants.cardConfig.contentItemType.innerComponent ? _this.renderFormInnerComponent(fieldData.label, contentItem.component, fieldData.helper, formItemLayout, require) : null, type === _constants.cardConfig.contentItemType.save ? _this.renderFormActionItem(_this.renderSaveButton(contentItem.config || {}), formItemLayout) : null, type === _constants.cardConfig.contentItemType.button ? _this.renderFormButton(contentItem.config || {}, formItemLayout) : null, type === _constants.cardConfig.contentItemType.actionList ? /*#__PURE__*/_react.default.createElement(_space.default, {
|
|
1859
|
+
split: (0, _tools.isBoolean)(contentItem.split || false) ? contentItem.split || false ? /*#__PURE__*/_react.default.createElement(_divider.default, {
|
|
1853
1860
|
type: "vertical"
|
|
1854
1861
|
}) : null : contentItem.split
|
|
1855
1862
|
}, _this.buildEveryCardActionList({
|
|
@@ -1877,8 +1884,6 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1877
1884
|
}), item),
|
|
1878
1885
|
hidden = _hidden$buildType$ico.hidden,
|
|
1879
1886
|
buildType = _hidden$buildType$ico.buildType,
|
|
1880
|
-
icon = _hidden$buildType$ico.icon,
|
|
1881
|
-
text = _hidden$buildType$ico.text,
|
|
1882
1887
|
componentSource = _hidden$buildType$ico.component;
|
|
1883
1888
|
|
|
1884
1889
|
if (!hidden) {
|
|
@@ -1915,10 +1920,11 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1915
1920
|
break;
|
|
1916
1921
|
|
|
1917
1922
|
case _constants.cardConfig.extraBuildType.iconInfo:
|
|
1918
|
-
itemAdjust = /*#__PURE__*/_react
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1923
|
+
itemAdjust = /*#__PURE__*/_react.default.createElement(_IconInfo.default, item);
|
|
1924
|
+
break;
|
|
1925
|
+
|
|
1926
|
+
case _constants.cardConfig.extraBuildType.colorText:
|
|
1927
|
+
itemAdjust = /*#__PURE__*/_react.default.createElement(_ColorText.default, item);
|
|
1922
1928
|
break;
|
|
1923
1929
|
|
|
1924
1930
|
case _constants.cardConfig.extraBuildType.component:
|
|
@@ -1934,7 +1940,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1934
1940
|
break;
|
|
1935
1941
|
}
|
|
1936
1942
|
|
|
1937
|
-
list.push( /*#__PURE__*/_react
|
|
1943
|
+
list.push( /*#__PURE__*/_react.default.createElement(_react.Fragment, {
|
|
1938
1944
|
key: itemKey
|
|
1939
1945
|
}, itemAdjust));
|
|
1940
1946
|
}
|
|
@@ -2015,7 +2021,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
2015
2021
|
}]);
|
|
2016
2022
|
|
|
2017
2023
|
return Common;
|
|
2018
|
-
}(_Core2
|
|
2024
|
+
}(_Core2.default);
|
|
2019
2025
|
|
|
2020
2026
|
var _default = Common;
|
|
2021
|
-
exports
|
|
2027
|
+
exports.default = _default;
|
|
@@ -5,13 +5,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports
|
|
8
|
+
exports.default = void 0;
|
|
9
9
|
|
|
10
10
|
var _tools = require("../../utils/tools");
|
|
11
11
|
|
|
12
12
|
var _Base2 = _interopRequireDefault(require("../../framework/Base"));
|
|
13
13
|
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
|
|
16
16
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
17
17
|
|
|
@@ -73,7 +73,7 @@ var Core = /*#__PURE__*/function (_Base) {
|
|
|
73
73
|
}]);
|
|
74
74
|
|
|
75
75
|
return Core;
|
|
76
|
-
}(_Base2
|
|
76
|
+
}(_Base2.default);
|
|
77
77
|
|
|
78
78
|
var _default = Core;
|
|
79
|
-
exports
|
|
79
|
+
exports.default = _default;
|
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports
|
|
8
|
+
exports.default = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = require("react");
|
|
11
11
|
|
|
@@ -74,4 +74,4 @@ var CustomBase = /*#__PURE__*/function (_Component) {
|
|
|
74
74
|
}(_react.Component);
|
|
75
75
|
|
|
76
76
|
var _default = CustomBase;
|
|
77
|
-
exports
|
|
77
|
+
exports.default = _default;
|