@chaoswise/ui 3.0.18 → 3.0.20

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 (87) hide show
  1. package/lib/AbreastLayout/index.js +1 -1
  2. package/lib/Antd5/_util/hooks/useClosable.js +1 -1
  3. package/lib/Antd5/auto-complete/index.js +1 -1
  4. package/lib/Antd5/form/FormItem/index.js +1 -1
  5. package/lib/Antd5/input/Password.js +1 -1
  6. package/lib/Antd5/menu/MenuItem.js +1 -1
  7. package/lib/Antd5/menu/SubMenu.js +1 -1
  8. package/lib/Antd5/modal/useModal/index.js +1 -1
  9. package/lib/Antd5/popover/index.js +1 -1
  10. package/lib/Antd5/spin/index.js +2 -2
  11. package/lib/Antd5/steps/useLegacyItems.js +1 -1
  12. package/lib/Antd5/tabs/hooks/useLegacyItems.js +1 -1
  13. package/lib/Antd5/tree/utils/iconUtil.js +2 -2
  14. package/lib/Antd5/typography/Base/index.js +1 -1
  15. package/lib/Antd5/typography/hooks/useCopyClick.js +2 -2
  16. package/lib/Antd5/upload/Upload.js +1 -1
  17. package/lib/Antd5/upload/UploadList/index.js +2 -2
  18. package/lib/Badge/index.js +2 -2
  19. package/lib/Badge/index.style.js +3 -1
  20. package/lib/BasicLayout/Footer.js +1 -1
  21. package/lib/BasicLayout/Sider.js +2 -2
  22. package/lib/BasicLayout/index.js +2 -2
  23. package/lib/Button/index.js +1 -1
  24. package/lib/CWCascader/Cascader/utils/iconUtil.js +3 -3
  25. package/lib/CWCascader/index.js +1 -1
  26. package/lib/CWCascader/rc-cascader/OptionList/Column.js +3 -3
  27. package/lib/CWColorPicker/index.js +1 -1
  28. package/lib/CWMessage/MessageContent/TabList/index.js +4 -3
  29. package/lib/CWMessage/MessageContent/index.js +7 -5
  30. package/lib/CWMessage/index.js +18 -10
  31. package/lib/CWRadioTabs/index.js +1 -1
  32. package/lib/CWRangePicker/DropdownMenu/index.js +1 -1
  33. package/lib/CWRangePicker/index.js +1 -1
  34. package/lib/CWTable/CWTable.js +2 -2
  35. package/lib/CWTree/index.js +1 -1
  36. package/lib/CardSelect/index.js +1 -1
  37. package/lib/ChangeIcon/index.js +1 -1
  38. package/lib/Collapse/index.js +1 -1
  39. package/lib/Collapse/index.style.js +10 -6
  40. package/lib/ConfigProvider/customTheme.js +11 -5
  41. package/lib/DataView/index.js +1 -1
  42. package/lib/Documentation/index.js +1 -1
  43. package/lib/Drawer/index.js +1 -1
  44. package/lib/Dropdown/index.js +1 -1
  45. package/lib/Empty/index.js +2 -2
  46. package/lib/ErrorBoundary/ErrorPage.js +1 -1
  47. package/lib/Exception/index.js +1 -1
  48. package/lib/FilterDropDown/index.js +3 -3
  49. package/lib/Form/hook/useForm3.js +2 -2
  50. package/lib/Form/index.js +1 -1
  51. package/lib/FormItemWrapper/index.js +1 -1
  52. package/lib/GlobalTabs/index.js +1 -1
  53. package/lib/Header/TopNavigationMenu/index.js +1 -1
  54. package/lib/Header/UserSetting/index.js +1 -1
  55. package/lib/IconSelect/index.js +1 -1
  56. package/lib/Input/index.js +4 -4
  57. package/lib/Joyride/List.js +1 -1
  58. package/lib/Joyride/index.js +1 -1
  59. package/lib/LayoutWrapper/Footer.js +1 -1
  60. package/lib/LayoutWrapper/Header.js +1 -1
  61. package/lib/LayoutWrapper/index.js +1 -1
  62. package/lib/LeftNavigation/index.js +1 -1
  63. package/lib/Modal/index.js +1 -1
  64. package/lib/ModuleFederation/react-dynamic-remote-component/RemoteComponent.js +3 -3
  65. package/lib/ModuleFederation/react-dynamic-remote-component/load-module.js +1 -1
  66. package/lib/ModuleTitle/index.js +1 -1
  67. package/lib/Pagination/index.js +1 -1
  68. package/lib/QuickRangePicker/index.js +1 -1
  69. package/lib/QuickTransfer/index.js +1 -1
  70. package/lib/RangePicker/index.js +1 -1
  71. package/lib/SearchBar/index.js +1 -1
  72. package/lib/SiderMenu/index.js +1 -1
  73. package/lib/SimpleCard/index.js +1 -1
  74. package/lib/SimplePagination/index.js +1 -1
  75. package/lib/SingleSpa/index.js +1 -1
  76. package/lib/Slider/index.js +1 -1
  77. package/lib/Tabs/index.js +1 -1
  78. package/lib/Tag/CheckableTag.js +1 -1
  79. package/lib/Tag/index.js +4 -4
  80. package/lib/TimeRangeSlider/TimeRangeSliderCmp/components/BottomSlider/index.js +1 -1
  81. package/lib/TimeRangeSlider/TimeRangeSliderCmp/components/TopSlider/index.js +1 -1
  82. package/lib/TimeRangeSlider/index.js +1 -1
  83. package/lib/Tooltip/index.js +1 -1
  84. package/lib/TooltipText/index.js +1 -1
  85. package/lib/UniversalLayout/index.js +3 -3
  86. package/lib/WangEditor/index.js +1 -1
  87. package/package.json +25 -25
