antd-management-fast-framework 1.12.76 → 1.12.79

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.
Files changed (35) hide show
  1. package/es/customComponents/AudioUpload/index.js +10 -8
  2. package/es/customComponents/DataPreviewDrawer/index.js +5 -7
  3. package/es/customComponents/DecorateAvatar/index.js +3 -3
  4. package/es/customComponents/EditableLinkGroup/index.js +3 -3
  5. package/es/customComponents/FileBase64Upload/index.js +3 -3
  6. package/es/customComponents/FileUpload/index.js +8 -6
  7. package/es/customComponents/FunctionComponent/index.js +24 -24
  8. package/es/customComponents/ImageUpload/index.js +4 -2
  9. package/es/customComponents/MobileContainor/ContentView/index.js +1 -3
  10. package/es/customComponents/MobileContainor/MobilePreviewArea/index.js +1 -3
  11. package/es/customComponents/MobileContainor/MobilePreviewDrawer/index.js +1 -3
  12. package/es/customComponents/NoticeIconCustom/index.js +2 -2
  13. package/es/customComponents/NumberInfo/index.js +3 -3
  14. package/es/customComponents/TagSelect/index.js +3 -3
  15. package/es/customComponents/TimeLineCustom/index.js +1 -1
  16. package/es/customComponents/VideoUpload/index.js +10 -8
  17. package/es/framework/Common/index.js +20 -18
  18. package/es/framework/DataDrawer/Base/index.js +2 -4
  19. package/es/framework/DataDrawer/BaseAddDrawer/index.js +1 -5
  20. package/es/framework/DataForm/BaseAddForm/index.js +1 -3
  21. package/es/framework/DataListView/Base/index.js +6 -8
  22. package/es/framework/DataListView/BatchAction/index.js +4 -4
  23. package/es/framework/DataListView/ColumnSetting/index.js +4 -2
  24. package/es/framework/DataListView/DensityAction/index.js +1 -3
  25. package/es/framework/DataModal/Base/index.js +3 -5
  26. package/es/framework/DataMultiPageView/MultiPageDrawer/index.js +1 -1
  27. package/es/framework/DataMultiPageView/MultiPageSelectDrawer/index.js +4 -6
  28. package/es/framework/DataSinglePageView/SinglePageDrawer/index.js +1 -1
  29. package/es/framework/DataSinglePageView/SinglePageSelectDrawer/index.js +4 -6
  30. package/es/framework/DataSingleView/DataCore/index.js +3 -5
  31. package/es/framework/DataTabContainer/index.js +3 -3
  32. package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldBase/index.js +4 -4
  33. package/es/utils/constants.d.ts +12 -0
  34. package/es/utils/constants.js +8 -3
  35. 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 AudioUpload = /*#__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: /*#__PURE__*/_react.default.createElement(_icons.SwapOutlined, null),
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)(audioUrl)
336
338
  }, /*#__PURE__*/_react.default.createElement(_IconInfo.default, {
337
- icon: /*#__PURE__*/_react.default.createElement(_icons.CopyOutlined, null),
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)(audioUrl)
342
344
  }, /*#__PURE__*/_react.default.createElement(_IconInfo.default, {
343
- icon: /*#__PURE__*/_react.default.createElement(_icons.DeleteOutlined, null),
345
+ icon: _constants.iconCollection.delete,
344
346
  text: "\u6E05\u7A7A\u97F3\u9891"
345
347
  })));
346
348
 
