@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.
- package/lib/AbreastLayout/index.js +1 -1
- package/lib/Antd5/_util/hooks/useClosable.js +1 -1
- package/lib/Antd5/auto-complete/index.js +1 -1
- package/lib/Antd5/form/FormItem/index.js +1 -1
- package/lib/Antd5/input/Password.js +1 -1
- package/lib/Antd5/menu/MenuItem.js +1 -1
- package/lib/Antd5/menu/SubMenu.js +1 -1
- package/lib/Antd5/modal/useModal/index.js +1 -1
- package/lib/Antd5/popover/index.js +1 -1
- package/lib/Antd5/spin/index.js +2 -2
- package/lib/Antd5/steps/useLegacyItems.js +1 -1
- package/lib/Antd5/tabs/hooks/useLegacyItems.js +1 -1
- package/lib/Antd5/tree/utils/iconUtil.js +2 -2
- package/lib/Antd5/typography/Base/index.js +1 -1
- package/lib/Antd5/typography/hooks/useCopyClick.js +2 -2
- package/lib/Antd5/upload/Upload.js +1 -1
- package/lib/Antd5/upload/UploadList/index.js +2 -2
- package/lib/Badge/index.js +2 -2
- package/lib/Badge/index.style.js +3 -1
- package/lib/BasicLayout/Footer.js +1 -1
- package/lib/BasicLayout/Sider.js +2 -2
- package/lib/BasicLayout/index.js +2 -2
- package/lib/Button/index.js +1 -1
- package/lib/CWCascader/Cascader/utils/iconUtil.js +3 -3
- package/lib/CWCascader/index.js +1 -1
- package/lib/CWCascader/rc-cascader/OptionList/Column.js +3 -3
- package/lib/CWColorPicker/index.js +1 -1
- package/lib/CWMessage/MessageContent/TabList/index.js +4 -3
- package/lib/CWMessage/MessageContent/index.js +7 -5
- package/lib/CWMessage/index.js +18 -10
- package/lib/CWRadioTabs/index.js +1 -1
- package/lib/CWRangePicker/DropdownMenu/index.js +1 -1
- package/lib/CWRangePicker/index.js +1 -1
- package/lib/CWTable/CWTable.js +2 -2
- package/lib/CWTree/index.js +1 -1
- package/lib/CardSelect/index.js +1 -1
- package/lib/ChangeIcon/index.js +1 -1
- package/lib/Collapse/index.js +1 -1
- package/lib/Collapse/index.style.js +10 -6
- package/lib/ConfigProvider/customTheme.js +11 -5
- package/lib/DataView/index.js +1 -1
- package/lib/Documentation/index.js +1 -1
- package/lib/Drawer/index.js +1 -1
- package/lib/Dropdown/index.js +1 -1
- package/lib/Empty/index.js +2 -2
- package/lib/ErrorBoundary/ErrorPage.js +1 -1
- package/lib/Exception/index.js +1 -1
- package/lib/FilterDropDown/index.js +3 -3
- package/lib/Form/hook/useForm3.js +2 -2
- package/lib/Form/index.js +1 -1
- package/lib/FormItemWrapper/index.js +1 -1
- package/lib/GlobalTabs/index.js +1 -1
- package/lib/Header/TopNavigationMenu/index.js +1 -1
- package/lib/Header/UserSetting/index.js +1 -1
- package/lib/IconSelect/index.js +1 -1
- package/lib/Input/index.js +4 -4
- package/lib/Joyride/List.js +1 -1
- package/lib/Joyride/index.js +1 -1
- package/lib/LayoutWrapper/Footer.js +1 -1
- package/lib/LayoutWrapper/Header.js +1 -1
- package/lib/LayoutWrapper/index.js +1 -1
- package/lib/LeftNavigation/index.js +1 -1
- package/lib/Modal/index.js +1 -1
- package/lib/ModuleFederation/react-dynamic-remote-component/RemoteComponent.js +3 -3
- package/lib/ModuleFederation/react-dynamic-remote-component/load-module.js +1 -1
- package/lib/ModuleTitle/index.js +1 -1
- package/lib/Pagination/index.js +1 -1
- package/lib/QuickRangePicker/index.js +1 -1
- package/lib/QuickTransfer/index.js +1 -1
- package/lib/RangePicker/index.js +1 -1
- package/lib/SearchBar/index.js +1 -1
- package/lib/SiderMenu/index.js +1 -1
- package/lib/SimpleCard/index.js +1 -1
- package/lib/SimplePagination/index.js +1 -1
- package/lib/SingleSpa/index.js +1 -1
- package/lib/Slider/index.js +1 -1
- package/lib/Tabs/index.js +1 -1
- package/lib/Tag/CheckableTag.js +1 -1
- package/lib/Tag/index.js +4 -4
- package/lib/TimeRangeSlider/TimeRangeSliderCmp/components/BottomSlider/index.js +1 -1
- package/lib/TimeRangeSlider/TimeRangeSliderCmp/components/TopSlider/index.js +1 -1
- package/lib/TimeRangeSlider/index.js +1 -1
- package/lib/Tooltip/index.js +1 -1
- package/lib/TooltipText/index.js +1 -1
- package/lib/UniversalLayout/index.js +3 -3
- package/lib/WangEditor/index.js +1 -1
- package/package.json +25 -25
|
@@ -3,15 +3,16 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
|
|
|
3
3
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
4
4
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
5
5
|
import { genStyleHooks } from "../Antd5/theme/internal";
|
|
6
|
-
import { unit } from
|
|
6
|
+
import { unit } from "@ant-design/cssinjs";
|
|
7
7
|
var genCustomCWCollapseStyle = function genCustomCWCollapseStyle(token) {
|
|
8
|
+
var _$concat$concat2;
|
|
8
9
|
var prefixCls = token.antCls;
|
|
9
10
|
var collapsePrefix = "".concat(prefixCls, "-collapse");
|
|
10
|
-
return _defineProperty(
|
|
11
|
+
return _defineProperty({}, "".concat(collapsePrefix).concat(collapsePrefix, "-wrapper"), (_$concat$concat2 = {
|
|
11
12
|
backgroundColor: token.colorBgContainer,
|
|
12
13
|
border: "0",
|
|
13
14
|
borderRadius: token.borderRadius
|
|
14
|
-
}, " > ".concat(collapsePrefix, "-item"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
15
|
+
}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_$concat$concat2, " > ".concat(collapsePrefix, "-item"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
15
16
|
borderBottom: "0",
|
|
16
17
|
marginBottom: "16px",
|
|
17
18
|
"&:last-child": _defineProperty({}, "&, & > ".concat(collapsePrefix, "-header"), {
|
|
@@ -73,11 +74,11 @@ var genCustomCWCollapseStyle = function genCustomCWCollapseStyle(token) {
|
|
|
73
74
|
color: token.colorTextDisabled,
|
|
74
75
|
cursor: "not-allowed"
|
|
75
76
|
}
|
|
76
|
-
})
|
|
77
|
+
}), "&".concat(collapsePrefix, "-small"), _defineProperty({}, "& > ".concat(collapsePrefix, "-item"), _defineProperty({}, "> ".concat(collapsePrefix, "-header"), {
|
|
77
78
|
padding: "8px 16px",
|
|
78
79
|
lineHeight: "20px",
|
|
79
80
|
fontSize: "12px"
|
|
80
|
-
}))), "".concat(collapsePrefix, "-ghost"), _defineProperty({}, "& > ".concat(collapsePrefix, "-item"), _defineProperty(_defineProperty(_defineProperty({}, "> ".concat(collapsePrefix, "-header"), _defineProperty({
|
|
81
|
+
}))), _defineProperty(_$concat$concat2, "&".concat(collapsePrefix, "-ghost"), _defineProperty(_defineProperty({}, "& > ".concat(collapsePrefix, "-item"), _defineProperty(_defineProperty(_defineProperty({}, "> ".concat(collapsePrefix, "-header"), _defineProperty({
|
|
81
82
|
padding: "0",
|
|
82
83
|
paddingRight: "16px",
|
|
83
84
|
background: token.colorBgContainer
|
|
@@ -110,7 +111,10 @@ var genCustomCWCollapseStyle = function genCustomCWCollapseStyle(token) {
|
|
|
110
111
|
}, "".concat(collapsePrefix, "-arrow"), {
|
|
111
112
|
background: token.colorPrimaryBg,
|
|
112
113
|
color: token.colorPrimaryHover
|
|
113
|
-
})))))))
|
|
114
|
+
})))))), "&".concat(collapsePrefix, "-icon-position-end"), _defineProperty({}, "& > ".concat(collapsePrefix, "-item"), _defineProperty({}, "> ".concat(collapsePrefix, "-header"), {
|
|
115
|
+
padding: "0",
|
|
116
|
+
paddingLeft: "16px"
|
|
117
|
+
}))))));
|
|
114
118
|
};
|
|
115
119
|
// ============================== Export ==============================
|
|
116
120
|
export default genStyleHooks("CWCollapse", function (token) {
|
|
@@ -15,6 +15,7 @@ export default {
|
|
|
15
15
|
// rgba(0, 0, 0, 0.15)
|
|
16
16
|
colorBorderSecondary: "#0000000f",
|
|
17
17
|
// rgba(0, 0, 0, 0.06) 一般用于边框分割线颜色
|
|
18
|
+
colorTextPlaceholder: "rgba(0,0,0,0.45)",
|
|
18
19
|
controlHeight: 28,
|
|
19
20
|
controlHeightLG: 40,
|
|
20
21
|
// Math.floor(controlHeight * 1.43)
|
|
@@ -73,10 +74,13 @@ export default {
|
|
|
73
74
|
// 1.分页组件页数过多跳转ellipsis样式调整(需要加边框)
|
|
74
75
|
controlItemBgActiveDisabled: "rgba(0, 0, 0, 0.04)" // token变量colorFillTertiary
|
|
75
76
|
},
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
Form: {
|
|
78
|
+
labelColor: "rgba(0, 0, 0, 0.65)",
|
|
79
|
+
// token变量 colorTextSecondary
|
|
80
|
+
verticalLabelPadding: "0 0 4px"
|
|
81
|
+
// 组件内部需要调整符合UI规范的样式
|
|
82
|
+
// 1.布局模式下为horizontal样式调整(label定宽等相关问题、必填项样式调整)
|
|
83
|
+
},
|
|
80
84
|
Steps: {
|
|
81
85
|
// 组件内部需要调整符合UI规范的样式
|
|
82
86
|
// 1.步骤条连接线定宽100px、颜色始终为初始色值
|
|
@@ -120,7 +124,9 @@ export default {
|
|
|
120
124
|
},
|
|
121
125
|
Badge: {
|
|
122
126
|
dotSize: 4,
|
|
123
|
-
statusSize: 8
|
|
127
|
+
statusSize: 8,
|
|
128
|
+
indicatorHeight: 20,
|
|
129
|
+
textFontSize: 12
|
|
124
130
|
},
|
|
125
131
|
Collapse: {
|
|
126
132
|
// 组件内部需要调整符合UI规范的样式
|
package/lib/DataView/index.js
CHANGED
|
@@ -33,7 +33,7 @@ function DataView(_ref) {
|
|
|
33
33
|
wrapCSSVar = _useStyle2[0],
|
|
34
34
|
hashId = _useStyle2[1],
|
|
35
35
|
cssVarCls = _useStyle2[2];
|
|
36
|
-
return wrapCSSVar(
|
|
36
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement(_Descriptions, {
|
|
37
37
|
column: column,
|
|
38
38
|
className: className
|
|
39
39
|
}, dataSource.map(function (value) {
|
|
@@ -109,7 +109,7 @@ var Documentation = function Documentation(_ref) {
|
|
|
109
109
|
// } catch { }
|
|
110
110
|
// }
|
|
111
111
|
};
|
|
112
|
-
return wrapCSSVar(
|
|
112
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement("div", {
|
|
113
113
|
className: classNames(hashId, cssVarCls, prefixCls, className),
|
|
114
114
|
style: _objectSpread({
|
|
115
115
|
width: "100%",
|
package/lib/Drawer/index.js
CHANGED
|
@@ -73,7 +73,7 @@ var CWDrawer = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
73
73
|
}
|
|
74
74
|
return null;
|
|
75
75
|
}, [title, extraLeft, extraRight, closable]);
|
|
76
|
-
return wrapCSSVar(
|
|
76
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement(Drawer, _extends({
|
|
77
77
|
ref: ref,
|
|
78
78
|
rootClassName: classnames("".concat(prefixCls, "-wrapper"), rootClassName),
|
|
79
79
|
open: open !== null && open !== void 0 ? open : visible,
|
package/lib/Dropdown/index.js
CHANGED
|
@@ -27,7 +27,7 @@ var Dropdown = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
27
27
|
wrapCSSVar = _useStyle2[0],
|
|
28
28
|
hashId = _useStyle2[1],
|
|
29
29
|
cssVarCls = _useStyle2[2];
|
|
30
|
-
return wrapCSSVar(
|
|
30
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement(AntdDropdown, _extends({
|
|
31
31
|
open: open !== null && open !== void 0 ? open : visible,
|
|
32
32
|
onOpenChange: onVisibleChange
|
|
33
33
|
}, rest, {
|
package/lib/Empty/index.js
CHANGED
|
@@ -34,13 +34,13 @@ var CWEmpty = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
34
34
|
hashId = _useStyle2[1],
|
|
35
35
|
cssVarCls = _useStyle2[2];
|
|
36
36
|
if (onlyDescription) {
|
|
37
|
-
return wrapCSSVar(
|
|
37
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement("div", {
|
|
38
38
|
className: classnames(hashId, cssVarCls, "".concat(prefixCls, "-only-description"), className)
|
|
39
39
|
}, /*#__PURE__*/React.createElement("div", null, description ? description : intl.get("c2c4fb87-08a5-4727-ad30-2f00a60186e0").d("暂无数据")), props.children && /*#__PURE__*/React.createElement("div", {
|
|
40
40
|
className: "".concat(prefixCls, "-only-description-children")
|
|
41
41
|
}, props.children)));
|
|
42
42
|
}
|
|
43
|
-
return wrapCSSVar(
|
|
43
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement(Empty, _extends({
|
|
44
44
|
image: image,
|
|
45
45
|
description: description,
|
|
46
46
|
className: classnames("".concat(prefixCls, "-wrapper"), className)
|
|
@@ -22,7 +22,7 @@ var ErrorPage = function ErrorPage() {
|
|
|
22
22
|
wrapCSSVar = _useStyle2[0],
|
|
23
23
|
hashId = _useStyle2[1],
|
|
24
24
|
cssVarCls = _useStyle2[2];
|
|
25
|
-
return wrapCSSVar(
|
|
25
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement("div", {
|
|
26
26
|
className: classnames(hashId, cssVarCls, prefixCls)
|
|
27
27
|
}, /*#__PURE__*/React.createElement("img", {
|
|
28
28
|
src: NoPage,
|
package/lib/Exception/index.js
CHANGED
|
@@ -58,7 +58,7 @@ function Exception(_ref) {
|
|
|
58
58
|
var currentException = ExceptionType[type] ? ExceptionType[type] : ExceptionType["500"];
|
|
59
59
|
var title = currentException.title,
|
|
60
60
|
text = currentException.text;
|
|
61
|
-
return wrapCSSVar(
|
|
61
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement("div", {
|
|
62
62
|
className: classNames(hashId, cssVarCls, "".concat(prefixCls, "-wrapper"), className),
|
|
63
63
|
style: style
|
|
64
64
|
}, /*#__PURE__*/React.createElement("img", {
|
|
@@ -131,7 +131,7 @@ function FilterDropDown(props) {
|
|
|
131
131
|
filterOptions.forEach(function (option, index) {
|
|
132
132
|
if (option instanceof Object) {
|
|
133
133
|
if (isDrag) {
|
|
134
|
-
checkOptions.push(
|
|
134
|
+
checkOptions.push(/*#__PURE__*/React.createElement(DragList, {
|
|
135
135
|
key: option.id,
|
|
136
136
|
option: option,
|
|
137
137
|
index: index,
|
|
@@ -141,7 +141,7 @@ function FilterDropDown(props) {
|
|
|
141
141
|
prefixCls: prefixCls
|
|
142
142
|
}));
|
|
143
143
|
} else {
|
|
144
|
-
checkOptions.push(
|
|
144
|
+
checkOptions.push(/*#__PURE__*/React.createElement("div", {
|
|
145
145
|
className: "".concat(prefixCls, "-nodrag"),
|
|
146
146
|
key: option.id
|
|
147
147
|
}, /*#__PURE__*/React.createElement(_Checkbox, {
|
|
@@ -201,7 +201,7 @@ function FilterDropDown(props) {
|
|
|
201
201
|
onChange: onChange
|
|
202
202
|
}, setCheckOptions()));
|
|
203
203
|
};
|
|
204
|
-
return wrapCSSVar(
|
|
204
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement("div", {
|
|
205
205
|
className: classnames(hashId, cssVarCls, "".concat(prefixCls, "-wrapper"), className)
|
|
206
206
|
}, /*#__PURE__*/React.createElement("div", {
|
|
207
207
|
className: "".concat(prefixCls, "-condition"),
|
|
@@ -53,9 +53,9 @@ var useForm3 = function useForm3(props) {
|
|
|
53
53
|
if (errors) {
|
|
54
54
|
return intersperseSpace(errors.map(function (e, index) {
|
|
55
55
|
var node = null;
|
|
56
|
-
if (
|
|
56
|
+
if (/*#__PURE__*/React.isValidElement(e)) {
|
|
57
57
|
node = e;
|
|
58
|
-
} else if (
|
|
58
|
+
} else if (/*#__PURE__*/React.isValidElement(e.message)) {
|
|
59
59
|
node = e.message;
|
|
60
60
|
}
|
|
61
61
|
return node ? /*#__PURE__*/React.cloneElement(node, {
|
package/lib/Form/index.js
CHANGED
|
@@ -53,7 +53,7 @@ var CWForm = function CWForm(_ref) {
|
|
|
53
53
|
onFinishFailed.apply(void 0, arguments);
|
|
54
54
|
onSubmit(e);
|
|
55
55
|
};
|
|
56
|
-
return wrapCSSVar(
|
|
56
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement(LayoutContext.Provider, {
|
|
57
57
|
value: props.layout
|
|
58
58
|
}, /*#__PURE__*/React.createElement(Form, _extends({}, props, {
|
|
59
59
|
className: classnames("".concat(prefixCls, "-wrapper"), className),
|
|
@@ -41,7 +41,7 @@ var Index = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
41
41
|
icon = iconOption.icon,
|
|
42
42
|
className = iconOption.className,
|
|
43
43
|
resIconOption = _objectWithoutProperties(iconOption, _excluded2);
|
|
44
|
-
return wrapCSSVar(
|
|
44
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement("div", {
|
|
45
45
|
className: classnames(hashId, cssVarCls, "".concat(prefix, "-form-item-wrapper"))
|
|
46
46
|
}, /*#__PURE__*/React.cloneElement(children, _objectSpread(_objectSpread({}, resp), {}, {
|
|
47
47
|
ref: ref
|
package/lib/GlobalTabs/index.js
CHANGED
|
@@ -32,7 +32,7 @@ var GlobalTabs = function GlobalTabs(_ref) {
|
|
|
32
32
|
wrapCSSVar = _useStyle2[0],
|
|
33
33
|
hashId = _useStyle2[1],
|
|
34
34
|
cssVarCls = _useStyle2[2];
|
|
35
|
-
return wrapCSSVar(
|
|
35
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement("div", {
|
|
36
36
|
className: classnames(hashId, cssVarCls, "".concat(prefixCls, "-global-tabs"))
|
|
37
37
|
}, /*#__PURE__*/React.createElement(_Tabs, _extends({
|
|
38
38
|
type: "card",
|
|
@@ -53,7 +53,7 @@ var TopNavigationMenu = function TopNavigationMenu(props) {
|
|
|
53
53
|
key: item.value
|
|
54
54
|
}, /*#__PURE__*/React.createElement(_TooltipText, null, item.name));
|
|
55
55
|
}));
|
|
56
|
-
return wrapCSSVar(
|
|
56
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement("div", {
|
|
57
57
|
className: classnames(hashId, cssVarCls, "".concat(prefixCls, "-wrapper"), topNavigationWrapperClassName)
|
|
58
58
|
}, topNavigation.slice(0, unfoldMaxCount).map(function (item) {
|
|
59
59
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -153,7 +153,7 @@ function UserSetting(_ref) {
|
|
|
153
153
|
zh_TW_Title: "退出",
|
|
154
154
|
icon: /*#__PURE__*/React.createElement(PoweroffOutlined, null)
|
|
155
155
|
}];
|
|
156
|
-
return wrapCSSVar(
|
|
156
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement(_Popover, {
|
|
157
157
|
placement: "bottomRight",
|
|
158
158
|
overlayClassName: "".concat(prefixCls, "-pop-overlay"),
|
|
159
159
|
content: /*#__PURE__*/React.createElement("div", {
|
package/lib/IconSelect/index.js
CHANGED
|
@@ -97,7 +97,7 @@ function IconSelect(_ref) {
|
|
|
97
97
|
className: "".concat(prefixCls, "-dropdown-tabs"),
|
|
98
98
|
items: items
|
|
99
99
|
}));
|
|
100
|
-
return wrapCSSVar(
|
|
100
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement("div", {
|
|
101
101
|
className: classnames(hashId, cssVarCls, "".concat(prefixCls, "-img-setting-box"))
|
|
102
102
|
}, /*#__PURE__*/React.createElement(_Dropdown, {
|
|
103
103
|
trigger: ["click"],
|
package/lib/Input/index.js
CHANGED
|
@@ -21,7 +21,7 @@ var CWInput = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
21
21
|
wrapCSSVar = _useStyle2[0],
|
|
22
22
|
hashId = _useStyle2[1],
|
|
23
23
|
cssVarCls = _useStyle2[2];
|
|
24
|
-
return wrapCSSVar(
|
|
24
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement(InputComponent, _extends({
|
|
25
25
|
componentType: "Input",
|
|
26
26
|
ref: ref
|
|
27
27
|
}, props)));
|
|
@@ -35,7 +35,7 @@ var TextArea = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
35
35
|
wrapCSSVar = _useStyle4[0],
|
|
36
36
|
hashId = _useStyle4[1],
|
|
37
37
|
cssVarCls = _useStyle4[2];
|
|
38
|
-
return wrapCSSVar(
|
|
38
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement(InputComponent, _extends({
|
|
39
39
|
componentType: "TextArea",
|
|
40
40
|
ref: ref
|
|
41
41
|
}, props)));
|
|
@@ -49,7 +49,7 @@ var CWPassword = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
49
49
|
wrapCSSVar = _useStyle6[0],
|
|
50
50
|
hashId = _useStyle6[1],
|
|
51
51
|
cssVarCls = _useStyle6[2];
|
|
52
|
-
return wrapCSSVar(
|
|
52
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement(InputComponent, _extends({
|
|
53
53
|
componentType: "Password",
|
|
54
54
|
ref: ref
|
|
55
55
|
}, props)));
|
|
@@ -63,7 +63,7 @@ var CWSearch = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
63
63
|
wrapCSSVar = _useStyle8[0],
|
|
64
64
|
hashId = _useStyle8[1],
|
|
65
65
|
cssVarCls = _useStyle8[2];
|
|
66
|
-
return wrapCSSVar(
|
|
66
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement(InputComponent, _extends({
|
|
67
67
|
componentType: "Search",
|
|
68
68
|
ref: ref
|
|
69
69
|
}, props)));
|
package/lib/Joyride/List.js
CHANGED
|
@@ -38,7 +38,7 @@ function List(_ref) {
|
|
|
38
38
|
}
|
|
39
39
|
return 0;
|
|
40
40
|
};
|
|
41
|
-
return wrapCSSVar(
|
|
41
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement("div", {
|
|
42
42
|
className: classnames(hashId, cssVarCls, "".concat(prefixCls, "-taskCard"))
|
|
43
43
|
}, /*#__PURE__*/React.createElement("div", {
|
|
44
44
|
className: "".concat(prefixCls, "-taskCard-title")
|
package/lib/Joyride/index.js
CHANGED
|
@@ -269,7 +269,7 @@ function CWJoyride(_ref) {
|
|
|
269
269
|
setWelcomeVisible(false);
|
|
270
270
|
onWelecomCancel();
|
|
271
271
|
};
|
|
272
|
-
return wrapCSSVar(
|
|
272
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Joyride, _extends({
|
|
273
273
|
run: getFinalRunState(),
|
|
274
274
|
callback: handleJoyrideCallback,
|
|
275
275
|
steps: _steps,
|
|
@@ -28,7 +28,7 @@ var Footer = function Footer(_ref) {
|
|
|
28
28
|
if (!hasFooter) {
|
|
29
29
|
return null;
|
|
30
30
|
}
|
|
31
|
-
return wrapCSSVar(
|
|
31
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement("div", _extends({
|
|
32
32
|
className: classnames(hashId, cssVarCls, "cw-layout-wrapper-footer", className)
|
|
33
33
|
}, resP), content));
|
|
34
34
|
};
|
|
@@ -38,7 +38,7 @@ var Header = function Header(_ref) {
|
|
|
38
38
|
if (!hasHeader) {
|
|
39
39
|
return null;
|
|
40
40
|
}
|
|
41
|
-
return wrapCSSVar(
|
|
41
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement("div", _extends({
|
|
42
42
|
className: classnames(hashId, cssVarCls, "cw-layout-wrapper-header", className, {
|
|
43
43
|
"cw-layout-wrapper-header-fixed": fixed
|
|
44
44
|
})
|
|
@@ -82,7 +82,7 @@ function LayoutWrapper(_ref) {
|
|
|
82
82
|
// unlisten();
|
|
83
83
|
// }
|
|
84
84
|
}, [autoScrollToTop]);
|
|
85
|
-
return wrapCSSVar(
|
|
85
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement("div", {
|
|
86
86
|
className: classnames(hashId, cssVarCls, 'cw-layout-wrapper-box', className, {
|
|
87
87
|
'cw-layout-wrapper-box-hasfooter': hasFooter,
|
|
88
88
|
'cw-layout-wrapper-box-fixedHeader': hasHeader && header.isFixed,
|
|
@@ -34,7 +34,7 @@ var LeftNavigation = function LeftNavigation(_ref) {
|
|
|
34
34
|
wrapCSSVar = _useStyle2[0],
|
|
35
35
|
hashId = _useStyle2[1],
|
|
36
36
|
cssVarCls = _useStyle2[2];
|
|
37
|
-
return wrapCSSVar(
|
|
37
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement("div", {
|
|
38
38
|
className: classnames(hashId, cssVarCls, "".concat(prefixCls, "-container")),
|
|
39
39
|
style: style && style
|
|
40
40
|
}, header && /*#__PURE__*/React.createElement("div", {
|
package/lib/Modal/index.js
CHANGED
|
@@ -168,7 +168,7 @@ function CWModal(_ref) {
|
|
|
168
168
|
overflow: "auto"
|
|
169
169
|
}, bodyStyle);
|
|
170
170
|
}
|
|
171
|
-
return wrapCSSVar(
|
|
171
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement(CustomModal, _extends({
|
|
172
172
|
draggable: draggable,
|
|
173
173
|
visible: visible !== null && visible !== void 0 ? visible : open,
|
|
174
174
|
style: merge(fullScreenStyle, style),
|
|
@@ -35,7 +35,7 @@ export var getModule = function getModule(remoteModule) {
|
|
|
35
35
|
} else {
|
|
36
36
|
window.remoteModuleDictionary[id] = new Promise(function (resolve, reject) {
|
|
37
37
|
var asyncFunc = /*#__PURE__*/function () {
|
|
38
|
-
var _ref = _asyncToGenerator(
|
|
38
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
39
39
|
var _module;
|
|
40
40
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
41
41
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -133,8 +133,8 @@ export var RemoteComponent = function RemoteComponent(props) {
|
|
|
133
133
|
|
|
134
134
|
// 通过mount函数注入组件所需属性
|
|
135
135
|
|
|
136
|
-
var getMountedProps = useCallback(
|
|
137
|
-
var _ref2 = _asyncToGenerator(
|
|
136
|
+
var getMountedProps = useCallback(/*#__PURE__*/function () {
|
|
137
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(Component) {
|
|
138
138
|
var _props;
|
|
139
139
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
140
140
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -4,7 +4,7 @@ function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.
|
|
|
4
4
|
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
5
5
|
// 加载指定组件
|
|
6
6
|
export var loadModule = function loadModule(url, scope, module) {
|
|
7
|
-
return /*#__PURE__*/_asyncToGenerator(
|
|
7
|
+
return /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8
8
|
var container, factory, Module, error;
|
|
9
9
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10
10
|
while (1) switch (_context.prev = _context.next) {
|
package/lib/ModuleTitle/index.js
CHANGED
|
@@ -23,7 +23,7 @@ var ModuleTitle = function ModuleTitle(_ref) {
|
|
|
23
23
|
wrapCSSVar = _useStyle2[0],
|
|
24
24
|
hashId = _useStyle2[1],
|
|
25
25
|
cssVarCls = _useStyle2[2];
|
|
26
|
-
return wrapCSSVar(
|
|
26
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement("div", _extends({
|
|
27
27
|
className: classnames(hashId, cssVarCls, prefixCls, className)
|
|
28
28
|
}, rest)));
|
|
29
29
|
};
|
package/lib/Pagination/index.js
CHANGED
|
@@ -253,7 +253,7 @@ function CWPagination(props) {
|
|
|
253
253
|
className: "".concat(prefixCls, "-jump-input"),
|
|
254
254
|
onChange: inputChange
|
|
255
255
|
}), /*#__PURE__*/React.createElement("span", null, intl.get("fa5b42d7-f0cb-4866-8ac9-217633e7aff9").d("页")));
|
|
256
|
-
var finalRenderPagination = wrapCSSVar(
|
|
256
|
+
var finalRenderPagination = wrapCSSVar(/*#__PURE__*/React.createElement("div", {
|
|
257
257
|
className: classnames(hashId, cssVarCls, "".concat(prefixCls, "-wrapper")),
|
|
258
258
|
ref: wrapperRef
|
|
259
259
|
}, simple ? /*#__PURE__*/React.createElement(SimplePagination, {
|
|
@@ -137,7 +137,7 @@ var QuickRangePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
137
137
|
value: "more"
|
|
138
138
|
}, /*#__PURE__*/React.createElement(EllipsisOutlined, null))));
|
|
139
139
|
}, [rangesArray, currentQuickKey, visible]);
|
|
140
|
-
return wrapCSSVar(
|
|
140
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement("div", {
|
|
141
141
|
className: classnames(hashId, cssVarCls, prefixCls)
|
|
142
142
|
}, renderButton, /*#__PURE__*/React.createElement(RangePicker, _extends({
|
|
143
143
|
onChange: _onChange,
|
|
@@ -735,7 +735,7 @@ var QuickTransfer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
735
735
|
handlePreviewList: handlePreviewList,
|
|
736
736
|
useDndProvider: useDndProvider
|
|
737
737
|
});
|
|
738
|
-
return wrapCSSVar(
|
|
738
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement("div", {
|
|
739
739
|
className: classnames(hashId, cssVarCls, "cw-transfer-main", {
|
|
740
740
|
"cw-transfer-main-has-border": showBorder
|
|
741
741
|
}, transferWrapperClassName),
|
package/lib/RangePicker/index.js
CHANGED
|
@@ -414,7 +414,7 @@ var _RangePicker = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
414
414
|
_useMemo2 = _slicedToArray(_useMemo, 2),
|
|
415
415
|
hasQuickSelect = _useMemo2[0],
|
|
416
416
|
_ranges = _useMemo2[1];
|
|
417
|
-
return wrapCSSVar(
|
|
417
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement("div", {
|
|
418
418
|
className: classnames(hashId, cssVarCls, "cw-new-range-picker-wrapper"),
|
|
419
419
|
ref: wrapperRef
|
|
420
420
|
}, /*#__PURE__*/React.createElement(RangePicker, _extends({
|
package/lib/SearchBar/index.js
CHANGED
|
@@ -375,7 +375,7 @@ var SearchBar = function SearchBar(props) {
|
|
|
375
375
|
onSearch && onSearch(value);
|
|
376
376
|
}, 300);
|
|
377
377
|
};
|
|
378
|
-
return wrapCSSVar(
|
|
378
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement("div", {
|
|
379
379
|
className: classnames(hashId, cssVarCls, "".concat(searchBarprefixCls, "-form")),
|
|
380
380
|
ref: domRef,
|
|
381
381
|
style: props.style || {}
|
package/lib/SiderMenu/index.js
CHANGED
|
@@ -172,7 +172,7 @@ function CWMenu(_ref) {
|
|
|
172
172
|
};
|
|
173
173
|
return _loop(menuData);
|
|
174
174
|
}, [filterData, menuData, collapsed]);
|
|
175
|
-
return wrapCSSVar(
|
|
175
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement("div", {
|
|
176
176
|
className: classnames(hashId, cssVarCls, "".concat(prefixCls, "-cw-menu-box"), _defineProperty({}, "".concat(prefixCls, "-cw-menu-box-collapsed"), collapsed))
|
|
177
177
|
}, /*#__PURE__*/React.createElement(_Menu, _extends({
|
|
178
178
|
style: {
|
package/lib/SimpleCard/index.js
CHANGED
|
@@ -72,7 +72,7 @@ function SimpleCard(_ref) {
|
|
|
72
72
|
}, res), type && /*#__PURE__*/React.createElement("span", null, type), /*#__PURE__*/React.createElement("big", null, !con && con !== 0 ? noNum : con), unit && /*#__PURE__*/React.createElement("span", null, unit));
|
|
73
73
|
});
|
|
74
74
|
};
|
|
75
|
-
return wrapCSSVar(
|
|
75
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement(_Card, _extends({
|
|
76
76
|
bordered: false,
|
|
77
77
|
className: classnames(prefixCls, className)
|
|
78
78
|
}, rest), /*#__PURE__*/React.createElement("div", {
|
|
@@ -122,7 +122,7 @@ function SimplePagination(props) {
|
|
|
122
122
|
goPage(Number(value));
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
|
-
return wrapCSSVar(
|
|
125
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement("div", {
|
|
126
126
|
className: classnames(hashId, cssVarCls, "".concat(prefixCls, "-wrapper"), _defineProperty({}, "".concat(prefixCls, "-wrapper-disabled"), disabled))
|
|
127
127
|
}, /*#__PURE__*/React.createElement("ul", {
|
|
128
128
|
className: "".concat(prefixCls, "-main")
|
package/lib/SingleSpa/index.js
CHANGED
|
@@ -50,7 +50,7 @@ var SingleSpa = function SingleSpa(_ref) {
|
|
|
50
50
|
return;
|
|
51
51
|
}
|
|
52
52
|
// 注册微应用
|
|
53
|
-
registerApplication(project.id, /*#__PURE__*/_asyncToGenerator(
|
|
53
|
+
registerApplication(project.id, /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
54
54
|
var indexInfo, style, script, _res;
|
|
55
55
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
56
56
|
while (1) switch (_context.prev = _context.next) {
|
package/lib/Slider/index.js
CHANGED
|
@@ -24,7 +24,7 @@ var CWSlider = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
24
24
|
wrapCSSVar = _useStyle2[0],
|
|
25
25
|
hashId = _useStyle2[1],
|
|
26
26
|
cssVarCls = _useStyle2[2];
|
|
27
|
-
return wrapCSSVar(
|
|
27
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement(Slider, _extends({
|
|
28
28
|
className: classnames("".concat(prefixCls, "-wrapper"), className),
|
|
29
29
|
ref: ref
|
|
30
30
|
}, rest)));
|
package/lib/Tabs/index.js
CHANGED
|
@@ -41,7 +41,7 @@ var CWTabs = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
41
41
|
});
|
|
42
42
|
return _renderTabBar ? _renderTabBar(resProps, DefaultTabBar) : /*#__PURE__*/React.createElement(DefaultTabBar, props);
|
|
43
43
|
};
|
|
44
|
-
return wrapCSSVar(
|
|
44
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement(Tabs, _extends({
|
|
45
45
|
ref: ref,
|
|
46
46
|
className: classnames("".concat(prefixCls, "-wrapper"), className),
|
|
47
47
|
renderTabBar: renderTabBar,
|
package/lib/Tag/CheckableTag.js
CHANGED
|
@@ -33,7 +33,7 @@ var CWCheckableTag = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33
33
|
_props$onChange = props.onChange,
|
|
34
34
|
onChange_ = _props$onChange === void 0 ? function () {} : _props$onChange,
|
|
35
35
|
rest = _objectWithoutProperties(props, _excluded);
|
|
36
|
-
return wrapCSSVar(
|
|
36
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement(CheckableTag, _extends({
|
|
37
37
|
className: classnames(_defineProperty({}, "".concat(prefixCls, "-disabled"), disabled), className),
|
|
38
38
|
onChange: function onChange(checked) {
|
|
39
39
|
if (!disabled) {
|
package/lib/Tag/index.js
CHANGED
|
@@ -50,7 +50,7 @@ var CWTag = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
50
50
|
// 状态标签
|
|
51
51
|
if ("status" in props) {
|
|
52
52
|
if (status === "processing") {
|
|
53
|
-
return wrapCSSVar(
|
|
53
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement("span", {
|
|
54
54
|
className: classnames(hashId, cssVarCls, "".concat(prefixCls, "-processing-wrapper"))
|
|
55
55
|
}, /*#__PURE__*/React.createElement("span", {
|
|
56
56
|
className: "".concat(prefixCls, "-processing")
|
|
@@ -59,7 +59,7 @@ var CWTag = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
59
59
|
}, props.children)));
|
|
60
60
|
}
|
|
61
61
|
if (MapStatus[status]) {
|
|
62
|
-
return wrapCSSVar(
|
|
62
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement(_Badge, {
|
|
63
63
|
color: MapStatus[status],
|
|
64
64
|
text: props.children,
|
|
65
65
|
className: "".concat(prefixCls, "-badge"),
|
|
@@ -81,14 +81,14 @@ var CWTag = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
81
81
|
className: cornerClassName
|
|
82
82
|
}, rest));
|
|
83
83
|
if (EnumCorner.includes(type)) {
|
|
84
|
-
return wrapCSSVar(
|
|
84
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement("div", {
|
|
85
85
|
className: classnames(hashId, cssVarCls, "".concat(prefixCls, "-custom-corner-wrapper"), extraCornerClassName)
|
|
86
86
|
}, CornerDom, /*#__PURE__*/React.createElement("span", {
|
|
87
87
|
className: classnames("".concat(prefixCls, "-custom-corner-children"), extraCornerChildrenClassName)
|
|
88
88
|
}, rest.children)));
|
|
89
89
|
}
|
|
90
90
|
// -------------------------------------------------------------
|
|
91
|
-
return wrapCSSVar(
|
|
91
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement(Tag, _extends({
|
|
92
92
|
className: classnames("".concat(prefixCls, "-wrapper"), className, _defineProperty({}, "".concat(prefixCls, "-custom-type01"), type == "custom_type01"))
|
|
93
93
|
}, rest, {
|
|
94
94
|
ref: ref
|
|
@@ -31,7 +31,7 @@ var Index = function Index(props) {
|
|
|
31
31
|
wrapCSSVar = _useStyle2[0],
|
|
32
32
|
hashId = _useStyle2[1],
|
|
33
33
|
cssVarCls = _useStyle2[2];
|
|
34
|
-
return wrapCSSVar(
|
|
34
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement("div", {
|
|
35
35
|
className: classnames(hashId, cssVarCls, "time-range-slider-bottom-wrapper"),
|
|
36
36
|
style: {
|
|
37
37
|
width: timeSliderWidth
|
|
@@ -26,7 +26,7 @@ var TopSlider = function TopSlider(props) {
|
|
|
26
26
|
wrapCSSVar = _useStyle2[0],
|
|
27
27
|
hashId = _useStyle2[1],
|
|
28
28
|
cssVarCls = _useStyle2[2];
|
|
29
|
-
return wrapCSSVar(
|
|
29
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement("div", {
|
|
30
30
|
className: classnames(hashId, cssVarCls, "time-range-slider-top-wrapper"),
|
|
31
31
|
ref: TimeRangeSliderWrapperRef,
|
|
32
32
|
style: {
|
|
@@ -469,7 +469,7 @@ var TimeRangeSlider = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
469
469
|
isHasDate: isHasDate,
|
|
470
470
|
isClickAutoRefresh: isClickAutoRefresh
|
|
471
471
|
});
|
|
472
|
-
return wrapCSSVar(
|
|
472
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement("div", {
|
|
473
473
|
className: classnames(hashId, cssVarCls, "".concat(prefixCls, "-time-range-slider-wrapper"), classNameWrapper),
|
|
474
474
|
ref: calendarRef
|
|
475
475
|
}, contextHolder, /*#__PURE__*/React.createElement("div", {
|
package/lib/Tooltip/index.js
CHANGED
|
@@ -37,7 +37,7 @@ function CWTooltip(_ref, ref) {
|
|
|
37
37
|
wrapCSSVar = _useStyle2[0],
|
|
38
38
|
hashId = _useStyle2[1],
|
|
39
39
|
cssVarCls = _useStyle2[2];
|
|
40
|
-
return wrapCSSVar(
|
|
40
|
+
return wrapCSSVar(/*#__PURE__*/React.createElement(AntdTooltip, _extends({
|
|
41
41
|
overlayClassName: classnames(_defineProperty({}, "".concat(prefixCls, "-use-ui-rule"), useUiRule), overlayClassName),
|
|
42
42
|
ref: ref,
|
|
43
43
|
open: visible,
|