@@ -84,7 +84,7 @@ function AbreastLayout(_ref) {
84
84
  useDidRecover(function () {
85
85
  eventManager.emit("abreastLayoutLoaded");
86
86
  });
87
- return wrapCSSVar( /*#__PURE__*/React.createElement("div", {
87
+ return wrapCSSVar(/*#__PURE__*/React.createElement("div", {
88
88
  className: classnames(hashId, cssVarCls, "".concat(prefixCls, "-cw-abreast-layout"))
89
89
  }, isLeft && /*#__PURE__*/React.createElement("div", {
90
90
  className: "".concat(prefixCls, "-content")
@@ -109,7 +109,7 @@ export default function useClosable(propCloseCollection, contextCloseCollection)
109
109
  // Wrap the closeIcon with aria props
110
110
  var ariaProps = pickAttrs(mergedClosableConfig, true);
111
111
  if (Object.keys(ariaProps).length) {
112
- mergedCloseIcon = /*#__PURE__*/React.isValidElement(mergedCloseIcon) ? ( /*#__PURE__*/React.cloneElement(mergedCloseIcon, ariaProps)) : _jsx("span", _objectSpread(_objectSpread({}, ariaProps), {}, {
112
+ mergedCloseIcon = /*#__PURE__*/React.isValidElement(mergedCloseIcon) ? (/*#__PURE__*/React.cloneElement(mergedCloseIcon, ariaProps)) : _jsx("span", _objectSpread(_objectSpread({}, ariaProps), {}, {
113
113
  children: mergedCloseIcon
114
114
  }));
115
115
  }
@@ -49,7 +49,7 @@ var AutoComplete = function AutoComplete(props, ref) {
49
49
  optionChildren = children;
50
50
  } else {
51
51
  optionChildren = dataSource ? dataSource.map(function (item) {
52
- if ( /*#__PURE__*/React.isValidElement(item)) {
52
+ if (/*#__PURE__*/React.isValidElement(item)) {
53
53
  return item;
54
54
  }
55
55
  switch (_typeof(item)) {
@@ -250,7 +250,7 @@ function InternalFormItem(props) {
250
250
  warning(!hasName, 'usage', 'A `Form.Item` with a render function cannot be a field, and thus cannot have a `name` prop.');
251
251
  } else if (dependencies && !isRenderProps && !hasName) {
252
252
  warning(false, 'usage', 'Must set `name` or use a render function when `dependencies` is set.');
253
- } else if ( /*#__PURE__*/React.isValidElement(mergedChildren)) {
253
+ } else if (/*#__PURE__*/React.isValidElement(mergedChildren)) {
254
254
  warning(mergedChildren.props.defaultValue === undefined, 'usage', '`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.');
255
255
  var childProps = _objectSpread(_objectSpread({}, mergedChildren.props), mergedControl);
256
256
  if (!childProps.id) {
@@ -82,7 +82,7 @@ var Password = /*#__PURE__*/React.forwardRef(function (props, ref) {
82
82
  // https://github.com/ant-design/ant-design/issues/23524
83
83
  e.preventDefault();
84
84
  });
85
- return /*#__PURE__*/React.cloneElement( /*#__PURE__*/React.isValidElement(icon) ? icon : _jsx("span", {
85
+ return /*#__PURE__*/React.cloneElement(/*#__PURE__*/React.isValidElement(icon) ? icon : _jsx("span", {
86
86
  children: icon
87
87
  }), iconProps);
88
88
  };
@@ -67,7 +67,7 @@ var MenuItem = function MenuItem(props) {
67
67
  className: classNames(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-item-danger"), danger), "".concat(prefixCls, "-item-only-child"), (icon ? childrenLength + 1 : childrenLength) === 1), className),
68
68
  title: typeof title === 'string' ? title : undefined,
69
69
  children: [cloneElement(icon, {
70
- className: classNames( /*#__PURE__*/React.isValidElement(icon) ? (_icon$props = icon.props) === null || _icon$props === void 0 ? void 0 : _icon$props.className : '', "".concat(prefixCls, "-item-icon"))
70
+ className: classNames(/*#__PURE__*/React.isValidElement(icon) ? (_icon$props = icon.props) === null || _icon$props === void 0 ? void 0 : _icon$props.className : '', "".concat(prefixCls, "-item-icon"))
71
71
  }), renderItemChildren(isInlineCollapsed)]
72
72
  }));
73
73
  if (!disableMenuItemTitleTooltip) {
@@ -44,7 +44,7 @@ var SubMenu = function SubMenu(props) {
44
44
  var titleIsSpan = /*#__PURE__*/React.isValidElement(title) && title.type === 'span';
45
45
  titleNode = _jsxs(_Fragment, {
46
46
  children: [cloneElement(icon, {
47
- className: classNames( /*#__PURE__*/React.isValidElement(icon) ? (_icon$props = icon.props) === null || _icon$props === void 0 ? void 0 : _icon$props.className : '', "".concat(prefixCls, "-item-icon"))
47
+ className: classNames(/*#__PURE__*/React.isValidElement(icon) ? (_icon$props = icon.props) === null || _icon$props === void 0 ? void 0 : _icon$props.className : '', "".concat(prefixCls, "-item-icon"))
48
48
  }), titleIsSpan ? title : _jsx("span", {
49
49
  className: "".concat(prefixCls, "-title-content"),
50
50
  children: title
@@ -15,7 +15,7 @@ import { withConfirm, withError, withInfo, withSuccess, withWarn } from '../conf
15
15
  import destroyFns from '../destroyFns';
16
16
  import HookModal from './HookModal';
17
17
  var uuid = 0;
18
- var ElementsHolder = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (_props, ref) {
18
+ var ElementsHolder = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (_props, ref) {
19
19
  var _usePatchElement = usePatchElement(),
20
20
  _usePatchElement2 = _slicedToArray(_usePatchElement, 2),
21
21
  elements = _usePatchElement2[0],
@@ -109,7 +109,7 @@ var InternalPopover = /*#__PURE__*/React.forwardRef(function (props, ref) {
109
109
  "data-popover-inject": true,
110
110
  children: cloneElement(children, {
111
111
  onKeyDown: function onKeyDown(e) {
112
- if ( /*#__PURE__*/React.isValidElement(children)) {
112
+ if (/*#__PURE__*/React.isValidElement(children)) {
113
113
  var _children$props$onKey, _children$props;
114
114
  children === null || children === void 0 || (_children$props$onKey = (_children$props = children.props).onKeyDown) === null || _children$props$onKey === void 0 || _children$props$onKey.call(_children$props, e);
115
115
  }
@@ -32,12 +32,12 @@ function renderIndicator(prefixCls, props) {
32
32
  if (indicator === null) {
33
33
  return null;
34
34
  }
35
- if ( /*#__PURE__*/React.isValidElement(indicator)) {
35
+ if (/*#__PURE__*/React.isValidElement(indicator)) {
36
36
  return cloneElement(indicator, {
37
37
  className: classNames(indicator.props.className, dotClassName)
38
38
  });
39
39
  }
40
- if ( /*#__PURE__*/React.isValidElement(defaultIndicator)) {
40
+ if (/*#__PURE__*/React.isValidElement(defaultIndicator)) {
41
41
  return cloneElement(defaultIndicator, {
42
42
  className: classNames(defaultIndicator.props.className, dotClassName)
43
43
  });
@@ -21,7 +21,7 @@ export default function useLegacyItems(items, children) {
21
21
  return items;
22
22
  }
23
23
  var childrenItems = toArray(children).map(function (node) {
24
- if ( /*#__PURE__*/React.isValidElement(node)) {
24
+ if (/*#__PURE__*/React.isValidElement(node)) {
25
25
  var props = node.props;
26
26
  var item = _objectSpread({}, props);
27
27
  return item;
@@ -24,7 +24,7 @@ export default function useLegacyItems(items, children) {
24
24
  return items;
25
25
  }
26
26
  var childrenItems = toArray(children).map(function (node) {
27
- if ( /*#__PURE__*/React.isValidElement(node)) {
27
+ if (/*#__PURE__*/React.isValidElement(node)) {
28
28
  var key = node.key,
29
29
  props = node.props;
30
30
  var _ref = props || {},
@@ -32,7 +32,7 @@ var SwitcherIconCom = function SwitcherIconCom(props) {
32
32
  if (typeof showLeafIcon !== 'boolean' && !!showLeafIcon) {
33
33
  var leafIcon = typeof showLeafIcon === 'function' ? showLeafIcon(treeNodeProps) : showLeafIcon;
34
34
  var leafCls = "".concat(prefixCls, "-switcher-line-custom-icon");
35
- if ( /*#__PURE__*/React.isValidElement(leafIcon)) {
35
+ if (/*#__PURE__*/React.isValidElement(leafIcon)) {
36
36
  return cloneElement(leafIcon, {
37
37
  className: classNames(leafIcon.props.className || '', leafCls)
38
38
  });
@@ -47,7 +47,7 @@ var SwitcherIconCom = function SwitcherIconCom(props) {
47
47
  }
48
48
  var switcherCls = "".concat(prefixCls, "-switcher-icon");
49
49
  var switcher = typeof switcherIcon === 'function' ? switcherIcon(treeNodeProps) : switcherIcon;
50
- if ( /*#__PURE__*/React.isValidElement(switcher)) {
50
+ if (/*#__PURE__*/React.isValidElement(switcher)) {
51
51
  return cloneElement(switcher, {
52
52
  className: classNames(switcher.props.className || '', switcherCls)
53
53
  });
@@ -273,7 +273,7 @@ var Base = /*#__PURE__*/React.forwardRef(function (props, ref) {
273
273
  tooltipProps = {
274
274
  title: (_editConfig$text = editConfig.text) !== null && _editConfig$text !== void 0 ? _editConfig$text : _children
275
275
  };
276
- } else if ( /*#__PURE__*/React.isValidElement(ellipsisConfig.tooltip)) {
276
+ } else if (/*#__PURE__*/React.isValidElement(ellipsisConfig.tooltip)) {
277
277
  tooltipProps = {
278
278
  title: ellipsisConfig.tooltip
279
279
  };
@@ -36,8 +36,8 @@ var useCopyClick = function useCopyClick(_ref) {
36
36
  return cleanCopyId;
37
37
  }, []);
38
38
  // Keep copy action up to date
39
- var onClick = useEvent( /*#__PURE__*/function () {
40
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
39
+ var onClick = useEvent(/*#__PURE__*/function () {
40
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
41
41
  var _copyConfig$onCopy, text;
42
42
  return _regeneratorRuntime().wrap(function _callee$(_context) {
43
43
  while (1) switch (_context.prev = _context.next) {
@@ -161,7 +161,7 @@ var InternalUpload = function InternalUpload(props, ref) {
161
161
  }
162
162
  };
163
163
  var mergedBeforeUpload = /*#__PURE__*/function () {
164
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file, fileListArgs) {
164
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file, fileListArgs) {
165
165
  var beforeUpload, transformFile, parsedFile, result;
166
166
  return _regeneratorRuntime().wrap(function _callee$(_context) {
167
167
  while (1) switch (_context.prev = _context.next) {
@@ -128,7 +128,7 @@ var InternalUploadList = function InternalUploadList(props, ref) {
128
128
  title: title,
129
129
  onClick: function onClick(e) {
130
130
  callback();
131
- if ( /*#__PURE__*/React.isValidElement(customIcon)) {
131
+ if (/*#__PURE__*/React.isValidElement(customIcon)) {
132
132
  var _customIcon$props$onC, _customIcon$props;
133
133
  (_customIcon$props$onC = (_customIcon$props = customIcon.props).onClick) === null || _customIcon$props$onC === void 0 || _customIcon$props$onC.call(_customIcon$props, e);
134
134
  }
@@ -138,7 +138,7 @@ var InternalUploadList = function InternalUploadList(props, ref) {
138
138
  if (acceptUploadDisabled) {
139
139
  btnProps.disabled = disabled;
140
140
  }
141
- if ( /*#__PURE__*/React.isValidElement(customIcon)) {
141
+ if (/*#__PURE__*/React.isValidElement(customIcon)) {
142
142
  var btnIcon = cloneElement(customIcon, _objectSpread(_objectSpread({}, customIcon.props), {}, {
143
143
  onClick: function onClick() {}
144
144
  }));
@@ -27,7 +27,7 @@ var CWBadge = /*#__PURE__*/forwardRef(function (props, ref) {
27
27
  cssVarCls = _useStyle2[2];
28
28
  var theme = useTheme();
29
29
  if (status == "processing") {
30
- return wrapCSSVar( /*#__PURE__*/React.createElement("span", {
30
+ return wrapCSSVar(/*#__PURE__*/React.createElement("span", {
31
31
  className: classnames(prefixCls, hashId, cssVarCls, "".concat(prefixCls, "-processing-wrapper"))
32
32
  }, /*#__PURE__*/React.createElement("span", {
33
33
  className: "".concat(prefixCls, "-processing")
@@ -35,7 +35,7 @@ var CWBadge = /*#__PURE__*/forwardRef(function (props, ref) {
35
35
  className: "".concat(prefixCls, "-processing-text")
36
36
  }, text)));
37
37
  }
38
- return wrapCSSVar( /*#__PURE__*/React.createElement(Badge, _extends({
38
+ return wrapCSSVar(/*#__PURE__*/React.createElement(Badge, _extends({
39
39
  ref: ref,
40
40
  color: status == "active" ? theme["colorPrimary"] : undefined,
41
41
  className: classnames("".concat(prefixCls, "-wrapper"), className)
@@ -77,7 +77,7 @@ var genCustomBadgeStyle = function genCustomBadgeStyle(token) {
77
77
  display: "inline-block",
78
78
  height: "20px",
79
79
  lineHeight: "20px"
80
- })), "".concat(badgePrefix).concat(badgePrefix, "-wrapper"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(badgePrefix, "-multiple-words"), {
80
+ })), "".concat(badgePrefix).concat(badgePrefix, "-wrapper"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(badgePrefix, "-multiple-words"), {
81
81
  padding: "0 6px"
82
82
  }), "".concat(badgePrefix, "-count"), {
83
83
  boxShadow: "none !important"
@@ -85,6 +85,8 @@ var genCustomBadgeStyle = function genCustomBadgeStyle(token) {
85
85
  marginRight: "8px"
86
86
  }), "".concat(badgePrefix, "-dot"), {
87
87
  boxShadow: "none !important"
88
+ }), "".concat(badgePrefix, "-status-default"), {
89
+ backgroundColor: "#d9d9d9"
88
90
  }), "".concat(badgePrefix, "-scroll-number"), {
89
91
  "&-only-unit:not(.current)": {
90
92
  visibility: "hidden"
@@ -46,7 +46,7 @@ function Footer(_ref) {
46
46
  props: res
47
47
  });
48
48
  });
49
- return wrapCSSVar( /*#__PURE__*/React.createElement("div", _extends({
49
+ return wrapCSSVar(/*#__PURE__*/React.createElement("div", _extends({
50
50
  className: classnames(hashId, cssVarCls, "".concat(prefixCls, "-cw-layout-bottom-footer")),
51
51
  ref: dom
52
52
  }, res), children));
@@ -89,7 +89,7 @@ function Sider(_ref) {
89
89
  siderDragWidth = _menuOptions$resizabl2.siderDragWidth,
90
90
  _resizableProps = _objectWithoutProperties(_menuOptions$resizabl2, _excluded),
91
91
  _resMenuProps = _objectWithoutProperties(menuOptions, _excluded2);
92
- return wrapCSSVar( /*#__PURE__*/React.createElement(Resizable, _extends({}, _resizableProps, {
92
+ return wrapCSSVar(/*#__PURE__*/React.createElement(Resizable, _extends({}, _resizableProps, {
93
93
  minWidth: selfCollapsed ? siderCollapsedWidth : siderWidth,
94
94
  maxWidth: selfCollapsed ? siderCollapsedWidth : maxDragWidth,
95
95
  onResizeStart: function onResizeStart() {
@@ -132,7 +132,7 @@ function Sider(_ref) {
132
132
  className: "cw-side-menu-box"
133
133
  }, /*#__PURE__*/React.createElement("div", {
134
134
  className: "cw-side-menu"
135
- }, siderMenu ? ( /*#__PURE__*/React.cloneElement(siderMenu, {
135
+ }, siderMenu ? (/*#__PURE__*/React.cloneElement(siderMenu, {
136
136
  collapsed: selfCollapsed
137
137
  }) // 自定义传入的Menu注入collapsed属性
138
138
  ) : /*#__PURE__*/React.createElement(_SiderMenu, _extends({
@@ -204,7 +204,7 @@ var BasicLayout = function BasicLayout(_ref) {
204
204
  var children = _ref3.children,
205
205
  dom = _ref3.dom,
206
206
  props = _ref3.props;
207
- setCloneFooter( /*#__PURE__*/React.createElement("div", _extends({
207
+ setCloneFooter(/*#__PURE__*/React.createElement("div", _extends({
208
208
  className: "".concat(prefixCls, "-cw-layout-bottom-footer")
209
209
  }, props), children));
210
210
 
@@ -219,7 +219,7 @@ var BasicLayout = function BasicLayout(_ref) {
219
219
  }
220
220
  };
221
221
  // ----- footer -----
222
- return wrapCSSVar( /*#__PURE__*/React.createElement("div", {
222
+ return wrapCSSVar(/*#__PURE__*/React.createElement("div", {
223
223
  className: classnames(hashId, cssVarCls, "".concat(prefixCls, "-cw-layout-out"), className),
224
224
  style: style,
225
225
  ref: layoutRef
@@ -33,7 +33,7 @@ var CWButton = /*#__PURE__*/forwardRef(function (props, ref) {
33
33
  wrapCSSVar = _useStyle2[0],
34
34
  hashId = _useStyle2[1],
35
35
  cssVarCls = _useStyle2[2];
36
- return wrapCSSVar( /*#__PURE__*/React.createElement(Button, _extends({
36
+ return wrapCSSVar(/*#__PURE__*/React.createElement(Button, _extends({
37
37
  className: classnames("".concat(prefixCls, "-wrapper"), _defineProperty({}, "".concat(prefixCls, "-main"), mainType), className),
38
38
  ref: ref,
39
39
  type: type === "danger" || type === "warn" ? undefined : type,
@@ -38,7 +38,7 @@ export default function getIcons(_ref) {
38
38
  if (suffixIcon !== undefined) {
39
39
  mergedSuffixIcon = getSuffixIconNode(suffixIcon);
40
40
  } else if (loading) {
41
- mergedSuffixIcon = getSuffixIconNode( /*#__PURE__*/React.createElement(LoadingOutlined, {
41
+ mergedSuffixIcon = getSuffixIconNode(/*#__PURE__*/React.createElement(LoadingOutlined, {
42
42
  spin: true
43
43
  }));
44
44
  } else {
@@ -47,11 +47,11 @@ export default function getIcons(_ref) {
47
47
  var open = _ref2.open,
48
48
  showSearch = _ref2.showSearch;
49
49
  if (open && showSearch) {
50
- return getSuffixIconNode( /*#__PURE__*/React.createElement(SearchOutlined, {
50
+ return getSuffixIconNode(/*#__PURE__*/React.createElement(SearchOutlined, {
51
51
  className: iconCls
52
52
  }));
53
53
  }
54
- return getSuffixIconNode( /*#__PURE__*/React.createElement(DownOutlined, {
54
+ return getSuffixIconNode(/*#__PURE__*/React.createElement(DownOutlined, {
55
55
  className: iconCls
56
56
  }));
57
57
  };
@@ -19,7 +19,7 @@ var CWCascader = /*#__PURE__*/forwardRef(function (props, ref) {
19
19
  wrapCSSVar = _useStyle2[0],
20
20
  hashId = _useStyle2[1],
21
21
  cssVarCls = _useStyle2[2];
22
- return wrapCSSVar( /*#__PURE__*/React.createElement(Cascader, _extends({}, props, {
22
+ return wrapCSSVar(/*#__PURE__*/React.createElement(Cascader, _extends({}, props, {
23
23
  ref: ref
24
24
  })));
25
25
  });
@@ -113,7 +113,7 @@ export default function Column(_ref) {
113
113
  });
114
114
  }, [options, checkedSet, fieldNames, halfCheckedSet, loadingKeys, prevValuePath]);
115
115
  var onChange = /*#__PURE__*/function () {
116
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
116
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
117
117
  return _regeneratorRuntime().wrap(function _callee$(_context) {
118
118
  while (1) switch (_context.prev = _context.next) {
119
119
  case 0:
@@ -142,8 +142,8 @@ export default function Column(_ref) {
142
142
  style: {
143
143
  flex: 1
144
144
  },
145
- onScroll: ( /*#__PURE__*/function () {
146
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
145
+ onScroll: (/*#__PURE__*/function () {
146
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
147
147
  var isScrollBottom;
148
148
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
149
149
  while (1) switch (_context2.prev = _context2.next) {
@@ -238,7 +238,7 @@ var ColorPicker = function ColorPicker(_ref) {
238
238
  onChange: changeTab,
239
239
  items: items
240
240
  }));
241
- return wrapCSSVar( /*#__PURE__*/React.createElement("div", {
241
+ return wrapCSSVar(/*#__PURE__*/React.createElement("div", {
242
242
  className: classnames(hashId, cssVarCls, "".concat(prefixCls, "-select")),
243
243
  onClick: function onClick(e) {
244
244
  e.preventDefault();
@@ -28,7 +28,8 @@ var TabList = function TabList(props) {
28
28
  requestOption = props.requestOption,
29
29
  code = props.code,
30
30
  onTabListAllRead = props.onTabListAllRead,
31
- messagePrefixCls = props.messagePrefixCls;
31
+ messagePrefixCls = props.messagePrefixCls,
32
+ format = props.format;
32
33
  var intl = useIntl();
33
34
  var _readInnerMessageApi = requestOption.readInnerMessageApi;
34
35
  var onHandleMessage = function onHandleMessage(message) {
@@ -59,7 +60,7 @@ var TabList = function TabList(props) {
59
60
  }
60
61
  };
61
62
  var readInnerMessage = /*#__PURE__*/function () {
62
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
63
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
63
64
  var resRequestApi, res, _params;
64
65
  return _regeneratorRuntime().wrap(function _callee$(_context) {
65
66
  while (1) switch (_context.prev = _context.next) {
@@ -110,7 +111,7 @@ var TabList = function TabList(props) {
110
111
  className: "".concat(messagePrefixCls, "-content-tabs-list-desc")
111
112
  }, (_message$summary = message.summary) !== null && _message$summary !== void 0 ? _message$summary : ''), /*#__PURE__*/React.createElement("div", {
112
113
  className: "".concat(messagePrefixCls, "-content-tabs-list-date")
113
- }, message.time ? dayjs(Number(message.time)).format('YYYY/MM/DD HH:mm:ss') : ''));
114
+ }, message.time ? dayjs(Number(message.time)).format(format) : ''));
114
115
  });
115
116
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Button, {
116
117
  className: "".concat(messagePrefixCls, "-content-all-read"),
@@ -49,7 +49,8 @@ var MessageContent = function MessageContent(props) {
49
49
  requestOption = props.requestOption,
50
50
  onTabListAllRead = props.onTabListAllRead,
51
51
  conditionsRef = props.conditionsRef,
52
- messagePrefixCls = props.messagePrefixCls;
52
+ messagePrefixCls = props.messagePrefixCls,
53
+ format = props.format;
53
54
  var intl = useIntl();
54
55
  var token = useTheme();
55
56
  var history = useHistory();
@@ -77,7 +78,7 @@ var MessageContent = function MessageContent(props) {
77
78
  _getMessageListApi = requestOption.getMessageListApi,
78
79
  _getMessageUnreadCountApi = requestOption.getMessageUnreadCountApi;
79
80
  useEffect(function () {
80
- _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
81
+ _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
81
82
  var resRequestApi, res, _data$, data, params;
82
83
  return _regeneratorRuntime().wrap(function _callee$(_context) {
83
84
  while (1) switch (_context.prev = _context.next) {
@@ -108,7 +109,7 @@ var MessageContent = function MessageContent(props) {
108
109
  locale = _ref2$currentLocale === void 0 ? "zh_CN" : _ref2$currentLocale;
109
110
  // 查询消息列表(接口)
110
111
  var getMessageList = /*#__PURE__*/function () {
111
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(params) {
112
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(params) {
112
113
  var resRequestApi, res, _res$data, _total, _res$data$records, records;
113
114
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
114
115
  while (1) switch (_context2.prev = _context2.next) {
@@ -138,7 +139,7 @@ var MessageContent = function MessageContent(props) {
138
139
  }();
139
140
  // 查询所有类型的未读消息数(接口)
140
141
  var getMessageUnreadCount = /*#__PURE__*/function () {
141
- var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
142
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
142
143
  var resRequestApi, res, _res$data$byType, byType, _unreadTypeArr;
143
144
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
144
145
  while (1) switch (_context3.prev = _context3.next) {
@@ -241,7 +242,8 @@ var MessageContent = function MessageContent(props) {
241
242
  requestOption: requestOption,
242
243
  code: item.code,
243
244
  onTabListAllRead: onTabListAllRead,
244
- messagePrefixCls: messagePrefixCls
245
+ messagePrefixCls: messagePrefixCls,
246
+ format: format
245
247
  }) : /*#__PURE__*/React.createElement(_Empty, {
246
248
  description: emptyDescription
247
249
  }), /*#__PURE__*/React.createElement("div", {
@@ -58,7 +58,9 @@ function Message(props) {
58
58
  _props$strongMessageO = props.strongMessageOption,
59
59
  strongMessageOption = _props$strongMessageO === void 0 ? {} : _props$strongMessageO,
60
60
  _props$onSocketChange = props.onSocketChange,
61
- onSocketChange = _props$onSocketChange === void 0 ? function () {} : _props$onSocketChange;
61
+ onSocketChange = _props$onSocketChange === void 0 ? function () {} : _props$onSocketChange,
62
+ _props$format = props.format,
63
+ format = _props$format === void 0 ? "YYYY-MM-DD HH:mm:ss" : _props$format;
62
64
  var _useConfigContext = useConfigContext(),
63
65
  getPrefixCls = _useConfigContext.getPrefixCls;
64
66
  var prefixCls = getPrefixCls();
@@ -164,7 +166,7 @@ function Message(props) {
164
166
  setVisible(true);
165
167
  };
166
168
  var openNotification = /*#__PURE__*/function () {
167
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(time, id) {
169
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(time, id) {
168
170
  var params, resRequestApi, res, data, _ref2, userMessageId, title, summary;
169
171
  return _regeneratorRuntime().wrap(function _callee$(_context) {
170
172
  while (1) switch (_context.prev = _context.next) {
@@ -209,7 +211,7 @@ function Message(props) {
209
211
  };
210
212
  }();
211
213
  var readInnerMessage = /*#__PURE__*/function () {
212
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(params) {
214
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(params) {
213
215
  var resRequestApi;
214
216
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
215
217
  while (1) switch (_context2.prev = _context2.next) {
@@ -262,7 +264,7 @@ function Message(props) {
262
264
  }
263
265
  };
264
266
  var connectSocket = /*#__PURE__*/function () {
265
- var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
267
+ var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
266
268
  var resRequestApi, res, finalOrigin, socket;
267
269
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
268
270
  while (1) switch (_context4.prev = _context4.next) {
@@ -287,7 +289,7 @@ function Message(props) {
287
289
  // 监听从服务器传来的消息
288
290
  socket.on("push", getSocketPostMessage);
289
291
  // socket重连
290
- socket.on("reconnect_attempt", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
292
+ socket.on("reconnect_attempt", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
291
293
  var res;
292
294
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
293
295
  while (1) switch (_context3.prev = _context3.next) {
@@ -320,7 +322,7 @@ function Message(props) {
320
322
  };
321
323
  }();
322
324
  var getMessageQuerySettings = /*#__PURE__*/function () {
323
- var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
325
+ var _ref9 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
324
326
  var resRequestApi, res, data;
325
327
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
326
328
  while (1) switch (_context5.prev = _context5.next) {
@@ -344,7 +346,7 @@ function Message(props) {
344
346
  return _ref9.apply(this, arguments);
345
347
  };
346
348
  }();
347
- return wrapCSSVar( /*#__PURE__*/React.createElement("div", {
349
+ return wrapCSSVar(/*#__PURE__*/React.createElement("div", {
348
350
  className: classnames(hashId, cssVarCls, "".concat(messagePrefixCls, "-wrapper"))
349
351
  }, contextHolder, /*#__PURE__*/React.createElement(_Badge, _extends({
350
352
  count: messageTotal,
@@ -389,7 +391,8 @@ function Message(props) {
389
391
  onTabListAllRead: onTabListAllRead,
390
392
  closable: closable,
391
393
  conditionsRef: conditionsRef,
392
- messagePrefixCls: messagePrefixCls
394
+ messagePrefixCls: messagePrefixCls,
395
+ format: format
393
396
  }))));
394
397
  }
395
398
  Message.defaultProps = {
@@ -400,7 +403,8 @@ Message.defaultProps = {
400
403
  isClose: false,
401
404
  timeout: 3000,
402
405
  socketPathPrefix: "",
403
- closable: false
406
+ closable: false,
407
+ format: "YYYY-MM-DD HH:mm:ss"
404
408
  };
405
409
  Message.propTypes = {
406
410
  /**
@@ -454,6 +458,10 @@ Message.propTypes = {
454
458
  /**
455
459
  * 强提醒配置strongMessageOption = {onClickStrongMessageItem = ()=>{},点击强提醒项后的回调}
456
460
  */
457
- strongMessageOption: PropTypes.object
461
+ strongMessageOption: PropTypes.object,
462
+ /**
463
+ * 消息内容的时间format格式
464
+ */
465
+ format: PropTypes.string
458
466
  };
459
467
  export default Message;
@@ -78,7 +78,7 @@ var CWRadioTabs = /*#__PURE__*/forwardRef(function (props, ref) {
78
78
  }, item.title);
79
79
  }));
80
80
  if (!dataSource.length) return null;
81
- return wrapCSSVar( /*#__PURE__*/React.createElement("div", _extends({
81
+ return wrapCSSVar(/*#__PURE__*/React.createElement("div", _extends({
82
82
  className: classnames(hashId, cssVarCls, prefixCls, className)
83
83
  }, rest), /*#__PURE__*/React.createElement(_Radio.Group, {
84
84
  value: finalActiveKey,
@@ -141,7 +141,7 @@ var DropdownMenu = function DropdownMenu(props) {
141
141
  e.stopPropagation();
142
142
  setHistoryList([]);
143
143
  };
144
- return wrapCSSVar( /*#__PURE__*/React.createElement("div", {
144
+ return wrapCSSVar(/*#__PURE__*/React.createElement("div", {
145
145
  className: classnames(hashId, cssVarCls, "".concat(prefixCls, "-cw-dropdown-menu-wrapper"))
146
146
  }, dataSource === null || dataSource === void 0 ? void 0 : dataSource.slice(0, showDefaultCount).map(function (item) {
147
147
  var values = item.value;
@@ -538,7 +538,7 @@ var CWRangePicker = /*#__PURE__*/forwardRef(function (props, ref) {
538
538
  isHasDate: isHasDate,
539
539
  isClickAutoRefresh: isClickAutoRefresh
540
540
  });
541
- return wrapCSSVar( /*#__PURE__*/React.createElement("div", {
541
+ return wrapCSSVar(/*#__PURE__*/React.createElement("div", {
542
542
  className: classnames(hashId, cssVarCls, "".concat(prefixCls, "-cw-range-picker-wrapper"), classNameWrapper),
543
543
  ref: calendarRef
544
544
  }, contextHolder, /*#__PURE__*/React.createElement("div", {
@@ -542,7 +542,7 @@ var CWTable = function CWTable(_ref, ref) {
542
542
  };
543
543
  components = merge(components, tableComponents);
544
544
  var tableColumns = getColumns();
545
- return wrapCSSVar( /*#__PURE__*/React.createElement("div", {
545
+ return wrapCSSVar(/*#__PURE__*/React.createElement("div", {
546
546
  className: classnames(hashId, cssVarCls, "cw-common-table", tableWapperClassName),
547
547
  ref: outContainerRef
548
548
  }, /*#__PURE__*/React.createElement("div", {
@@ -603,4 +603,4 @@ var CWTable = function CWTable(_ref, ref) {
603
603
  ref: paginationContainerRef
604
604
  }, /*#__PURE__*/React.createElement(_Pagination, getPaginationOption()))));
605
605
  };
606
- export default _configHoc( /*#__PURE__*/forwardRef(CWTable));
606
+ export default _configHoc(/*#__PURE__*/forwardRef(CWTable));
@@ -275,7 +275,7 @@ function CWTree(_ref) {
275
275
  var onMouseLeave = function onMouseLeave() {
276
276
  setShowExtend("");
277
277
  };
278
- return wrapCSSVar( /*#__PURE__*/React.createElement("div", {
278
+ return wrapCSSVar(/*#__PURE__*/React.createElement("div", {
279
279
  className: classnames(hashId, cssVarCls, "".concat(prefixCls, "-cw-tree-outer-wrapper"))
280
280
  }, /*#__PURE__*/React.createElement("div", {
281
281
  className: "cw-tree-inner-wrapper"
@@ -94,7 +94,7 @@ var CWCardSelect = function CWCardSelect(_ref) {
94
94
  className: "".concat(prefixCls, "-item-name")
95
95
  }, item.name));
96
96
  }))));
97
- return wrapCSSVar( /*#__PURE__*/React.createElement(_Dropdown, _extends({
97
+ return wrapCSSVar(/*#__PURE__*/React.createElement(_Dropdown, _extends({
98
98
  overlay: menu,
99
99
  placement: "bottomRight"
100
100
  }, rest), children ? children : /*#__PURE__*/React.createElement(_Button, null, title ? title : dropdownTitle, " ")));
@@ -75,7 +75,7 @@ var ChangeIcon = function ChangeIcon(props) {
75
75
  var hasIcon = data.find(function (item) {
76
76
  return item.key === activeKey;
77
77
  });
78
- return wrapCSSVar( /*#__PURE__*/React.createElement("div", {
78
+ return wrapCSSVar(/*#__PURE__*/React.createElement("div", {
79
79
  className: classnames(hashId, cssVarCls, "".concat(prefixCls, "-outer-wrapper"))
80
80
  }, /*#__PURE__*/React.createElement(_Space, {
81
81
  size: [8, 16],
@@ -40,7 +40,7 @@ var CWCollapse = /*#__PURE__*/forwardRef(function (props, ref) {
40
40
  cssVarCls = _useStyle2[2];
41
41
  var _expandIconPosition = ["end", "right"].includes(expandIconPosition) ? "end" : "start";
42
42
  var _ghost = ghost || !isHasBackground;
43
- return wrapCSSVar( /*#__PURE__*/React.createElement(Collapse, _extends({
43
+ return wrapCSSVar(/*#__PURE__*/React.createElement(Collapse, _extends({
44
44
  className: classnames("".concat(prefixCls, "-wrapper"), _defineProperty({}, "".concat(prefixCls, "-small"), size === "small"), className),
45
45
  expandIcon: expandIcon ? expandIcon : function (_ref) {
46
46
  var isActive = _ref.isActive;