@@ -364,7 +366,7 @@ var AudioUpload = /*#__PURE__*/function (_PureComponent) {
364
366
  onClick: function onClick() {
365
367
  _this2.showPreviewModal();
366
368
  }
367
- }, /*#__PURE__*/_react.default.createElement(_icons.PlayCircleOutlined, null), "\u64AD\u653E")) : null, /*#__PURE__*/_react.default.createElement(_tooltip.default, {
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\u97F3\u9891"
@@ -377,7 +379,7 @@ var AudioUpload = /*#__PURE__*/function (_PureComponent) {
377
379
  paddingRight: 0
378
380
  },
379
381
  disabled: uploading
380
- }, uploading ? /*#__PURE__*/_react.default.createElement(_icons.LoadingOutlined, null) : /*#__PURE__*/_react.default.createElement(_icons.UploadOutlined, null), uploading ? '稍后' : '上传'))), /*#__PURE__*/_react.default.createElement(_tooltip.default, {
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 AudioUpload = /*#__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: /*#__PURE__*/_react.default.createElement(_icons.SoundOutlined, null),
412
+ addonBefore: _constants.iconCollection.sound,
411
413
  addonAfter: addonAfter,
412
414
  value: audioUrl,
413
415
  placeholder: "\u5F53\u524D\u672A\u8BBE\u7F6E\u97F3\u9891\u5730\u5740"
414
416
  }), /*#__PURE__*/_react.default.createElement(_modal.default, {
415
417
  title: /*#__PURE__*/_react.default.createElement(_IconInfo.default, {
416
- icon: /*#__PURE__*/_react.default.createElement(_icons.SoundOutlined, null),
418
+ icon: _constants.iconCollection.sound,
417
419
  text: "\u97F3\u9891\u9884\u89C8"
418
420
  }),
419
421
  visible: previewVisible,
@@ -429,7 +431,7 @@ var AudioUpload = /*#__PURE__*/function (_PureComponent) {
429
431
  url: audioUrl
430
432
  }))), /*#__PURE__*/_react.default.createElement(_modal.default, {
431
433
  title: /*#__PURE__*/_react.default.createElement(_IconInfo.default, {
432
- icon: /*#__PURE__*/_react.default.createElement(_icons.SwapOutlined, null),
434
+ icon: _constants.iconCollection.swap,
433
435
  text: "\u8BF7\u8F93\u5165\u5C06\u66F4\u6362\u7684\u97F3\u9891\u5730\u5740"
434
436
  }),
435
437
  visible: changeUrlVisible,
@@ -9,8 +9,6 @@ exports.default = void 0;
9
9
 
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
 
12
- var _icons = require("@ant-design/icons");
13
-
14
12
  var _htmlReactParser = _interopRequireDefault(require("html-react-parser"));
15
13
 
16
14
  var _Base2 = _interopRequireDefault(require("../../framework/DataDrawer/Base"));
@@ -79,7 +77,7 @@ var DataPreviewDrawer = /*#__PURE__*/function (_Base) {
79
77
  data = _this$props.data;
80
78
  var list = [{
81
79
  title: {
82
- icon: /*#__PURE__*/_react.default.createElement(_icons.ContactsOutlined, null),
80
+ icon: _constants.iconCollection.contacts,
83
81
  text: '说明'
84
82
  },
85
83
  items: [{
@@ -96,7 +94,7 @@ var DataPreviewDrawer = /*#__PURE__*/function (_Base) {
96
94
  if ((0, _tools.toNumber)(dataType) === _constants.dataTypeCollection.commonValue.flag) {
97
95
  list.push({
98
96
  title: {
99
- icon: /*#__PURE__*/_react.default.createElement(_icons.ContactsOutlined, null),
97
+ icon: _constants.iconCollection.contacts,
100
98
  text: '操作内容'
101
99
  },
102
100
  items: [{
@@ -112,7 +110,7 @@ var DataPreviewDrawer = /*#__PURE__*/function (_Base) {
112
110
  } else if (dataType === _constants.dataTypeCollection.jsonObject.flag || dataType === _constants.dataTypeCollection.jsonObjectList.flag) {
113
111
  list.push({
114
112
  title: {
115
- icon: /*#__PURE__*/_react.default.createElement(_icons.ContactsOutlined, null),
113
+ icon: _constants.iconCollection.contacts,
116
114
  text: '数据变更'
117
115
  },
118
116
  items: [{
@@ -124,7 +122,7 @@ var DataPreviewDrawer = /*#__PURE__*/function (_Base) {
124
122
  } else {
125
123
  list.push({
126
124
  title: {
127
- icon: /*#__PURE__*/_react.default.createElement(_icons.ContactsOutlined, null),
125
+ icon: _constants.iconCollection.contacts,
128
126
  text: '操作内容'
129
127
  },
130
128
  items: [{
@@ -171,7 +169,7 @@ var DataPreviewDrawer = /*#__PURE__*/function (_Base) {
171
169
 
172
170
  DataPreviewDrawer.defaultProps = {
173
171
  title: '',
174
- icon: /*#__PURE__*/_react.default.createElement(_icons.FormOutlined, null),
172
+ icon: _constants.iconCollection.form,
175
173
  placement: 'left',
176
174
  width: 380,
177
175
  dataType: _constants.dataTypeCollection.commonValue.flag
@@ -56,7 +56,7 @@ exports.avatarImageLoadResultCollection = avatarImageLoadResultCollection;
56
56
 
57
57
  function decorateAvatar() {
58
58
  var avatar = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
59
- var defaultAvatarIcon = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : /*#__PURE__*/_react.default.createElement(_icons.PictureOutlined, null);
59
+ var defaultAvatarIcon = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _constants.iconCollection.picture;
60
60
  var showPageHeaderAvatar = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
61
61
  var dataLoading = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
62
62
  var reloading = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
@@ -68,7 +68,7 @@ function decorateAvatar() {
68
68
 
69
69
  if (dataLoading) {
70
70
  currentAvatar = {
71
- icon: /*#__PURE__*/_react.default.createElement(_icons.LoadingOutlined, null)
71
+ icon: _constants.iconCollection.loading
72
72
  };
73
73
  }
74
74
 
@@ -190,7 +190,7 @@ var DecorateAvatar = /*#__PURE__*/function (_PureComponent) {
190
190
 
191
191
  DecorateAvatar.defaultProps = {
192
192
  avatar: null,
193
- defaultAvatarIcon: /*#__PURE__*/_react.default.createElement(_icons.PictureOutlined, null),
193
+ defaultAvatarIcon: _constants.iconCollection.picture,
194
194
  showPageHeaderAvatar: false,
195
195
  dataLoading: false,
196
196
  reloading: false
@@ -13,10 +13,10 @@ var _button = _interopRequireDefault(require("antd/es/button"));
13
13
 
14
14
  var _react = _interopRequireWildcard(require("react"));
15
15
 
16
- var _icons = require("@ant-design/icons");
17
-
18
16
  var _propTypes = _interopRequireDefault(require("prop-types"));
19
17
 
18
+ var _constants = require("../../utils/constants");
19
+
20
20
  var _index = _interopRequireDefault(require("./index.less"));
21
21
 
22
22
  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); }
@@ -77,7 +77,7 @@ var EditableLinkGroup = /*#__PURE__*/function (_PureComponent) {
77
77
  type: "primary",
78
78
  ghost: true,
79
79
  onClick: onAdd,
80
- icon: /*#__PURE__*/_react.default.createElement(_icons.PlusOutlined, null)
80
+ icon: _constants.iconCollection.plus
81
81
  }, "\u6DFB\u52A0"));
82
82
  }
83
83
  }]);
@@ -21,7 +21,7 @@ var _button = _interopRequireDefault(require("antd/es/button"));
21
21
 
22
22
  var _react = _interopRequireWildcard(require("react"));
23
23
 
24
- var _icons = require("@ant-design/icons");
24
+ var _constants = require("../../utils/constants");
25
25
 
26
26
  var _defaultSettingsSpecial = require("../../utils/defaultSettingsSpecial");
27
27
 
@@ -163,7 +163,7 @@ var FileBase64Upload = /*#__PURE__*/function (_PureComponent) {
163
163
  };
164
164
  return /*#__PURE__*/_react.default.createElement(_input.default, {
165
165
  readOnly: true,
166
- addonBefore: /*#__PURE__*/_react.default.createElement(_icons.FileOutlined, null),
166
+ addonBefore: _constants.iconCollection.file,
167
167
  placeholder: "\u8BF7\u9009\u62E9\u4E0A\u4F20".concat(uploadText || '文件'),
168
168
  value: base64,
169
169
  addonAfter: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_upload.default, uploadProps, /*#__PURE__*/_react.default.createElement(_button.default, {
@@ -176,7 +176,7 @@ var FileBase64Upload = /*#__PURE__*/function (_PureComponent) {
176
176
  },
177
177
  disabled: uploading,
178
178
  title: "\u9009\u62E9".concat(uploadText || '文件')
179
- }, uploading ? /*#__PURE__*/_react.default.createElement(_icons.LoadingOutlined, null) : /*#__PURE__*/_react.default.createElement(_icons.UploadOutlined, null), uploading ? '正在上传' : "\u9009\u62E9".concat(uploadText || '文件'))))
179
+ }, uploading ? _constants.iconCollection.loading : _constants.iconCollection.upload, uploading ? '正在上传' : "\u9009\u62E9".concat(uploadText || '文件'))))
180
180
  });
181
181
  }
182
182
  }], [{
@@ -47,6 +47,8 @@ var _react = _interopRequireWildcard(require("react"));
47
47
 
48
48
  var _icons = require("@ant-design/icons");
49
49
 
50
+ var _constants = require("../../utils/constants");
51
+
50
52
  var _defaultSettingsSpecial = require("../../utils/defaultSettingsSpecial");
51
53
 
52
54
  var _tools = require("../../utils/tools");
@@ -285,19 +287,19 @@ var VideoUpload = /*#__PURE__*/function (_PureComponent) {
285
287
  }, /*#__PURE__*/_react.default.createElement(_menu.default.Item, {
286
288
  key: "changeUrl"
287
289
  }, /*#__PURE__*/_react.default.createElement(_IconInfo.default, {
288
- icon: /*#__PURE__*/_react.default.createElement(_icons.SwapOutlined, null),
290
+ icon: _constants.iconCollection.swap,
289
291
  text: "\u66F4\u6362\u5730\u5740"
290
292
  })), /*#__PURE__*/_react.default.createElement(_menu.default.Item, {
291
293
  key: "copyUrl",
292
294
  disabled: (0, _tools.stringIsNullOrWhiteSpace)(fileUrl)
293
295
  }, /*#__PURE__*/_react.default.createElement(_IconInfo.default, {
294
- icon: /*#__PURE__*/_react.default.createElement(_icons.CopyOutlined, null),
296
+ icon: _constants.iconCollection.copy,
295
297
  text: "\u590D\u5236\u5730\u5740"
296
298
  })), /*#__PURE__*/_react.default.createElement(_menu.default.Divider, null), /*#__PURE__*/_react.default.createElement(_menu.default.Item, {
297
299
  key: "clearUrl",
298
300
  disabled: (0, _tools.stringIsNullOrWhiteSpace)(fileUrl)
299
301
  }, /*#__PURE__*/_react.default.createElement(_IconInfo.default, {
300
- icon: /*#__PURE__*/_react.default.createElement(_icons.DeleteOutlined, null),
302
+ icon: _constants.iconCollection.delete,
301
303
  text: "\u6E05\u7A7A\u6587\u4EF6"
302
304
  })));
303
305
 
@@ -318,7 +320,7 @@ var VideoUpload = /*#__PURE__*/function (_PureComponent) {
318
320
  paddingRight: 0
319
321
  },
320
322
  disabled: uploading
321
- }, uploading ? /*#__PURE__*/_react.default.createElement(_icons.LoadingOutlined, null) : /*#__PURE__*/_react.default.createElement(_icons.UploadOutlined, null), uploading ? '稍后' : '上传'))), /*#__PURE__*/_react.default.createElement(_tooltip.default, {
323
+ }, uploading ? _constants.iconCollection.loading : _constants.iconCollection.upload, uploading ? '稍后' : '上传'))), /*#__PURE__*/_react.default.createElement(_tooltip.default, {
322
324
  key: "showMoreTip",
323
325
  placement: "top",
324
326
  title: "\u66F4\u591A\u64CD\u4F5C"
@@ -348,13 +350,13 @@ var VideoUpload = /*#__PURE__*/function (_PureComponent) {
348
350
 
349
351
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_input.default, {
350
352
  disabled: true,
351
- addonBefore: /*#__PURE__*/_react.default.createElement(_icons.LinkOutlined, null),
353
+ addonBefore: _constants.iconCollection.link,
352
354
  addonAfter: addonAfter,
353
355
  value: fileUrl,
354
356
  placeholder: "\u5F53\u524D\u672A\u8BBE\u7F6E\u6587\u4EF6\u5730\u5740"
355
357
  }), /*#__PURE__*/_react.default.createElement(_modal.default, {
356
358
  title: /*#__PURE__*/_react.default.createElement(_IconInfo.default, {
357
- icon: /*#__PURE__*/_react.default.createElement(_icons.SwapOutlined, null),
359
+ icon: _constants.iconCollection.swap,
358
360
  text: "\u8BF7\u8F93\u5165\u5C06\u66F4\u6362\u7684\u6587\u4EF6\u5730\u5740"
359
361
  }),
360
362
  visible: changeUrlVisible,
@@ -273,7 +273,7 @@ function buildButton(_ref) {
273
273
  _ref$text = _ref.text,
274
274
  textSource = _ref$text === void 0 ? '按钮' : _ref$text,
275
275
  _ref$icon = _ref.icon,
276
- iconSource = _ref$icon === void 0 ? /*#__PURE__*/_react.default.createElement(_icons.FormOutlined, null) : _ref$icon,
276
+ iconSource = _ref$icon === void 0 ? _constants.iconCollection.form : _ref$icon,
277
277
  _ref$handleClick = _ref.handleClick,
278
278
  handleClickSource = _ref$handleClick === void 0 ? function () {} : _ref$handleClick,
279
279
  _ref$hidden = _ref.hidden,
@@ -289,7 +289,7 @@ function buildButton(_ref) {
289
289
  _ref$processing = _ref.processing,
290
290
  processingSource = _ref$processing === void 0 ? false : _ref$processing,
291
291
  _ref$iconProcessing = _ref.iconProcessing,
292
- iconProcessingSource = _ref$iconProcessing === void 0 ? /*#__PURE__*/_react.default.createElement(_icons.LoadingOutlined, null) : _ref$iconProcessing,
292
+ iconProcessingSource = _ref$iconProcessing === void 0 ? _constants.iconCollection.loading : _ref$iconProcessing,
293
293
  _ref$style = _ref.style,
294
294
  styleSource = _ref$style === void 0 ? null : _ref$style,
295
295
  _ref$showIcon = _ref.showIcon,
@@ -301,14 +301,14 @@ function buildButton(_ref) {
301
301
  type: typeSource !== null && typeSource !== void 0 ? typeSource : 'default',
302
302
  size: sizeSource !== null && sizeSource !== void 0 ? sizeSource : 'default',
303
303
  text: textSource !== null && textSource !== void 0 ? textSource : '按钮',
304
- icon: iconSource !== null && iconSource !== void 0 ? iconSource : /*#__PURE__*/_react.default.createElement(_icons.FormOutlined, null),
304
+ icon: iconSource !== null && iconSource !== void 0 ? iconSource : _constants.iconCollection.form,
305
305
  handleClick: handleClickSource !== null && handleClickSource !== void 0 ? handleClickSource : null,
306
306
  danger: dangerSource !== null && dangerSource !== void 0 ? dangerSource : false,
307
307
  hidden: hiddenSource !== null && hiddenSource !== void 0 ? hiddenSource : false,
308
308
  disabled: disabledSource !== null && disabledSource !== void 0 ? disabledSource : false,
309
309
  confirm: confirmSource !== null && confirmSource !== void 0 ? confirmSource : false,
310
310
  processing: processingSource !== null && processingSource !== void 0 ? processingSource : false,
311
- iconProcessing: iconProcessingSource !== null && iconProcessingSource !== void 0 ? iconProcessingSource : /*#__PURE__*/_react.default.createElement(_icons.LoadingOutlined, null),
311
+ iconProcessing: iconProcessingSource !== null && iconProcessingSource !== void 0 ? iconProcessingSource : _constants.iconCollection.loading,
312
312
  handleData: handleDataSource !== null && handleDataSource !== void 0 ? handleDataSource : null,
313
313
  style: styleSource || null,
314
314
  showIcon: showIconSource
@@ -380,7 +380,7 @@ function buildButton(_ref) {
380
380
  confirmAdjust = false;
381
381
  }
382
382
 
383
- var ico = processing ? iconProcessing !== null && iconProcessing !== void 0 ? iconProcessing : /*#__PURE__*/_react.default.createElement(_icons.LoadingOutlined, null) : icon !== null && icon !== void 0 ? icon : /*#__PURE__*/_react.default.createElement(_icons.FormOutlined, null);
383
+ var ico = processing ? iconProcessing !== null && iconProcessing !== void 0 ? iconProcessing : _constants.iconCollection.loading : icon !== null && icon !== void 0 ? icon : _constants.iconCollection.form;
384
384
 
385
385
  if (confirmAdjust) {
386
386
  var _confirmAdjust = confirmAdjust,
@@ -451,7 +451,7 @@ function buildDropdownButton(_ref2) {
451
451
  _ref2$text = _ref2.text,
452
452
  text = _ref2$text === void 0 ? '按钮' : _ref2$text,
453
453
  _ref2$icon = _ref2.icon,
454
- icon = _ref2$icon === void 0 ? /*#__PURE__*/_react.default.createElement(_icons.FormOutlined, null) : _ref2$icon,
454
+ icon = _ref2$icon === void 0 ? _constants.iconCollection.form : _ref2$icon,
455
455
  r = _ref2.handleData,
456
456
  _ref2$arrow = _ref2.arrow,
457
457
  arrow = _ref2$arrow === void 0 ? true : _ref2$arrow,
@@ -553,7 +553,7 @@ function buildDropdown(_ref4) {
553
553
  _ref4$text = _ref4.text,
554
554
  text = _ref4$text === void 0 ? '按钮' : _ref4$text,
555
555
  _ref4$icon = _ref4.icon,
556
- icon = _ref4$icon === void 0 ? /*#__PURE__*/_react.default.createElement(_icons.FormOutlined, null) : _ref4$icon,
556
+ icon = _ref4$icon === void 0 ? _constants.iconCollection.form : _ref4$icon,
557
557
  r = _ref4.handleData,
558
558
  _ref4$arrow = _ref4.arrow,
559
559
  arrow = _ref4$arrow === void 0 ? true : _ref4$arrow,
@@ -574,7 +574,7 @@ function buildDropdown(_ref4) {
574
574
  _ref4$processing = _ref4.processing,
575
575
  processing = _ref4$processing === void 0 ? false : _ref4$processing,
576
576
  _ref4$iconProcessing = _ref4.iconProcessing,
577
- iconProcessing = _ref4$iconProcessing === void 0 ? /*#__PURE__*/_react.default.createElement(_icons.LoadingOutlined, null) : _ref4$iconProcessing;
577
+ iconProcessing = _ref4$iconProcessing === void 0 ? _constants.iconCollection.loading : _ref4$iconProcessing;
578
578
 
579
579
  if (hidden) {
580
580
  return null;
@@ -826,7 +826,7 @@ function buildMenu(_ref5) {
826
826
  withDivider: false,
827
827
  uponDivider: true,
828
828
  key: (0, _tools.getGuid)(),
829
- icon: /*#__PURE__*/_react.default.createElement(_icons.EditOutlined, null),
829
+ icon: _constants.iconCollection.edit,
830
830
  text: '',
831
831
  disabled: false,
832
832
  hidden: false,
@@ -976,7 +976,7 @@ function buildMenu(_ref5) {
976
976
  size: "small",
977
977
  disabled: disabled
978
978
  }, /*#__PURE__*/_react.default.createElement(_IconInfo.default, {
979
- icon: icon || /*#__PURE__*/_react.default.createElement(_icons.EditOutlined, null),
979
+ icon: icon || _constants.iconCollection.edit,
980
980
  text: text
981
981
  })));
982
982
  }
@@ -1002,7 +1002,7 @@ function buildMenu(_ref5) {
1002
1002
  });
1003
1003
  }
1004
1004
  }, /*#__PURE__*/_react.default.createElement(_IconInfo.default, {
1005
- icon: icon || /*#__PURE__*/_react.default.createElement(_icons.EditOutlined, null),
1005
+ icon: icon || _constants.iconCollection.edit,
1006
1006
  text: text
1007
1007
  }));
1008
1008
  }
@@ -1610,7 +1610,7 @@ function buildListViewItemActionSelect(_ref15) {
1610
1610
  confirm: confirm,
1611
1611
  size: 'small',
1612
1612
  type: 'link',
1613
- icon: /*#__PURE__*/_react.default.createElement(_icons.ImportOutlined, null),
1613
+ icon: _constants.iconCollection.import,
1614
1614
  text: '选取',
1615
1615
  showIcon: true,
1616
1616
  handleClick: function handleClick(_ref16) {
@@ -2031,7 +2031,7 @@ function buildFormNowTimeField(_ref26) {
2031
2031
  data: new Date(),
2032
2032
  format: _constants.datetimeFormat.yearMonthDayHourMinute
2033
2033
  }),
2034
- addonBefore: /*#__PURE__*/_react.default.createElement(_icons.FormOutlined, null),
2034
+ addonBefore: _constants.iconCollection.form,
2035
2035
  disabled: true,
2036
2036
  placeholder: (0, _tools.buildFieldDescription)(resultCheck.label)
2037
2037
  }));
@@ -2057,7 +2057,7 @@ function buildFormCreateTimeField(_ref27) {
2057
2057
  name: resultCheck.name,
2058
2058
  extra: (0, _tools.stringIsNullOrWhiteSpace)(resultCheck.helper || '') ? null : (0, _tools.buildFieldHelper)(resultCheck.helper)
2059
2059
  }), /*#__PURE__*/_react.default.createElement(_input.default, {
2060
- addonBefore: /*#__PURE__*/_react.default.createElement(_icons.FormOutlined, null),
2060
+ addonBefore: _constants.iconCollection.form,
2061
2061
  disabled: true,
2062
2062
  placeholder: (0, _tools.buildFieldDescription)(resultCheck.label)
2063
2063
  }));
@@ -2083,7 +2083,7 @@ function buildFormUpdateTimeField(_ref28) {
2083
2083
  name: resultCheck.name,
2084
2084
  extra: (0, _tools.stringIsNullOrWhiteSpace)(resultCheck.helper || '') ? null : (0, _tools.buildFieldHelper)(resultCheck.helper)
2085
2085
  }), /*#__PURE__*/_react.default.createElement(_input.default, {
2086
- addonBefore: /*#__PURE__*/_react.default.createElement(_icons.FormOutlined, null),
2086
+ addonBefore: _constants.iconCollection.form,
2087
2087
  disabled: true,
2088
2088
  placeholder: (0, _tools.buildFieldDescription)(resultCheck.label)
2089
2089
  }));
@@ -2095,7 +2095,7 @@ function buildSearchInput(_ref29) {
2095
2095
  _ref29$helper = _ref29.helper,
2096
2096
  helper = _ref29$helper === void 0 ? null : _ref29$helper,
2097
2097
  _ref29$icon = _ref29.icon,
2098
- icon = _ref29$icon === void 0 ? /*#__PURE__*/_react.default.createElement(_icons.FormOutlined, null) : _ref29$icon,
2098
+ icon = _ref29$icon === void 0 ? _constants.iconCollection.form : _ref29$icon,
2099
2099
  _ref29$inputProps = _ref29.inputProps,
2100
2100
  inputProps = _ref29$inputProps === void 0 ? {} : _ref29$inputProps,
2101
2101
  _ref29$canOperate = _ref29.canOperate,
@@ -2136,7 +2136,7 @@ function buildSearchInputNumber(_ref30) {
2136
2136
  _ref30$helper = _ref30.helper,
2137
2137
  helper = _ref30$helper === void 0 ? null : _ref30$helper,
2138
2138
  _ref30$icon = _ref30.icon,
2139
- icon = _ref30$icon === void 0 ? /*#__PURE__*/_react.default.createElement(_icons.FormOutlined, null) : _ref30$icon,
2139
+ icon = _ref30$icon === void 0 ? _constants.iconCollection.form : _ref30$icon,
2140
2140
  _ref30$inputProps = _ref30.inputProps,
2141
2141
  inputProps = _ref30$inputProps === void 0 ? {} : _ref30$inputProps,
2142
2142
  _ref30$canOperate = _ref30.canOperate,
@@ -2225,7 +2225,7 @@ function buildFormInputFieldData(_ref33) {
2225
2225
  _ref33$required = _ref33.required,
2226
2226
  required = _ref33$required === void 0 ? false : _ref33$required,
2227
2227
  _ref33$icon = _ref33.icon,
2228
- icon = _ref33$icon === void 0 ? /*#__PURE__*/_react.default.createElement(_icons.FormOutlined, null) : _ref33$icon,
2228
+ icon = _ref33$icon === void 0 ? _constants.iconCollection.form : _ref33$icon,
2229
2229
  _ref33$inputProps = _ref33.inputProps,
2230
2230
  inputProps = _ref33$inputProps === void 0 ? {} : _ref33$inputProps,
2231
2231
  _ref33$canOperate = _ref33.canOperate,
@@ -2268,7 +2268,7 @@ function buildFormInput(_ref34) {
2268
2268
  _ref34$helper = _ref34.helper,
2269
2269
  helper = _ref34$helper === void 0 ? null : _ref34$helper,
2270
2270
  _ref34$icon = _ref34.icon,
2271
- icon = _ref34$icon === void 0 ? /*#__PURE__*/_react.default.createElement(_icons.FormOutlined, null) : _ref34$icon,
2271
+ icon = _ref34$icon === void 0 ? _constants.iconCollection.form : _ref34$icon,
2272
2272
  _ref34$inputProps = _ref34.inputProps,
2273
2273
  inputProps = _ref34$inputProps === void 0 ? {} : _ref34$inputProps,
2274
2274
  _ref34$canOperate = _ref34.canOperate,
@@ -2390,7 +2390,7 @@ function buildFormPassword(_ref36) {
2390
2390
  _ref36$helper = _ref36.helper,
2391
2391
  helper = _ref36$helper === void 0 ? null : _ref36$helper,
2392
2392
  _ref36$icon = _ref36.icon,
2393
- icon = _ref36$icon === void 0 ? /*#__PURE__*/_react.default.createElement(_icons.FormOutlined, null) : _ref36$icon,
2393
+ icon = _ref36$icon === void 0 ? _constants.iconCollection.form : _ref36$icon,
2394
2394
  _ref36$inputProps = _ref36.inputProps,
2395
2395
  inputProps = _ref36$inputProps === void 0 ? {} : _ref36$inputProps,
2396
2396
  _ref36$canOperate = _ref36.canOperate,
@@ -2644,7 +2644,7 @@ function buildFormOnlyShowInput(_ref46) {
2644
2644
  _ref46$helper = _ref46.helper,
2645
2645
  helper = _ref46$helper === void 0 ? null : _ref46$helper,
2646
2646
  _ref46$icon = _ref46.icon,
2647
- icon = _ref46$icon === void 0 ? /*#__PURE__*/_react.default.createElement(_icons.FormOutlined, null) : _ref46$icon,
2647
+ icon = _ref46$icon === void 0 ? _constants.iconCollection.form : _ref46$icon,
2648
2648
  _ref46$inputProps = _ref46.inputProps,
2649
2649
  inputProps = _ref46$inputProps === void 0 ? {
2650
2650
  disabled: true
@@ -2682,7 +2682,7 @@ function buildFormInputNumber(_ref47) {
2682
2682
  _ref47$helper = _ref47.helper,
2683
2683
  helper = _ref47$helper === void 0 ? null : _ref47$helper,
2684
2684
  _ref47$icon = _ref47.icon,
2685
- icon = _ref47$icon === void 0 ? /*#__PURE__*/_react.default.createElement(_icons.FormOutlined, null) : _ref47$icon,
2685
+ icon = _ref47$icon === void 0 ? _constants.iconCollection.form : _ref47$icon,
2686
2686
  _ref47$inputNumberPro = _ref47.inputNumberProps,
2687
2687
  inputNumberProps = _ref47$inputNumberPro === void 0 ? {} : _ref47$inputNumberPro,
2688
2688
  _ref47$canOperate = _ref47.canOperate,
@@ -2939,7 +2939,7 @@ function buildColumnItem(_ref52) {
2939
2939
  (0, _tools.recordText)(_text2);
2940
2940
  } else {
2941
2941
  d.title = showHelper ? /*#__PURE__*/_react.default.createElement(_IconInfo.default, {
2942
- icon: /*#__PURE__*/_react.default.createElement(_icons.InfoCircleOutlined, null),
2942
+ icon: _constants.iconCollection.infoCircle,
2943
2943
  iconPosition: "right",
2944
2944
  iconTooltip: helper,
2945
2945
  text: label
@@ -3275,7 +3275,7 @@ function adjustTableExpandConfig(_ref55) {
3275
3275
  var expanded = _ref56.expanded,
3276
3276
  onExpand = _ref56.onExpand,
3277
3277
  record = _ref56.record;
3278
- return /*#__PURE__*/_react.default.createElement(_icons.RightCircleOutlined, null);
3278
+ return _constants.iconCollection.rightCircle;
3279
3279
  },
3280
3280
  expandedRowRender: null
3281
3281
  }), config || null),
@@ -31,6 +31,8 @@ var _react = _interopRequireWildcard(require("react"));
31
31
 
32
32
  var _icons = require("@ant-design/icons");
33
33
 
34
+ var _constants = require("../../utils/constants");
35
+
34
36
  var _defaultSettingsSpecial = require("../../utils/defaultSettingsSpecial");
35
37
 
36
38
  var _tools = require("../../utils/tools");
@@ -263,7 +265,7 @@ var ImageUpload = /*#__PURE__*/function (_PureComponent) {
263
265
  previewVisible = _this$state.previewVisible,
264
266
  previewImage = _this$state.previewImage;
265
267
 
266
- var uploadButton = /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_icons.PlusOutlined, null), /*#__PURE__*/_react.default.createElement("div", {
268
+ var uploadButton = /*#__PURE__*/_react.default.createElement("div", null, _constants.iconCollection.plus, /*#__PURE__*/_react.default.createElement("div", {
267
269
  className: "ant-upload-text"
268
270
  }, "\u4E0A\u4F20\u65B0\u56FE"));
269
271
 
@@ -309,7 +311,7 @@ var ImageUpload = /*#__PURE__*/function (_PureComponent) {
309
311
  className: _index.default.imageAction
310
312
  }, /*#__PURE__*/_react.default.createElement("div", {
311
313
  className: _index.default.icon
312
- }, /*#__PURE__*/_react.default.createElement(_CenterBox.default, null, uploading ? /*#__PURE__*/_react.default.createElement(_icons.LoadingOutlined, null) : /*#__PURE__*/_react.default.createElement(_icons.UploadOutlined, null))), /*#__PURE__*/_react.default.createElement("div", {
314
+ }, /*#__PURE__*/_react.default.createElement(_CenterBox.default, null, uploading ? _constants.iconCollection.loading : _constants.iconCollection.upload)), /*#__PURE__*/_react.default.createElement("div", {
313
315
  className: _index.default.text
314
316
  }, uploading ? '上传中' : '上传'))), /*#__PURE__*/_react.default.createElement(_VerticalBox.default, {
315
317
  align: "bottom",
@@ -17,8 +17,6 @@ var _space = _interopRequireDefault(require("antd/es/space"));
17
17
 
18
18
  var _react = _interopRequireWildcard(require("react"));
19
19
 
20
- var _icons = require("@ant-design/icons");
21
-
22
20
  var _constants = require("../../../utils/constants");
23
21
 
24
22
  var _tools = require("../../../utils/tools");
@@ -110,7 +108,7 @@ var ConventView = /*#__PURE__*/function (_PureComponent) {
110
108
  action: /*#__PURE__*/_react.default.createElement(_space.default, null, (0, _FunctionComponent.buildButton)({
111
109
  size: 'small',
112
110
  type: 'ghost',
113
- icon: /*#__PURE__*/_react.default.createElement(_icons.ReloadOutlined, null),
111
+ icon: _constants.iconCollection.reload,
114
112
  text: alertButtonText,
115
113
  handleClick: this.onAlertClick
116
114
  })),
@@ -9,8 +9,6 @@ exports.default = void 0;
9
9
 
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
 
12
- var _icons = require("@ant-design/icons");
13
-
14
12
  var _Base2 = _interopRequireDefault(require("../../../framework/DataOperation/Base"));
15
13
 
16
14
  var _constants = require("../../../utils/constants");
@@ -120,7 +118,7 @@ var MobilePreviewArea = /*#__PURE__*/function (_Base) {
120
118
  list: [{
121
119
  title: {
122
120
  text: '手机预览',
123
- icon: /*#__PURE__*/_react.default.createElement(_icons.MobileOutlined, null)
121
+ icon: _constants.iconCollection.mobile
124
122
  },
125
123
  extra: {
126
124
  list: [{
@@ -9,8 +9,6 @@ exports.default = void 0;
9
9
 
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
 
12
- var _icons = require("@ant-design/icons");
13
-
14
12
  var _BaseNeedlessLoadDrawer = _interopRequireDefault(require("../../../framework/DataDrawer/BaseNeedlessLoadDrawer"));
15
13
 
16
14
  var _constants = require("../../../utils/constants");
@@ -75,7 +73,7 @@ var MobilePreviewDrawer = /*#__PURE__*/function (_BaseNeedlessLoadDraw) {
75
73
  _this.resetDataAfterLoad = false;
76
74
 
77
75
  _this.renderTitleIcon = function () {
78
- return /*#__PURE__*/_react.default.createElement(_icons.PictureOutlined, null);
76
+ return _constants.iconCollection.picture;
79
77
  };
80
78
 
81
79
  _this.renderTitle = function () {
@@ -29,10 +29,10 @@ var _classnames = _interopRequireDefault(require("classnames"));
29
29
 
30
30
  var _react = _interopRequireWildcard(require("react"));
31
31
 
32
- var _index = _interopRequireDefault(require("./index.less"));
33
-
34
32
  var _NoticeList = _interopRequireDefault(require("./NoticeList"));
35
33
 
34
+ var _index = _interopRequireDefault(require("./index.less"));
35
+
36
36
  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); }
37
37
 
38
38
  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; }
@@ -7,10 +7,10 @@ exports.default = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _icons = require("@ant-design/icons");
11
-
12
10
  var _classnames = _interopRequireDefault(require("classnames"));
13
11
 
12
+ var _constants = require("../../../utils/constants");
13
+
14
14
  var _index = _interopRequireDefault(require("./index.less"));
15
15
 
16
16
  var _excluded = ["theme", "title", "subTitle", "total", "subTotal", "status", "suffix", "gap"];
@@ -53,7 +53,7 @@ var NumberInfo = function NumberInfo(_ref) {
53
53
  className: _index.default.suffix
54
54
  }, suffix)), (status || subTotal) && /*#__PURE__*/_react.default.createElement("span", {
55
55
  className: _index.default.subTotal
56
- }, subTotal, status === 'up' && /*#__PURE__*/_react.default.createElement(_icons.CaretUpFilled, null), status === 'down' && /*#__PURE__*/_react.default.createElement(_icons.CaretDownOutlined, null))));
56
+ }, subTotal, status === 'up' && _constants.iconCollection.caretUp, status === 'down' && _constants.iconCollection.caretDown)));
57
57
  };
58
58
 
59
59
  var _default = NumberInfo;
@@ -11,12 +11,12 @@ require("antd/es/tag/style");
11
11
 
12
12
  var _tag = _interopRequireDefault(require("antd/es/tag"));
13
13
 
14
- var _icons = require("@ant-design/icons");
15
-
16
14
  var _classnames = _interopRequireDefault(require("classnames"));
17
15
 
18
16
  var _react = _interopRequireWildcard(require("react"));
19
17
 
18
+ var _constants = require("../../../utils/constants");
19
+
20
20
  var _index = _interopRequireDefault(require("./index.less"));
21
21
 
22
22
  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); }
@@ -200,7 +200,7 @@ var TagSelect = /*#__PURE__*/function (_Component) {
200
200
  }), expandable && /*#__PURE__*/_react.default.createElement("a", {
201
201
  className: _index.default.trigger,
202
202
  onClick: this.handleExpand
203
- }, expand ? '收起' : '展开', expand ? /*#__PURE__*/_react.default.createElement(_icons.UpCircleOutlined, null) : /*#__PURE__*/_react.default.createElement(_icons.DownOutlined, null)));
203
+ }, expand ? '收起' : '展开', expand ? _constants.iconCollection.upCircle : _constants.iconCollection.down));
204
204
  }
205
205
  }], [{
206
206
  key: "getDerivedStateFromProps",
@@ -245,7 +245,7 @@ TimeLineCustom.defaultProps = {
245
245
  iconStyle: {},
246
246
  links: [],
247
247
  getIcon: function getIcon() {
248
- return /*#__PURE__*/_react.default.createElement(_icons.MessageOutlined, null);
248
+ return _constants.iconCollection.message;
249
249
  },
250
250
  getBackgroundColorKey: function getBackgroundColorKey() {
251
251
  return '';