antd-management-fast-framework 1.12.76 → 1.12.77
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/AudioUpload/index.js +10 -8
- package/es/customComponents/DataPreviewDrawer/index.js +5 -7
- package/es/customComponents/DecorateAvatar/index.js +3 -3
- package/es/customComponents/EditableLinkGroup/index.js +3 -3
- package/es/customComponents/FileBase64Upload/index.js +3 -3
- package/es/customComponents/FileUpload/index.js +8 -6
- package/es/customComponents/FunctionComponent/index.js +24 -24
- package/es/customComponents/ImageUpload/index.js +4 -2
- package/es/customComponents/MobileContainor/ContentView/index.js +1 -3
- package/es/customComponents/MobileContainor/MobilePreviewArea/index.js +1 -3
- package/es/customComponents/MobileContainor/MobilePreviewDrawer/index.js +1 -3
- package/es/customComponents/NoticeIconCustom/index.js +2 -2
- package/es/customComponents/NumberInfo/index.js +3 -3
- package/es/customComponents/TagSelect/index.js +3 -3
- package/es/customComponents/TimeLineCustom/index.js +1 -1
- package/es/customComponents/VideoUpload/index.js +10 -8
- package/es/framework/Common/index.js +20 -18
- package/es/framework/DataDrawer/Base/index.js +2 -4
- package/es/framework/DataDrawer/BaseAddDrawer/index.js +1 -5
- package/es/framework/DataForm/BaseAddForm/index.js +1 -3
- package/es/framework/DataListView/Base/index.js +6 -8
- package/es/framework/DataListView/BatchAction/index.js +4 -4
- package/es/framework/DataListView/ColumnSetting/index.js +4 -2
- package/es/framework/DataListView/DensityAction/index.js +1 -3
- package/es/framework/DataModal/Base/index.js +3 -5
- package/es/framework/DataMultiPageView/MultiPageDrawer/index.js +1 -1
- package/es/framework/DataMultiPageView/MultiPageSelectDrawer/index.js +4 -6
- package/es/framework/DataSinglePageView/SinglePageDrawer/index.js +1 -1
- package/es/framework/DataSinglePageView/SinglePageSelectDrawer/index.js +4 -6
- package/es/framework/DataSingleView/DataCore/index.js +3 -5
- package/es/framework/DataTabContainer/index.js +3 -3
- package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldBase/index.js +3 -5
- package/es/utils/constants.d.ts +12 -0
- package/es/utils/constants.js +8 -3
- package/package.json +2 -2
|
@@ -49,6 +49,8 @@ var _icons = require("@ant-design/icons");
|
|
|
49
49
|
|
|
50
50
|
var _FunctionComponent = require("../../customComponents/FunctionComponent");
|
|
51
51
|
|
|
52
|
+
var _constants = require("../../utils/constants");
|
|
53
|
+
|
|
52
54
|
var _defaultSettingsSpecial = require("../../utils/defaultSettingsSpecial");
|
|
53
55
|
|
|
54
56
|
var _tools = require("../../utils/tools");
|
|
@@ -328,19 +330,19 @@ var VideoUpload = /*#__PURE__*/function (_PureComponent) {
|
|
|
328
330
|
}, /*#__PURE__*/_react.default.createElement(_menu.default.Item, {
|
|
329
331
|
key: "changeUrl"
|
|
330
332
|
}, /*#__PURE__*/_react.default.createElement(_IconInfo.default, {
|
|
331
|
-
icon:
|
|
333
|
+
icon: _constants.iconCollection.swap,
|
|
332
334
|
text: "\u66F4\u6362\u5730\u5740"
|
|
333
335
|
})), /*#__PURE__*/_react.default.createElement(_menu.default.Item, {
|
|
334
336
|
key: "copyUrl",
|
|
335
337
|
disabled: (0, _tools.stringIsNullOrWhiteSpace)(videoUrl)
|
|
336
338
|
}, /*#__PURE__*/_react.default.createElement(_IconInfo.default, {
|
|
337
|
-
icon:
|
|
339
|
+
icon: _constants.iconCollection.copy,
|
|
338
340
|
text: "\u590D\u5236\u5730\u5740"
|
|
339
341
|
})), /*#__PURE__*/_react.default.createElement(_menu.default.Divider, null), /*#__PURE__*/_react.default.createElement(_menu.default.Item, {
|
|
340
342
|
key: "clearUrl",
|
|
341
343
|
disabled: (0, _tools.stringIsNullOrWhiteSpace)(videoUrl)
|
|
342
344
|
}, /*#__PURE__*/_react.default.createElement(_IconInfo.default, {
|
|
343
|
-
icon:
|
|
345
|
+
icon: _constants.iconCollection.delete,
|
|
344
346
|
text: "\u6E05\u7A7A\u89C6\u9891"
|
|
345
347
|
})));
|
|
346
348
|
|
|
@@ -364,7 +366,7 @@ var VideoUpload = /*#__PURE__*/function (_PureComponent) {
|
|
|
364
366
|
onClick: function onClick() {
|
|
365
367
|
_this2.showPreviewModal();
|
|
366
368
|
}
|
|
367
|
-
},
|
|
369
|
+
}, _constants.iconCollection.playCircle, "\u64AD\u653E")) : null, /*#__PURE__*/_react.default.createElement(_tooltip.default, {
|
|
368
370
|
key: "showChangeUrlTip",
|
|
369
371
|
placement: "top",
|
|
370
372
|
title: "\u4E0A\u4F20\u89C6\u9891"
|
|
@@ -377,7 +379,7 @@ var VideoUpload = /*#__PURE__*/function (_PureComponent) {
|
|
|
377
379
|
paddingRight: 0
|
|
378
380
|
},
|
|
379
381
|
disabled: uploading
|
|
380
|
-
}, uploading ?
|
|
382
|
+
}, uploading ? _constants.iconCollection.loading : _constants.iconCollection.upload, uploading ? '稍后' : '上传'))), /*#__PURE__*/_react.default.createElement(_tooltip.default, {
|
|
381
383
|
key: "showMoreTip",
|
|
382
384
|
placement: "top",
|
|
383
385
|
title: "\u66F4\u591A\u64CD\u4F5C"
|
|
@@ -407,13 +409,13 @@ var VideoUpload = /*#__PURE__*/function (_PureComponent) {
|
|
|
407
409
|
|
|
408
410
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_input.default, {
|
|
409
411
|
disabled: true,
|
|
410
|
-
addonBefore:
|
|
412
|
+
addonBefore: _constants.iconCollection.videoCamera,
|
|
411
413
|
addonAfter: addonAfter,
|
|
412
414
|
value: videoUrl,
|
|
413
415
|
placeholder: "\u5F53\u524D\u672A\u8BBE\u7F6E\u89C6\u9891\u5730\u5740"
|
|
414
416
|
}), /*#__PURE__*/_react.default.createElement(_modal.default, {
|
|
415
417
|
title: /*#__PURE__*/_react.default.createElement(_IconInfo.default, {
|
|
416
|
-
icon:
|
|
418
|
+
icon: _constants.iconCollection.videoCamera,
|
|
417
419
|
text: "\u89C6\u9891\u9884\u89C8"
|
|
418
420
|
}),
|
|
419
421
|
visible: previewVisible,
|
|
@@ -423,7 +425,7 @@ var VideoUpload = /*#__PURE__*/function (_PureComponent) {
|
|
|
423
425
|
url: videoUrl
|
|
424
426
|
})), /*#__PURE__*/_react.default.createElement(_modal.default, {
|
|
425
427
|
title: /*#__PURE__*/_react.default.createElement(_IconInfo.default, {
|
|
426
|
-
icon:
|
|
428
|
+
icon: _constants.iconCollection.swap,
|
|
427
429
|
text: "\u8BF7\u8F93\u5165\u5C06\u66F4\u6362\u7684\u89C6\u9891\u5730\u5740"
|
|
428
430
|
}),
|
|
429
431
|
visible: changeUrlVisible,
|
|
@@ -53,8 +53,6 @@ var _layout = _interopRequireDefault(require("antd/es/layout"));
|
|
|
53
53
|
|
|
54
54
|
var _react = _interopRequireWildcard(require("react"));
|
|
55
55
|
|
|
56
|
-
var _icons = require("@ant-design/icons");
|
|
57
|
-
|
|
58
56
|
var _FadeBox = _interopRequireDefault(require("../../customComponents/AnimalBox/FadeBox"));
|
|
59
57
|
|
|
60
58
|
var _QueueBox = _interopRequireDefault(require("../../customComponents/AnimalBox/QueueBox"));
|
|
@@ -95,6 +93,8 @@ var _constants = require("../../utils/constants");
|
|
|
95
93
|
|
|
96
94
|
var _defaultSettingsSpecial = require("../../utils/defaultSettingsSpecial");
|
|
97
95
|
|
|
96
|
+
var _developAssist = require("../../utils/developAssist");
|
|
97
|
+
|
|
98
98
|
var _requestAssistor = require("../../utils/requestAssistor");
|
|
99
99
|
|
|
100
100
|
var _tools = require("../../utils/tools");
|
|
@@ -643,7 +643,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
643
643
|
|
|
644
644
|
_this.renderSearchInput = function (label, name) {
|
|
645
645
|
var helper = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
646
|
-
var icon = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] :
|
|
646
|
+
var icon = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : _constants.iconCollection.form;
|
|
647
647
|
var inputProps = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
|
|
648
648
|
var canOperate = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : true;
|
|
649
649
|
var formItemLayout = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : {};
|
|
@@ -660,7 +660,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
660
660
|
|
|
661
661
|
_this.renderSearchInputNumber = function (label, name) {
|
|
662
662
|
var helper = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
663
|
-
var icon = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] :
|
|
663
|
+
var icon = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : _constants.iconCollection.form;
|
|
664
664
|
var inputProps = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
|
|
665
665
|
var canOperate = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : true;
|
|
666
666
|
var formItemLayout = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : {};
|
|
@@ -696,7 +696,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
696
696
|
|
|
697
697
|
_this.renderFormInputFieldData = function (fieldData) {
|
|
698
698
|
var required = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
699
|
-
var icon = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] :
|
|
699
|
+
var icon = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _constants.iconCollection.form;
|
|
700
700
|
var inputProps = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
701
701
|
var canOperate = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
|
|
702
702
|
var formItemLayout = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : {};
|
|
@@ -717,7 +717,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
717
717
|
_this.renderFormInput = function (label, name) {
|
|
718
718
|
var required = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
719
719
|
var helper = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
720
|
-
var icon = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] :
|
|
720
|
+
var icon = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : _constants.iconCollection.form;
|
|
721
721
|
var inputProps = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : {};
|
|
722
722
|
var canOperate = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : true;
|
|
723
723
|
var formItemLayout = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : {};
|
|
@@ -759,7 +759,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
759
759
|
_this.renderFormPassword = function (label, name) {
|
|
760
760
|
var required = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
761
761
|
var helper = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
762
|
-
var icon = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] :
|
|
762
|
+
var icon = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : _constants.iconCollection.form;
|
|
763
763
|
var inputProps = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : {};
|
|
764
764
|
var canOperate = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : true;
|
|
765
765
|
var formItemLayout = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : {};
|
|
@@ -874,7 +874,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
874
874
|
|
|
875
875
|
_this.renderFormOnlyShowInput = function (label, value) {
|
|
876
876
|
var helper = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
877
|
-
var icon = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] :
|
|
877
|
+
var icon = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : _constants.iconCollection.form;
|
|
878
878
|
var inputProps = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {
|
|
879
879
|
disabled: true
|
|
880
880
|
};
|
|
@@ -892,7 +892,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
892
892
|
_this.renderFormInputNumber = function (label, name) {
|
|
893
893
|
var required = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
894
894
|
var helper = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
895
|
-
var icon = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] :
|
|
895
|
+
var icon = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : _constants.iconCollection.form;
|
|
896
896
|
var inputNumberProps = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : {};
|
|
897
897
|
var canOperate = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : true;
|
|
898
898
|
var formItemLayout = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : {};
|
|
@@ -1033,11 +1033,11 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1033
1033
|
};
|
|
1034
1034
|
|
|
1035
1035
|
_this.getSaveButtonIcon = function () {
|
|
1036
|
-
return
|
|
1036
|
+
return _constants.iconCollection.save;
|
|
1037
1037
|
};
|
|
1038
1038
|
|
|
1039
1039
|
_this.getDisabledButtonIcon = function () {
|
|
1040
|
-
return
|
|
1040
|
+
return _constants.iconCollection.save;
|
|
1041
1041
|
};
|
|
1042
1042
|
|
|
1043
1043
|
_this.renderDisabledButton = function () {
|
|
@@ -1147,7 +1147,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1147
1147
|
return (0, _FunctionComponent.buildButton)({
|
|
1148
1148
|
size: size,
|
|
1149
1149
|
text: text,
|
|
1150
|
-
icon:
|
|
1150
|
+
icon: _constants.iconCollection.reload,
|
|
1151
1151
|
disabled: _this.checkOperability(),
|
|
1152
1152
|
handleClick: _this.reloadData
|
|
1153
1153
|
});
|
|
@@ -1262,7 +1262,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1262
1262
|
className: _index.default.cardContainor
|
|
1263
1263
|
}, /*#__PURE__*/_react.default.createElement(_card.default, {
|
|
1264
1264
|
title: /*#__PURE__*/_react.default.createElement(_IconInfo.default, {
|
|
1265
|
-
icon:
|
|
1265
|
+
icon: _constants.iconCollection.tool,
|
|
1266
1266
|
text: title || '工具栏'
|
|
1267
1267
|
}),
|
|
1268
1268
|
bordered: false,
|
|
@@ -1625,7 +1625,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1625
1625
|
extraItemList = _affix$split$list.list;
|
|
1626
1626
|
|
|
1627
1627
|
var imageVisible = !(0, _tools.stringIsNullOrWhiteSpace)(image);
|
|
1628
|
-
var iconAdjust = !!hideIcon ? null : imageVisible ? !!hideIconWhenShowImage ? null : icon : icon ||
|
|
1628
|
+
var iconAdjust = !!hideIcon ? null : imageVisible ? !!hideIconWhenShowImage ? null : icon : icon || _constants.iconCollection.read;
|
|
1629
1629
|
var extraListData = [];
|
|
1630
1630
|
|
|
1631
1631
|
if ((0, _tools.isArray)(extraItemList)) {
|
|
@@ -2133,7 +2133,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
2133
2133
|
md: md,
|
|
2134
2134
|
sm: sm,
|
|
2135
2135
|
xs: xs
|
|
2136
|
-
}, 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 ||
|
|
2136
|
+
}, 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 || _constants.iconCollection.form, _objectSpread(_objectSpread({}, {}), contentItem.otherProps || {}), canOperate, formItemLayout) : null, type === _constants.cardConfig.contentItemType.password ? _this.renderFormPassword(fieldData.label, fieldData.name, require, fieldData.helper, contentItem.icon || _constants.iconCollection.form, _objectSpread(_objectSpread({}, {}), contentItem.otherProps || {}), canOperate, formItemLayout) : null, type === _constants.cardConfig.contentItemType.inputNumber ? _this.renderFormInputNumber(fieldData.label, fieldData.name, require, fieldData.helper, contentItem.icon || _constants.iconCollection.form, _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 || {}), {
|
|
2137
2137
|
checked: contentItem.checked || false
|
|
2138
2138
|
}), canOperate, formItemLayout) : null, type === _constants.cardConfig.contentItemType.flexText ? /*#__PURE__*/_react.default.createElement(_FlexText.default, _objectSpread(_objectSpread({}, {
|
|
2139
2139
|
style: {
|
|
@@ -2159,7 +2159,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
2159
2159
|
}), contentItem.otherProps || {}), {
|
|
2160
2160
|
disabled: true,
|
|
2161
2161
|
placeholder: "\u6682\u65E0".concat(fieldData.label, "\u4FE1\u606F")
|
|
2162
|
-
}), formItemLayout) : null, type === _constants.cardConfig.contentItemType.onlyShowInput ? _this.renderFormOnlyShowInput(fieldData.label, contentItem.value, fieldData.helper || '', contentItem.icon ||
|
|
2162
|
+
}), formItemLayout) : null, type === _constants.cardConfig.contentItemType.onlyShowInput ? _this.renderFormOnlyShowInput(fieldData.label, contentItem.value, fieldData.helper || '', contentItem.icon || _constants.iconCollection.form, _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, {}), contentItem.otherProps || {}), {
|
|
2163
2163
|
disabled: true,
|
|
2164
2164
|
placeholder: "\u6682\u65E0".concat(fieldData.label, "\u4FE1\u606F")
|
|
2165
2165
|
}), contentItem.canCopy || false ? {
|
|
@@ -2180,7 +2180,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
2180
2180
|
} : {}), formItemLayout) : null, type === _constants.cardConfig.contentItemType.onlyShowInputDatetime ? _this.renderFormOnlyShowInput(fieldData.label, (0, _tools.formatDatetime)({
|
|
2181
2181
|
data: (0, _tools.toDatetime)(contentItem.value),
|
|
2182
2182
|
format: _constants.datetimeFormat.yearMonthDayHourMinute
|
|
2183
|
-
}), fieldData.helper || '', contentItem.icon ||
|
|
2183
|
+
}), fieldData.helper || '', contentItem.icon || _constants.iconCollection.form, _objectSpread(_objectSpread(_objectSpread({}, {}), contentItem.otherProps || {}), {
|
|
2184
2184
|
disabled: true,
|
|
2185
2185
|
placeholder: "\u6682\u65E0".concat(fieldData.label, "\u4FE1\u606F")
|
|
2186
2186
|
}), formItemLayout) : null, type === _constants.cardConfig.contentItemType.select ? _this.renderFormSelect(fieldData.label, fieldData.name, function () {
|
|
@@ -2284,8 +2284,10 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
2284
2284
|
break;
|
|
2285
2285
|
|
|
2286
2286
|
default:
|
|
2287
|
+
(0, _developAssist.recordWarn)('');
|
|
2287
2288
|
(0, _tools.recordObject)({
|
|
2288
2289
|
message: '未找到匹配的构建模式',
|
|
2290
|
+
buildType: _constants.extraBuildType.component,
|
|
2289
2291
|
config: item
|
|
2290
2292
|
});
|
|
2291
2293
|
itemAdjust = null;
|
|
@@ -2382,7 +2384,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
2382
2384
|
onClick: function onClick() {
|
|
2383
2385
|
_this.reloadData();
|
|
2384
2386
|
}
|
|
2385
|
-
}, reloading || refreshing ?
|
|
2387
|
+
}, reloading || refreshing ? _constants.iconCollection.loading : _constants.iconCollection.reload))));
|
|
2386
2388
|
}
|
|
2387
2389
|
|
|
2388
2390
|
return /*#__PURE__*/_react.default.createElement(_space.default, {
|
|
@@ -41,8 +41,6 @@ var _layout = _interopRequireDefault(require("antd/es/layout"));
|
|
|
41
41
|
|
|
42
42
|
var _react = _interopRequireWildcard(require("react"));
|
|
43
43
|
|
|
44
|
-
var _icons = require("@ant-design/icons");
|
|
45
|
-
|
|
46
44
|
var _FunctionComponent = require("../../../customComponents/FunctionComponent");
|
|
47
45
|
|
|
48
46
|
var _IconInfo = _interopRequireDefault(require("../../../customComponents/IconInfo"));
|
|
@@ -138,7 +136,7 @@ var Base = /*#__PURE__*/function (_BaseWindow) {
|
|
|
138
136
|
};
|
|
139
137
|
|
|
140
138
|
_this.renderTitleIcon = function () {
|
|
141
|
-
return
|
|
139
|
+
return _constants.iconCollection.form;
|
|
142
140
|
};
|
|
143
141
|
|
|
144
142
|
_this.renderTitle = function () {
|
|
@@ -205,7 +203,7 @@ var Base = /*#__PURE__*/function (_BaseWindow) {
|
|
|
205
203
|
_this.renderCloseButton = function (option) {
|
|
206
204
|
var o = _objectSpread(_objectSpread(_objectSpread({}, {
|
|
207
205
|
type: 'default',
|
|
208
|
-
icon:
|
|
206
|
+
icon: _constants.iconCollection.closeCircle,
|
|
209
207
|
text: '关闭'
|
|
210
208
|
}), option || {}), {
|
|
211
209
|
handleClick: function handleClick() {
|
|
@@ -7,10 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
|
-
var _icons = require("@ant-design/icons");
|
|
13
|
-
|
|
14
10
|
var _constants = require("../../../utils/constants");
|
|
15
11
|
|
|
16
12
|
var _BaseNeedlessLoadDrawer = _interopRequireDefault(require("../BaseNeedlessLoadDrawer"));
|
|
@@ -71,7 +67,7 @@ var BaseAddDrawer = /*#__PURE__*/function (_BaseNeedlessLoadDraw) {
|
|
|
71
67
|
return [{
|
|
72
68
|
buildType: _constants.drawerConfig.bottomBarBuildType.generalButton,
|
|
73
69
|
type: 'primary',
|
|
74
|
-
icon:
|
|
70
|
+
icon: _constants.iconCollection.save,
|
|
75
71
|
text: '保存',
|
|
76
72
|
disabled: buttonProcessing,
|
|
77
73
|
handleClick: function handleClick(e) {
|
|
@@ -23,8 +23,6 @@ require("antd/es/message/style");
|
|
|
23
23
|
|
|
24
24
|
var _message2 = _interopRequireDefault(require("antd/es/message"));
|
|
25
25
|
|
|
26
|
-
var _icons = require("@ant-design/icons");
|
|
27
|
-
|
|
28
26
|
var _proLayout = require("@ant-design/pro-layout");
|
|
29
27
|
|
|
30
28
|
var _react = _interopRequireDefault(require("react"));
|
|
@@ -230,7 +228,7 @@ var BaseAddForm = /*#__PURE__*/function (_DataCore) {
|
|
|
230
228
|
_this.pageHeaderLogo = function () {
|
|
231
229
|
return /*#__PURE__*/_react.default.createElement(_avatar.default, {
|
|
232
230
|
shape: "square",
|
|
233
|
-
icon:
|
|
231
|
+
icon: _constants.iconCollection.plus
|
|
234
232
|
});
|
|
235
233
|
};
|
|
236
234
|
|
|
@@ -75,8 +75,6 @@ require("antd/es/layout/style");
|
|
|
75
75
|
|
|
76
76
|
var _layout = _interopRequireDefault(require("antd/es/layout"));
|
|
77
77
|
|
|
78
|
-
var _icons = require("@ant-design/icons");
|
|
79
|
-
|
|
80
78
|
var _proLayout = require("@ant-design/pro-layout");
|
|
81
79
|
|
|
82
80
|
var _react = _interopRequireDefault(require("react"));
|
|
@@ -470,7 +468,7 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
|
|
|
470
468
|
md: md,
|
|
471
469
|
sm: sm,
|
|
472
470
|
xs: xs
|
|
473
|
-
}, type === _constants.searchCardConfig.contentItemType.input ? _this.renderSearchInput(fieldData.label, fieldData.name, showHelper ? fieldData.helper : '', icon ||
|
|
471
|
+
}, type === _constants.searchCardConfig.contentItemType.input ? _this.renderSearchInput(fieldData.label, fieldData.name, showHelper ? fieldData.helper : '', icon || _constants.iconCollection.form, _objectSpread(_objectSpread({}, {}), contentItem.otherProps || {})) : null, type === _constants.searchCardConfig.contentItemType.inputNumber ? _this.renderSearchInputNumber(fieldData.label, fieldData.name, fieldData.helper, icon || _constants.iconCollection.form, _objectSpread(_objectSpread({}, {}), contentItem.otherProps || {})) : null, type === _constants.searchCardConfig.contentItemType.datePicker ? _this.renderFormDatePicker(fieldData.label, fieldData.name, false, fieldData.helper, _objectSpread(_objectSpread({}, {}), otherProps || {})) : null, type === _constants.searchCardConfig.contentItemType.customRangePicker ? _this.buildSearchCardRangePickerCore(contentItem.dateRangeFieldName, _objectSpread(_objectSpread({}, {}), otherProps || {})) : null, type === _constants.searchCardConfig.contentItemType.onlyShowInput ? _this.renderFormOnlyShowInput(fieldData.label, contentItem.value, fieldData.helper || '', contentItem.icon || _constants.iconCollection.form, _objectSpread(_objectSpread(_objectSpread({}, {}), contentItem.otherProps || {}), {
|
|
474
472
|
disabled: true
|
|
475
473
|
})) : null, type === _constants.searchCardConfig.contentItemType.customSelect ? contentItem.component : null, type === _constants.cardConfig.contentItemType.flexSelect ? (0, _FunctionComponent.buildCustomSelect)(contentItem) : null, type === _constants.searchCardConfig.contentItemType.customRadio ? contentItem.component : null, type === _constants.searchCardConfig.contentItemType.innerComponent ? _this.renderFormInnerComponent(fieldData.label, component, fieldData.helper, null, false) : null, type === _constants.searchCardConfig.contentItemType.component ? component || null : null);
|
|
476
474
|
};
|
|
@@ -503,7 +501,7 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
|
|
|
503
501
|
onClick: function onClick(e) {
|
|
504
502
|
_this.handleSearch(e);
|
|
505
503
|
}
|
|
506
|
-
}, searching ?
|
|
504
|
+
}, searching ? _constants.iconCollection.loading : _constants.iconCollection.search, "\u67E5\u8BE2"), /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
507
505
|
disabled: dataLoading || reloading || searching,
|
|
508
506
|
style: {
|
|
509
507
|
marginLeft: 8
|
|
@@ -511,7 +509,7 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
|
|
|
511
509
|
onClick: function onClick() {
|
|
512
510
|
_this.handleSearchReset();
|
|
513
511
|
}
|
|
514
|
-
}, reloading ?
|
|
512
|
+
}, reloading ? _constants.iconCollection.loading : _constants.iconCollection.reload, "\u91CD\u7F6E"));
|
|
515
513
|
};
|
|
516
514
|
|
|
517
515
|
_this.buildSearchCardButton = function () {
|
|
@@ -1048,7 +1046,7 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
|
|
|
1048
1046
|
border: 0
|
|
1049
1047
|
},
|
|
1050
1048
|
loading: refreshing,
|
|
1051
|
-
icon:
|
|
1049
|
+
icon: _constants.iconCollection.reload,
|
|
1052
1050
|
onClick: function onClick() {
|
|
1053
1051
|
_this.refreshData();
|
|
1054
1052
|
}
|
|
@@ -1073,7 +1071,7 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
|
|
|
1073
1071
|
border: 0
|
|
1074
1072
|
},
|
|
1075
1073
|
loading: refreshing,
|
|
1076
|
-
icon:
|
|
1074
|
+
icon: _constants.iconCollection.reload,
|
|
1077
1075
|
onClick: function onClick() {
|
|
1078
1076
|
_this.refreshData();
|
|
1079
1077
|
}
|
|
@@ -1466,7 +1464,7 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
|
|
|
1466
1464
|
showSelect: false,
|
|
1467
1465
|
renderPageHeaderWrapper: true,
|
|
1468
1466
|
listTitle: '检索结果',
|
|
1469
|
-
defaultAvatarIcon:
|
|
1467
|
+
defaultAvatarIcon: _constants.iconCollection.picture,
|
|
1470
1468
|
listViewMode: _constants.listViewConfig.viewMode.list,
|
|
1471
1469
|
avatarImageLoadResult: _DecorateAvatar.avatarImageLoadResultCollection.wait,
|
|
1472
1470
|
showPageHeaderAvatar: false,
|
|
@@ -19,12 +19,12 @@ var _menu = _interopRequireDefault(require("antd/es/menu"));
|
|
|
19
19
|
|
|
20
20
|
var _react = _interopRequireDefault(require("react"));
|
|
21
21
|
|
|
22
|
-
var _icons = require("@ant-design/icons");
|
|
23
|
-
|
|
24
22
|
var _context = require("antd/lib/config-provider/context");
|
|
25
23
|
|
|
26
24
|
var _IconInfo = _interopRequireDefault(require("../../../customComponents/IconInfo"));
|
|
27
25
|
|
|
26
|
+
var _constants = require("../../../utils/constants");
|
|
27
|
+
|
|
28
28
|
var _index = _interopRequireDefault(require("./index.less"));
|
|
29
29
|
|
|
30
30
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -61,7 +61,7 @@ var DropdownButton = function DropdownButton(_ref) {
|
|
|
61
61
|
disabled: disabled
|
|
62
62
|
}, /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
63
63
|
style: style
|
|
64
|
-
}, children, " ",
|
|
64
|
+
}, children, " ", _constants.iconCollection.down));
|
|
65
65
|
});
|
|
66
66
|
};
|
|
67
67
|
|
|
@@ -88,7 +88,7 @@ var BatchAction = function BatchAction(_ref2) {
|
|
|
88
88
|
disabled: disabled
|
|
89
89
|
}, /*#__PURE__*/_react.default.createElement("a", {
|
|
90
90
|
style: style
|
|
91
|
-
},
|
|
91
|
+
}, "iconCollection.ellipsis"));
|
|
92
92
|
});
|
|
93
93
|
};
|
|
94
94
|
|
|
@@ -29,6 +29,8 @@ var _reactDnd = require("react-dnd");
|
|
|
29
29
|
|
|
30
30
|
var _reactDndHtml5Backend = require("react-dnd-html5-backend");
|
|
31
31
|
|
|
32
|
+
var _constants = require("../../../utils/constants");
|
|
33
|
+
|
|
32
34
|
var _DndItem = _interopRequireDefault(require("./DndItem"));
|
|
33
35
|
|
|
34
36
|
var _index = _interopRequireDefault(require("./index.less"));
|
|
@@ -163,7 +165,7 @@ var CheckboxListItem = function CheckboxListItem(_ref2) {
|
|
|
163
165
|
fixed: undefined,
|
|
164
166
|
title: "\u53D6\u6D88\u56FA\u5B9A",
|
|
165
167
|
show: !!fixed
|
|
166
|
-
},
|
|
168
|
+
}, _constants.iconCollection.verticalAlignMiddle), /*#__PURE__*/_react.default.createElement(ToolTipIcon, {
|
|
167
169
|
columnKey: columnKey,
|
|
168
170
|
fixed: "right",
|
|
169
171
|
title: "\u56FA\u5B9A\u5230\u53F3\u8FB9",
|
|
@@ -358,7 +360,7 @@ var ColumnSetting = function ColumnSetting(props) {
|
|
|
358
360
|
border: 0,
|
|
359
361
|
color: '#000000'
|
|
360
362
|
},
|
|
361
|
-
icon:
|
|
363
|
+
icon: _constants.iconCollection.setting
|
|
362
364
|
}))));
|
|
363
365
|
};
|
|
364
366
|
|
|
@@ -25,8 +25,6 @@ var _menu = _interopRequireDefault(require("antd/es/menu"));
|
|
|
25
25
|
|
|
26
26
|
var _react = _interopRequireWildcard(require("react"));
|
|
27
27
|
|
|
28
|
-
var _icons = require("@ant-design/icons");
|
|
29
|
-
|
|
30
28
|
var _constants = require("../../../utils/constants");
|
|
31
29
|
|
|
32
30
|
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); }
|
|
@@ -100,7 +98,7 @@ var DensityAction = /*#__PURE__*/function (_PureComponent) {
|
|
|
100
98
|
border: 0,
|
|
101
99
|
color: '#000000'
|
|
102
100
|
},
|
|
103
|
-
icon:
|
|
101
|
+
icon: _constants.iconCollection.columnHeight
|
|
104
102
|
})));
|
|
105
103
|
}
|
|
106
104
|
}]);
|
|
@@ -21,8 +21,6 @@ var _form = _interopRequireDefault(require("antd/es/form"));
|
|
|
21
21
|
|
|
22
22
|
var _react = _interopRequireDefault(require("react"));
|
|
23
23
|
|
|
24
|
-
var _icons = require("@ant-design/icons");
|
|
25
|
-
|
|
26
24
|
var _FlexText = _interopRequireDefault(require("../../../customComponents/FlexText"));
|
|
27
25
|
|
|
28
26
|
var _constants = require("../../../utils/constants");
|
|
@@ -130,7 +128,7 @@ var Base = /*#__PURE__*/function (_BaseWindow) {
|
|
|
130
128
|
|
|
131
129
|
var buttonProcessing = _this.getSaveButtonProcessing();
|
|
132
130
|
|
|
133
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, buttonProcessing ?
|
|
131
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, buttonProcessing ? _constants.iconCollection.loading : _this.getSaveButtonIcon(), /*#__PURE__*/_react.default.createElement("span", {
|
|
134
132
|
className: _index.default.buttonText
|
|
135
133
|
}, okText || '保存'));
|
|
136
134
|
};
|
|
@@ -149,7 +147,7 @@ var Base = /*#__PURE__*/function (_BaseWindow) {
|
|
|
149
147
|
|
|
150
148
|
_this.buildCancelText = function () {
|
|
151
149
|
var saveButtonText = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
152
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null,
|
|
150
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, _constants.iconCollection.closeCircle, /*#__PURE__*/_react.default.createElement("span", {
|
|
153
151
|
className: _index.default.buttonText
|
|
154
152
|
}, saveButtonText || '取消'));
|
|
155
153
|
};
|
|
@@ -169,7 +167,7 @@ var Base = /*#__PURE__*/function (_BaseWindow) {
|
|
|
169
167
|
};
|
|
170
168
|
|
|
171
169
|
_this.buildTitleIcon = function () {
|
|
172
|
-
return
|
|
170
|
+
return _constants.iconCollection.edit;
|
|
173
171
|
};
|
|
174
172
|
|
|
175
173
|
_this.buildTitlePrevText = function () {
|
|
@@ -314,7 +314,7 @@ var MultiPageDrawer = /*#__PURE__*/function (_MultiPage) {
|
|
|
314
314
|
shape: "circle",
|
|
315
315
|
className: _index.default.iconAction,
|
|
316
316
|
loading: refreshing,
|
|
317
|
-
icon:
|
|
317
|
+
icon: _constants.iconCollection.reload,
|
|
318
318
|
onClick: function onClick() {
|
|
319
319
|
_this.refreshData();
|
|
320
320
|
}
|
|
@@ -7,12 +7,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
|
-
var _icons = require("@ant-design/icons");
|
|
13
|
-
|
|
14
10
|
var _FunctionComponent = require("../../../customComponents/FunctionComponent");
|
|
15
11
|
|
|
12
|
+
var _constants = require("../../../utils/constants");
|
|
13
|
+
|
|
16
14
|
var _tools = require("../../../utils/tools");
|
|
17
15
|
|
|
18
16
|
var _MultiPageDrawer2 = _interopRequireDefault(require("../MultiPageDrawer"));
|
|
@@ -82,7 +80,7 @@ var MultiPageSelectDrawer = /*#__PURE__*/function (_MultiPageDrawer) {
|
|
|
82
80
|
_ref2$text = _ref2.text,
|
|
83
81
|
textSource = _ref2$text === void 0 ? '选择' : _ref2$text,
|
|
84
82
|
_ref2$icon = _ref2.icon,
|
|
85
|
-
iconSource = _ref2$icon === void 0 ?
|
|
83
|
+
iconSource = _ref2$icon === void 0 ? _constants.iconCollection.import : _ref2$icon,
|
|
86
84
|
_ref2$handleData = _ref2.handleData,
|
|
87
85
|
handleData = _ref2$handleData === void 0 ? null : _ref2$handleData,
|
|
88
86
|
_ref2$showIcon = _ref2.showIcon,
|
|
@@ -90,7 +88,7 @@ var MultiPageSelectDrawer = /*#__PURE__*/function (_MultiPageDrawer) {
|
|
|
90
88
|
return (0, _FunctionComponent.buildButton)(_objectSpread({}, {
|
|
91
89
|
confirm: confirm,
|
|
92
90
|
size: 'small',
|
|
93
|
-
icon: iconSource ||
|
|
91
|
+
icon: iconSource || _constants.iconCollection.import,
|
|
94
92
|
text: textSource || '选择',
|
|
95
93
|
showIcon: showIcon,
|
|
96
94
|
handleClick: function handleClick() {
|
|
@@ -300,7 +300,7 @@ var SinglePageDrawer = /*#__PURE__*/function (_SinglePage) {
|
|
|
300
300
|
shape: "circle",
|
|
301
301
|
className: _index.default.iconAction,
|
|
302
302
|
loading: refreshing,
|
|
303
|
-
icon:
|
|
303
|
+
icon: _constants.iconCollection.reload,
|
|
304
304
|
onClick: function onClick() {
|
|
305
305
|
_this.refreshData();
|
|
306
306
|
}
|
|
@@ -7,12 +7,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
|
-
var _icons = require("@ant-design/icons");
|
|
13
|
-
|
|
14
10
|
var _FunctionComponent = require("../../../customComponents/FunctionComponent");
|
|
15
11
|
|
|
12
|
+
var _constants = require("../../../utils/constants");
|
|
13
|
+
|
|
16
14
|
var _tools = require("../../../utils/tools");
|
|
17
15
|
|
|
18
16
|
var _SinglePageDrawer2 = _interopRequireDefault(require("../SinglePageDrawer"));
|
|
@@ -82,7 +80,7 @@ var SinglePageSelectDrawer = /*#__PURE__*/function (_SinglePageDrawer) {
|
|
|
82
80
|
_ref2$text = _ref2.text,
|
|
83
81
|
textSource = _ref2$text === void 0 ? '选择' : _ref2$text,
|
|
84
82
|
_ref2$icon = _ref2.icon,
|
|
85
|
-
iconSource = _ref2$icon === void 0 ?
|
|
83
|
+
iconSource = _ref2$icon === void 0 ? _constants.iconCollection.import : _ref2$icon,
|
|
86
84
|
_ref2$handleData = _ref2.handleData,
|
|
87
85
|
handleData = _ref2$handleData === void 0 ? null : _ref2$handleData,
|
|
88
86
|
_ref2$showIcon = _ref2.showIcon,
|
|
@@ -90,7 +88,7 @@ var SinglePageSelectDrawer = /*#__PURE__*/function (_SinglePageDrawer) {
|
|
|
90
88
|
return (0, _FunctionComponent.buildButton)(_objectSpread({}, {
|
|
91
89
|
confirm: confirm,
|
|
92
90
|
size: 'small',
|
|
93
|
-
icon: iconSource ||
|
|
91
|
+
icon: iconSource || _constants.iconCollection.import,
|
|
94
92
|
text: textSource || '选择',
|
|
95
93
|
showIcon: showIcon,
|
|
96
94
|
handleClick: function handleClick() {
|
|
@@ -27,8 +27,6 @@ require("antd/es/avatar/style");
|
|
|
27
27
|
|
|
28
28
|
var _avatar = _interopRequireDefault(require("antd/es/avatar"));
|
|
29
29
|
|
|
30
|
-
var _icons = require("@ant-design/icons");
|
|
31
|
-
|
|
32
30
|
var _proLayout = require("@ant-design/pro-layout");
|
|
33
31
|
|
|
34
32
|
var _react = _interopRequireDefault(require("react"));
|
|
@@ -181,7 +179,7 @@ var DataCore = /*#__PURE__*/function (_BaseView) {
|
|
|
181
179
|
_this.pageHeaderLogo = function () {
|
|
182
180
|
return /*#__PURE__*/_react.default.createElement(_avatar.default, {
|
|
183
181
|
shape: "square",
|
|
184
|
-
icon:
|
|
182
|
+
icon: _constants.iconCollection.plus
|
|
185
183
|
});
|
|
186
184
|
};
|
|
187
185
|
|
|
@@ -202,7 +200,7 @@ var DataCore = /*#__PURE__*/function (_BaseView) {
|
|
|
202
200
|
}
|
|
203
201
|
|
|
204
202
|
var props = _objectSpread(_objectSpread({}, {
|
|
205
|
-
icon:
|
|
203
|
+
icon: _constants.iconCollection.rollback,
|
|
206
204
|
type: 'dashed'
|
|
207
205
|
}), _this.actionBackProps || {});
|
|
208
206
|
|
|
@@ -225,7 +223,7 @@ var DataCore = /*#__PURE__*/function (_BaseView) {
|
|
|
225
223
|
};
|
|
226
224
|
|
|
227
225
|
_this.renderMainTitleIcon = function () {
|
|
228
|
-
return
|
|
226
|
+
return _constants.iconCollection.contacts;
|
|
229
227
|
};
|
|
230
228
|
|
|
231
229
|
_this.renderMainTitleText = function () {
|