@chaoswise/ui 3.0.12 → 3.0.14
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 +2 -2
- package/lib/AdaptiveLayout/index.js +2 -2
- package/lib/Antd5/_util/transButton.js +2 -2
- package/lib/Antd5/alert/Alert.js +2 -2
- package/lib/Antd5/app/style/index.js +2 -1
- package/lib/Antd5/avatar/avatar.js +2 -2
- package/lib/Antd5/badge/ScrollNumber.js +2 -2
- package/lib/Antd5/badge/index.js +2 -2
- package/lib/Antd5/breadcrumb/Breadcrumb.js +2 -2
- package/lib/Antd5/breadcrumb/BreadcrumbItem.js +2 -2
- package/lib/Antd5/breadcrumb/useItemRender.js +2 -2
- package/lib/Antd5/breadcrumb/useItems.js +2 -2
- package/lib/Antd5/button/button-group.js +2 -2
- package/lib/Antd5/button/button.js +2 -2
- package/lib/Antd5/card/Card.js +2 -2
- package/lib/Antd5/card/Grid.js +2 -2
- package/lib/Antd5/card/Meta.js +2 -2
- package/lib/Antd5/carousel/index.js +2 -2
- package/lib/Antd5/cascader/index.js +2 -2
- package/lib/Antd5/checkbox/Checkbox.js +2 -2
- package/lib/Antd5/checkbox/Group.js +2 -2
- package/lib/Antd5/color-picker/ColorPicker.js +2 -2
- package/lib/Antd5/color-picker/ColorPickerPanel.js +2 -2
- package/lib/Antd5/color-picker/components/ColorTrigger.js +2 -2
- package/lib/Antd5/color-picker/components/PanelPicker.js +2 -2
- package/lib/Antd5/config-provider/index.js +2 -2
- package/lib/Antd5/date-picker/generatePicker/generateRangePicker.js +2 -2
- package/lib/Antd5/date-picker/generatePicker/generateSinglePicker.js +2 -2
- package/lib/Antd5/descriptions/hooks/useItems.js +2 -2
- package/lib/Antd5/descriptions/index.js +2 -2
- package/lib/Antd5/divider/index.js +2 -2
- package/lib/Antd5/drawer/index.js +2 -2
- package/lib/Antd5/dropdown/dropdown-button.js +2 -2
- package/lib/Antd5/empty/index.js +2 -2
- package/lib/Antd5/flex/index.js +2 -2
- package/lib/Antd5/float-button/BackTop.js +2 -2
- package/lib/Antd5/float-button/FloatButton.js +2 -2
- package/lib/Antd5/float-button/FloatButtonGroup.js +2 -2
- package/lib/Antd5/float-button/PurePanel.js +2 -2
- package/lib/Antd5/form/Form.js +2 -2
- package/lib/Antd5/form/FormItem/ItemHolder.js +2 -2
- package/lib/Antd5/form/FormItemLabel.js +2 -2
- package/lib/Antd5/form/FormList.js +2 -2
- package/lib/Antd5/grid/col.js +2 -2
- package/lib/Antd5/grid/row.js +2 -2
- package/lib/Antd5/image/PreviewGroup.js +2 -2
- package/lib/Antd5/image/index.js +2 -2
- package/lib/Antd5/input/Input.js +2 -2
- package/lib/Antd5/input/OTP/OTPInput.js +2 -2
- package/lib/Antd5/input/OTP/index.js +2 -2
- package/lib/Antd5/input/Password.js +2 -2
- package/lib/Antd5/input/Search.js +2 -2
- package/lib/Antd5/input/TextArea.js +2 -2
- package/lib/Antd5/input-number/index.js +2 -2
- package/lib/Antd5/layout/Sider.js +2 -2
- package/lib/Antd5/layout/layout.js +2 -2
- package/lib/Antd5/list/Item.js +2 -2
- package/lib/Antd5/list/index.js +2 -2
- package/lib/Antd5/mentions/index.js +2 -2
- package/lib/Antd5/menu/MenuDivider.js +2 -2
- package/lib/Antd5/menu/OverrideContext.js +2 -2
- package/lib/Antd5/menu/menu.js +2 -2
- package/lib/Antd5/message/PurePanel.js +2 -2
- package/lib/Antd5/message/useMessage.js +2 -2
- package/lib/Antd5/modal/ConfirmDialog.js +2 -2
- package/lib/Antd5/modal/Modal.js +2 -2
- package/lib/Antd5/modal/PurePanel.js +2 -2
- package/lib/Antd5/modal/useModal/HookModal.js +2 -2
- package/lib/Antd5/notification/PurePanel.js +2 -2
- package/lib/Antd5/notification/useNotification.js +2 -2
- package/lib/Antd5/pagination/Pagination.js +2 -2
- package/lib/Antd5/popconfirm/PurePanel.js +2 -2
- package/lib/Antd5/popconfirm/index.js +2 -2
- package/lib/Antd5/popover/PurePanel.js +2 -2
- package/lib/Antd5/popover/index.js +2 -2
- package/lib/Antd5/progress/Line.js +2 -2
- package/lib/Antd5/progress/progress.js +2 -2
- package/lib/Antd5/radio/radio.js +2 -2
- package/lib/Antd5/radio/radioButton.js +2 -2
- package/lib/Antd5/rate/index.js +2 -2
- package/lib/Antd5/segmented/index.js +2 -2
- package/lib/Antd5/select/index.js +2 -2
- package/lib/Antd5/slider/index.js +2 -2
- package/lib/Antd5/space/Compact.js +2 -2
- package/lib/Antd5/space/index.js +2 -2
- package/lib/Antd5/spin/index.js +2 -2
- package/lib/Antd5/statistic/Countdown.js +2 -2
- package/lib/Antd5/statistic/Statistic.js +2 -2
- package/lib/Antd5/steps/index.js +2 -2
- package/lib/Antd5/switch/index.js +2 -2
- package/lib/Antd5/table/hooks/usePagination.js +2 -2
- package/lib/Antd5/tabs/hooks/useLegacyItems.js +2 -2
- package/lib/Antd5/tabs/index.js +2 -2
- package/lib/Antd5/tag/CheckableTag.js +2 -2
- package/lib/Antd5/tag/index.js +2 -2
- package/lib/Antd5/theme/useToken.js +2 -2
- package/lib/Antd5/theme/util/alias.js +2 -2
- package/lib/Antd5/time-picker/index.js +2 -2
- package/lib/Antd5/timeline/Timeline.js +2 -2
- package/lib/Antd5/timeline/TimelineItem.js +2 -2
- package/lib/Antd5/timeline/TimelineItemList.js +2 -2
- package/lib/Antd5/tooltip/index.js +2 -2
- package/lib/Antd5/tour/PurePanel.js +2 -2
- package/lib/Antd5/tour/index.js +2 -2
- package/lib/Antd5/tree/DirectoryTree.js +2 -2
- package/lib/Antd5/tree-select/index.js +2 -2
- package/lib/Antd5/typography/Base/index.js +2 -2
- package/lib/Antd5/typography/Link.js +2 -2
- package/lib/Antd5/typography/Text.js +2 -2
- package/lib/Antd5/typography/Title.js +2 -2
- package/lib/Antd5/typography/Typography.js +2 -2
- package/lib/Antd5/upload/Dragger.js +2 -2
- package/lib/Antd5/upload/Upload.js +1 -1
- package/lib/AppHolder/index.js +19 -0
- package/lib/Badge/index.style.js +42 -10
- package/lib/BasicLayout/Breadcrumb.js +2 -2
- package/lib/BasicLayout/Footer.js +2 -2
- package/lib/BasicLayout/Sider.js +8 -4
- package/lib/BasicLayout/style/sider.js +53 -49
- package/lib/Button/index.js +2 -2
- package/lib/CWCascader/Cascader/index.js +2 -2
- package/lib/CWCascader/rc-cascader/Cascader.js +2 -2
- package/lib/CWMessage/MessageContent/TabList/index.js +2 -2
- package/lib/CWMessage/MessageContent/index.js +6 -6
- package/lib/CWMessage/index.js +82 -92
- package/lib/CWMessage/index.style.js +2 -4
- package/lib/CWRadioTabs/index.js +2 -2
- package/lib/CWRangePicker/DropdownMenu/index.js +41 -37
- package/lib/CWRangePicker/DropdownMenu/index.style.js +129 -130
- package/lib/CWRangePicker/Refresh/index.js +8 -4
- package/lib/CWRangePicker/Refresh/index.style.js +16 -19
- package/lib/CWRangePicker/TimeSpan/index.js +7 -2
- package/lib/CWRangePicker/TimeSpan/index.style.js +9 -12
- package/lib/CWRangePicker/index.js +8 -4
- package/lib/CWRangePicker/index.style.js +47 -52
- package/lib/CWTable/CWTable.js +3 -3
- package/lib/CWTable/header.js +2 -2
- package/lib/CWTree/index.js +8 -4
- package/lib/CWTree/index.style.js +97 -99
- package/lib/CardSelect/index.js +2 -2
- package/lib/ChangeIcon/index.js +1 -1
- package/lib/Collapse/index.js +2 -2
- package/lib/ConfigProvider/ConfigProvider.js +17 -5
- package/lib/CustomScrollBar/index.js +2 -2
- package/lib/Drawer/index.js +2 -2
- package/lib/Dropdown/DropdownButton.js +2 -2
- package/lib/Dropdown/index.js +2 -2
- package/lib/EchartsArea/index.js +2 -2
- package/lib/EchartsBar/index.js +2 -2
- package/lib/EchartsBarRow/index.js +2 -2
- package/lib/EchartsBase/index.js +2 -2
- package/lib/EchartsLine/index.js +2 -2
- package/lib/EchartsPie/index.js +2 -2
- package/lib/EchartsRing/index.js +2 -2
- package/lib/Empty/index.js +2 -2
- package/lib/Exception/index.js +1 -1
- package/lib/FilterDropDown/index.js +1 -1
- package/lib/Flow/BasicLayout/Chain.js +2 -2
- package/lib/Flow/Flow.js +2 -2
- package/lib/Form/FormItem.js +2 -2
- package/lib/Form/index.js +2 -2
- package/lib/FormItemWrapper/index.js +2 -2
- package/lib/GlobalTabs/index.js +2 -2
- package/lib/Header/CommonDropMenu.js +2 -2
- package/lib/Header/LocaleSwitcher.js +2 -2
- package/lib/Header/Message/index.js +2 -2
- package/lib/Header/TopNavigationMenu/index.js +1 -1
- package/lib/Header/UserSetting/index.js +1 -1
- package/lib/Header/index.js +1 -1
- package/lib/Icon/index.js +2 -2
- package/lib/IconSelect/index.js +1 -1
- package/lib/Input/InputComponent.js +2 -2
- package/lib/InputNumber/index.js +2 -2
- package/lib/Joyride/index.js +2 -2
- package/lib/LayoutBreadcrumb/index.js +2 -2
- package/lib/LayoutWrapper/Footer.js +7 -3
- package/lib/LayoutWrapper/Header.js +7 -3
- package/lib/LayoutWrapper/index.js +5 -2
- package/lib/LeftNavigation/index.js +1 -1
- package/lib/Modal/Modal.js +2 -2
- package/lib/Modal/index.js +2 -2
- package/lib/ModuleFederation/react-dynamic-remote-component/RemoteComponent.js +2 -2
- package/lib/ModuleTitle/index.js +2 -2
- package/lib/Pagination/index.js +2 -2
- package/lib/QuickRangePicker/index.js +2 -2
- package/lib/QuickTransfer/index.js +7 -3
- package/lib/ScrollLoad/index.js +2 -2
- package/lib/SearchBar/index.js +3 -3
- package/lib/SiderMenu/index.js +2 -2
- package/lib/SimpleCard/index.js +2 -2
- package/lib/SimplePagination/index.js +1 -1
- package/lib/SingleSpa/index.js +2 -2
- package/lib/Slider/index.js +2 -2
- package/lib/Tabs/index.js +2 -2
- package/lib/Tag/CheckableTag.js +2 -2
- package/lib/Tag/index.js +2 -2
- package/lib/Tag/index.style.js +41 -9
- package/lib/ThemeProvider/main.js +2 -2
- package/lib/Tooltip/index.js +4 -4
- package/lib/TooltipText/index.js +3 -3
- package/lib/UniversalLayout/index.js +5 -1
- package/lib/WangEditor/editor4.js +2 -2
- package/lib/WangEditor/index.js +2 -2
- package/lib/antd-style/factories/createStyleProvider/index.js +2 -2
- package/lib/antd-style/factories/createStyles/index.js +2 -2
- package/lib/antd-style/factories/createThemeProvider/AntdProvider.js +2 -2
- package/lib/antd-style/factories/createThemeProvider/TokenContainer.js +2 -2
- package/lib/antd-style/factories/createThemeProvider/index.js +2 -2
- package/lib/antd-style/functions/index.js +6 -5
- package/lib/configHoc/index.js +2 -2
- package/lib/locales/en_US.json +1 -0
- package/lib/locales/zh_CN.json +1 -0
- package/lib/locales/zh_TW.json +1 -0
- package/package.json +1 -1
|
@@ -1,155 +1,154 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
3
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
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); }
|
|
1
5
|
import { genStyleHooks } from "../../Antd5/theme/internal";
|
|
2
6
|
var genCustomDropdownMenuStyle = function genCustomDropdownMenuStyle(token) {
|
|
3
|
-
var prefixCls = token.antCls
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
7
|
+
var prefixCls = token.antCls;
|
|
8
|
+
return _defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-cw-dropdown-menu-wrapper"), {
|
|
9
|
+
width: "360px",
|
|
10
|
+
padding: "4px 0",
|
|
11
|
+
textAlign: "left",
|
|
12
|
+
listStyleType: "none",
|
|
13
|
+
boxShadow: token.boxShadow,
|
|
14
|
+
backgroundColor: token.colorBgContainer,
|
|
15
|
+
borderRadius: token.borderRadius,
|
|
16
|
+
outline: "none",
|
|
17
|
+
backgroundClip: "padding-box",
|
|
18
|
+
WebkitTransform: "translate3d(0, 0, 0)",
|
|
19
|
+
position: "relative",
|
|
20
|
+
".cw-dropdown-menu-_item": {
|
|
21
|
+
display: "flex",
|
|
22
|
+
alignItems: "center",
|
|
23
|
+
overflow: "hidden",
|
|
24
|
+
whiteSpace: "nowrap",
|
|
25
|
+
textOverflow: "ellipsis",
|
|
26
|
+
padding: "5px 10px",
|
|
27
|
+
cursor: "pointer",
|
|
28
|
+
transition: "all 0.3s",
|
|
29
|
+
color: token.colorText,
|
|
30
|
+
fontWeight: "normal",
|
|
31
|
+
fontSize: "12px",
|
|
32
|
+
lineHeight: "22px",
|
|
33
|
+
".cw-range-picker-menu-item-calendar": {
|
|
34
|
+
width: "14px",
|
|
35
|
+
height: "14px",
|
|
19
36
|
display: "flex",
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
whiteSpace: "nowrap",
|
|
23
|
-
textOverflow: "ellipsis",
|
|
24
|
-
padding: "5px 10px",
|
|
25
|
-
cursor: "pointer",
|
|
26
|
-
transition: "all 0.3s",
|
|
27
|
-
color: token.colorText,
|
|
28
|
-
fontWeight: "normal",
|
|
29
|
-
fontSize: "12px",
|
|
30
|
-
lineHeight: "22px",
|
|
31
|
-
".cw-range-picker-menu-item-calendar": {
|
|
32
|
-
width: "14px",
|
|
33
|
-
height: "14px",
|
|
34
|
-
display: "flex",
|
|
35
|
-
justifyContent: "center",
|
|
36
|
-
alignItems: "center"
|
|
37
|
-
},
|
|
38
|
-
"&.cw-dropdown-menu-item-selected": {
|
|
39
|
-
backgroundColor: token.colorPrimaryBg
|
|
40
|
-
},
|
|
41
|
-
"&:hover": {
|
|
42
|
-
backgroundColor: token.colorPrimaryBg
|
|
43
|
-
}
|
|
37
|
+
justifyContent: "center",
|
|
38
|
+
alignItems: "center"
|
|
44
39
|
},
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
justifyContent: "space-between",
|
|
48
|
-
overflow: "visible"
|
|
40
|
+
"&.cw-dropdown-menu-item-selected": {
|
|
41
|
+
backgroundColor: token.colorPrimaryBg
|
|
49
42
|
},
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
top: "auto !important",
|
|
53
|
-
bottom: "-32px !important",
|
|
54
|
-
left: "calc(100% + 2px) !important",
|
|
55
|
-
boxShadow: token.boxShadow,
|
|
56
|
-
"&.cw-dropdown-menu-more-wrapper-left": {
|
|
57
|
-
right: "calc(100% + 2px) !important",
|
|
58
|
-
left: "auto !important"
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
".cw-dropdown-menu-history-outer-wrapper": {
|
|
62
|
-
borderTop: "1px solid rgba(0, 0, 0, 0.06)",
|
|
63
|
-
marginTop: "12px",
|
|
64
|
-
padding: "12px 10px 0",
|
|
65
|
-
display: "flex",
|
|
66
|
-
justifyContent: "space-between",
|
|
67
|
-
alignItems: "flex-start",
|
|
68
|
-
position: "relative",
|
|
69
|
-
"&:hover": {
|
|
70
|
-
backgroundColor: token.colorPrimaryBg
|
|
71
|
-
},
|
|
72
|
-
".cw-dropdown-menu-history-wrapper": {
|
|
73
|
-
display: "flex",
|
|
74
|
-
flexWrap: "wrap",
|
|
75
|
-
lineHeight: "20px",
|
|
76
|
-
".cw-dropdown-menu-history-title": {
|
|
77
|
-
marginRight: "6px",
|
|
78
|
-
marginBottom: "8px"
|
|
79
|
-
},
|
|
80
|
-
".cw-dropdown-menu-history-tag-title": {
|
|
81
|
-
marginBottom: "8px",
|
|
82
|
-
marginRight: "4px",
|
|
83
|
-
"&:hover": {
|
|
84
|
-
boxShadow: "0 0 0 1px ".concat(token.colorPrimary),
|
|
85
|
-
color: token.colorPrimary
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
".cw-dropdown-menu-history-more-ellipsis": {
|
|
89
|
-
marginLeft: "4px"
|
|
90
|
-
},
|
|
91
|
-
"[ant-click-animating-without-extra-node]::after": {
|
|
92
|
-
boxShadow: "none !important"
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
".cw-dropdown-menu-history-arrow": {
|
|
96
|
-
transform: "translateY(4px)"
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
".cw-dropdown-menu-history-more-wrapper": {
|
|
100
|
-
width: "384px",
|
|
101
|
-
top: "0 !important",
|
|
102
|
-
left: "calc(100% + 2px) !important",
|
|
103
|
-
boxShadow: token.boxShadow,
|
|
104
|
-
"&.cw-dropdown-menu-history-more-wrapper-left": {
|
|
105
|
-
right: "calc(100% + 2px) !important",
|
|
106
|
-
left: "auto !important"
|
|
107
|
-
}
|
|
43
|
+
"&:hover": {
|
|
44
|
+
backgroundColor: token.colorPrimaryBg
|
|
108
45
|
}
|
|
109
46
|
},
|
|
110
|
-
".cw-
|
|
47
|
+
".cw-dropdown-menu-item-more": {
|
|
48
|
+
position: "relative",
|
|
49
|
+
justifyContent: "space-between",
|
|
50
|
+
overflow: "visible"
|
|
51
|
+
},
|
|
52
|
+
".cw-dropdown-menu-more-wrapper": {
|
|
111
53
|
width: "384px",
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
"
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
"
|
|
118
|
-
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
".more-col-item:hover": {
|
|
122
|
-
color: token.colorPrimaryHover
|
|
54
|
+
top: "auto !important",
|
|
55
|
+
bottom: "-32px !important",
|
|
56
|
+
left: "calc(100% + 2px) !important",
|
|
57
|
+
boxShadow: token.boxShadow,
|
|
58
|
+
"&.cw-dropdown-menu-more-wrapper-left": {
|
|
59
|
+
right: "calc(100% + 2px) !important",
|
|
60
|
+
left: "auto !important"
|
|
123
61
|
}
|
|
124
62
|
},
|
|
125
|
-
".cw-dropdown-menu-history-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
"
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
63
|
+
".cw-dropdown-menu-history-outer-wrapper": {
|
|
64
|
+
borderTop: "1px solid rgba(0, 0, 0, 0.06)",
|
|
65
|
+
marginTop: "12px",
|
|
66
|
+
padding: "12px 10px 0",
|
|
67
|
+
display: "flex",
|
|
68
|
+
justifyContent: "space-between",
|
|
69
|
+
alignItems: "flex-start",
|
|
70
|
+
position: "relative",
|
|
71
|
+
"&:hover": {
|
|
72
|
+
backgroundColor: token.colorPrimaryBg
|
|
135
73
|
},
|
|
136
|
-
".cw-dropdown-menu-history-
|
|
74
|
+
".cw-dropdown-menu-history-wrapper": {
|
|
137
75
|
display: "flex",
|
|
138
76
|
flexWrap: "wrap",
|
|
139
|
-
"
|
|
140
|
-
|
|
77
|
+
lineHeight: "20px",
|
|
78
|
+
".cw-dropdown-menu-history-title": {
|
|
79
|
+
marginRight: "6px",
|
|
80
|
+
marginBottom: "8px"
|
|
141
81
|
},
|
|
142
|
-
".cw-dropdown-menu-history-
|
|
143
|
-
|
|
82
|
+
".cw-dropdown-menu-history-tag-title": {
|
|
83
|
+
marginBottom: "8px",
|
|
144
84
|
marginRight: "4px",
|
|
145
85
|
"&:hover": {
|
|
146
86
|
boxShadow: "0 0 0 1px ".concat(token.colorPrimary),
|
|
147
87
|
color: token.colorPrimary
|
|
148
88
|
}
|
|
89
|
+
},
|
|
90
|
+
".cw-dropdown-menu-history-more-ellipsis": {
|
|
91
|
+
marginLeft: "4px"
|
|
92
|
+
},
|
|
93
|
+
"[ant-click-animating-without-extra-node]::after": {
|
|
94
|
+
boxShadow: "none !important"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
".cw-dropdown-menu-history-arrow": {
|
|
98
|
+
transform: "translateY(4px)"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
".cw-dropdown-menu-history-more-wrapper": {
|
|
102
|
+
width: "384px",
|
|
103
|
+
top: "0 !important",
|
|
104
|
+
left: "calc(100% + 2px) !important",
|
|
105
|
+
boxShadow: token.boxShadow,
|
|
106
|
+
"&.cw-dropdown-menu-history-more-wrapper-left": {
|
|
107
|
+
right: "calc(100% + 2px) !important",
|
|
108
|
+
left: "auto !important"
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}), ".cw-range-picker-popup-more-content", {
|
|
112
|
+
width: "384px",
|
|
113
|
+
padding: "12px 16px 8px",
|
|
114
|
+
backgroundColor: token.colorBgContainer,
|
|
115
|
+
".more-col-item": {
|
|
116
|
+
cursor: "pointer",
|
|
117
|
+
color: token.boxShadow,
|
|
118
|
+
"&.cw-dropdown-menu-item-selected": {
|
|
119
|
+
background: token.colorPrimaryBg
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
".more-col-item:hover": {
|
|
123
|
+
color: token.colorPrimaryHover
|
|
124
|
+
}
|
|
125
|
+
}), ".cw-dropdown-menu-history-popup-more-wrapper", {
|
|
126
|
+
padding: "12px 16px 16px",
|
|
127
|
+
backgroundColor: token.colorBgContainer,
|
|
128
|
+
".cw-dropdown-menu-history-popup-more-header": {
|
|
129
|
+
display: "flex",
|
|
130
|
+
justifyContent: "space-between",
|
|
131
|
+
alignItems: "center",
|
|
132
|
+
fontSize: "12px",
|
|
133
|
+
lineHeight: "20px",
|
|
134
|
+
marginBottom: "4px"
|
|
135
|
+
},
|
|
136
|
+
".cw-dropdown-menu-history-popup-more-content": {
|
|
137
|
+
display: "flex",
|
|
138
|
+
flexWrap: "wrap",
|
|
139
|
+
"[ant-click-animating-without-extra-node]::after": {
|
|
140
|
+
boxShadow: "none !important"
|
|
141
|
+
},
|
|
142
|
+
".cw-dropdown-menu-history-popup-more-content-tag-title": {
|
|
143
|
+
marginTop: "8px",
|
|
144
|
+
marginRight: "4px",
|
|
145
|
+
"&:hover": {
|
|
146
|
+
boxShadow: "0 0 0 1px ".concat(token.colorPrimary),
|
|
147
|
+
color: token.colorPrimary
|
|
149
148
|
}
|
|
150
149
|
}
|
|
151
150
|
}
|
|
152
|
-
};
|
|
151
|
+
});
|
|
153
152
|
};
|
|
154
153
|
// ============================== Export ==============================
|
|
155
154
|
export default genStyleHooks(["CWRangePicker", "DropdownMenu"], function (token) {
|
|
@@ -2,8 +2,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
2
2
|
import _Tooltip from "@chaoswise/ui/lib/Tooltip";
|
|
3
3
|
import _Button from "@chaoswise/ui/lib/Button";
|
|
4
4
|
var _excluded = ["value", "key"];
|
|
5
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
6
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
5
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
6
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
7
7
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8
8
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9
9
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
@@ -21,6 +21,7 @@ import Refresh1Svg from "../assets/Refresh1";
|
|
|
21
21
|
import Refresh2Svg from "../assets/Refresh2";
|
|
22
22
|
import Refresh3Svg from "../assets/Refresh3";
|
|
23
23
|
import { getChangeUnitDate, funcValueChangeArrayValue, getTimeSpanFromValue, computedRecentlyValue, judgeType } from "../utils";
|
|
24
|
+
import useConfigContext from "../../useConfigContext";
|
|
24
25
|
import { useIntl } from "../../locales";
|
|
25
26
|
import useStyle from "./index.style";
|
|
26
27
|
var Refresh = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
@@ -34,7 +35,10 @@ var Refresh = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
34
35
|
enableAutoRefresh = props.enableAutoRefresh,
|
|
35
36
|
isClickAutoRefresh = props.isClickAutoRefresh,
|
|
36
37
|
timeSpanOption = props.timeSpanOption;
|
|
37
|
-
var
|
|
38
|
+
var _useConfigContext = useConfigContext(),
|
|
39
|
+
getPrefixCls = _useConfigContext.getPrefixCls;
|
|
40
|
+
var prefixCls = getPrefixCls();
|
|
41
|
+
var _useStyle = useStyle("".concat(prefixCls, "-cw-range-picker-refresh")),
|
|
38
42
|
_useStyle2 = _slicedToArray(_useStyle, 3),
|
|
39
43
|
wrapCSSVar = _useStyle2[0],
|
|
40
44
|
hashId = _useStyle2[1],
|
|
@@ -140,7 +144,7 @@ var Refresh = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
140
144
|
};
|
|
141
145
|
});
|
|
142
146
|
return wrapCSSVar((showRefresh || showAutoRefresh) && /*#__PURE__*/React.createElement(_Button.Group, {
|
|
143
|
-
className: "cw-range-picker-refresh-wrapper"
|
|
147
|
+
className: classnames(hashId, cssVarCls, "".concat(prefixCls, "-cw-range-picker-refresh-wrapper"))
|
|
144
148
|
}, showRefresh && /*#__PURE__*/React.createElement(_Tooltip, {
|
|
145
149
|
title: intl.get("1d0f3c0c-188f-4f83-bff0-2792dffcdc2d").d("刷新")
|
|
146
150
|
}, /*#__PURE__*/React.createElement(_Button, {
|
|
@@ -8,26 +8,23 @@ import { genStyleHooks } from "../../Antd5/theme/internal";
|
|
|
8
8
|
import { keyframes } from "../../antd-style";
|
|
9
9
|
var autoRefresh = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 100% {\n transform: rotate(360deg);\n }\n"])));
|
|
10
10
|
var genCustomRefreshStyle = function genCustomRefreshStyle(token) {
|
|
11
|
-
var prefixCls = token.antCls
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
".cw-range-picker-auto-refresh": {
|
|
26
|
-
color: token.colorPrimary
|
|
27
|
-
}
|
|
11
|
+
var prefixCls = token.antCls;
|
|
12
|
+
return _defineProperty({}, "".concat(prefixCls, "-cw-range-picker-refresh-wrapper"), _defineProperty(_defineProperty(_defineProperty({
|
|
13
|
+
marginLeft: "8px !important",
|
|
14
|
+
display: "flex"
|
|
15
|
+
}, "".concat(prefixCls, "-btn"), {
|
|
16
|
+
width: "28px",
|
|
17
|
+
padding: "0"
|
|
18
|
+
}), ".cw-range-picker-auto-refresh", {
|
|
19
|
+
animation: "".concat(autoRefresh, " 2s linear infinite")
|
|
20
|
+
}), ".cw-range-picker-auto-refresh-wrapper", {
|
|
21
|
+
"&:not(&[disabled])": {
|
|
22
|
+
borderColor: "".concat(token.colorPrimary, " !important"),
|
|
23
|
+
".cw-range-picker-auto-refresh": {
|
|
24
|
+
color: token.colorPrimary
|
|
28
25
|
}
|
|
29
|
-
}
|
|
30
|
-
};
|
|
26
|
+
}
|
|
27
|
+
}));
|
|
31
28
|
};
|
|
32
29
|
// ============================== Export ==============================
|
|
33
30
|
export default genStyleHooks(["CWRangePicker", "Refresh"], function (token) {
|
|
@@ -9,6 +9,8 @@ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
|
9
9
|
import React from "react";
|
|
10
10
|
import { CaretLeftOutlined, CaretRightOutlined, ZoomInOutlined } from "@ant-design/icons";
|
|
11
11
|
import { getChangeDate } from "../utils";
|
|
12
|
+
import classnames from "classnames";
|
|
13
|
+
import useConfigContext from "../../useConfigContext";
|
|
12
14
|
import { useIntl } from "../../locales";
|
|
13
15
|
import useStyle from "./index.style";
|
|
14
16
|
_Button.__ANT_BUTTON = true;
|
|
@@ -22,7 +24,10 @@ var TimeSpan = function TimeSpan(props) {
|
|
|
22
24
|
timeSpanOption = props.timeSpanOption,
|
|
23
25
|
isRightDisabled = props.isRightDisabled,
|
|
24
26
|
isDisabledEnlargeBtn = props.isDisabledEnlargeBtn;
|
|
25
|
-
var
|
|
27
|
+
var _useConfigContext = useConfigContext(),
|
|
28
|
+
getPrefixCls = _useConfigContext.getPrefixCls;
|
|
29
|
+
var prefixCls = getPrefixCls();
|
|
30
|
+
var _useStyle = useStyle("".concat(prefixCls, "-cw-range-picker-time-span")),
|
|
26
31
|
_useStyle2 = _slicedToArray(_useStyle, 3),
|
|
27
32
|
wrapCSSVar = _useStyle2[0],
|
|
28
33
|
hashId = _useStyle2[1],
|
|
@@ -67,7 +72,7 @@ var TimeSpan = function TimeSpan(props) {
|
|
|
67
72
|
};
|
|
68
73
|
var showTimeSpan = showForwardBtn || showBackwardBtn || showEnlargeBtn;
|
|
69
74
|
return wrapCSSVar(isHasDate && showTimeSpan && /*#__PURE__*/React.createElement(_Button.Group, {
|
|
70
|
-
className: "cw-range-picker-time-span-wrapper"
|
|
75
|
+
className: classnames(hashId, cssVarCls, "".concat(prefixCls, "-cw-range-picker-time-span-wrapper"))
|
|
71
76
|
}, /*#__PURE__*/React.createElement(_Tooltip, {
|
|
72
77
|
title: forwardTitle
|
|
73
78
|
}, showForwardBtn && /*#__PURE__*/React.createElement(_Button, {
|
|
@@ -4,18 +4,15 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
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
6
|
var genCustomTimeSpanStyle = function genCustomTimeSpanStyle(token) {
|
|
7
|
-
var prefixCls = token.antCls
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
fontSize: "14px !important"
|
|
17
|
-
}))
|
|
18
|
-
};
|
|
7
|
+
var prefixCls = token.antCls;
|
|
8
|
+
return _defineProperty({}, "".concat(prefixCls, "-cw-range-picker-time-span-wrapper"), _defineProperty({
|
|
9
|
+
marginLeft: "8px",
|
|
10
|
+
display: "flex"
|
|
11
|
+
}, "".concat(prefixCls, "-btn-icon-only"), _defineProperty({}, token.iconCls, {
|
|
12
|
+
width: "14px !important",
|
|
13
|
+
height: "14px !important",
|
|
14
|
+
fontSize: "14px !important"
|
|
15
|
+
})));
|
|
19
16
|
};
|
|
20
17
|
// ============================== Export ==============================
|
|
21
18
|
export default genStyleHooks(["CWRangePicker", "TimeSpan"], function (token) {
|
|
@@ -17,8 +17,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
17
17
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
18
18
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
19
|
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); }
|
|
20
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
21
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
20
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
21
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
22
22
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
23
23
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
24
24
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
@@ -35,6 +35,7 @@ import Refresh from "./Refresh";
|
|
|
35
35
|
import CalendarSvg from "./assets/Calendar";
|
|
36
36
|
import LiveSvg from "./assets/live";
|
|
37
37
|
import RecoverSvg from "./assets/Recover";
|
|
38
|
+
import useConfigContext from "../useConfigContext";
|
|
38
39
|
import { regroupDataSourceFn, echoInputValue, getUnit, judgeType, getChangeUnitDate, isInvalidDate, range, funcValueChangeArrayValue, getCorrectValue, getHistoryInfo, getFinalDateOption, getTruthDateCount, isAfterDate, isSameDate, isExceedMaxTimeSpan, getYears, computedRecentlyValue } from "./utils";
|
|
39
40
|
import _ from "lodash";
|
|
40
41
|
import moment from "moment";
|
|
@@ -98,7 +99,10 @@ var CWRangePicker = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
98
99
|
dropdownCalendarClassName = menuOption.dropdownCalendarClassName,
|
|
99
100
|
disabledDate = menuOption.disabledDate,
|
|
100
101
|
disabledTime = menuOption.disabledTime;
|
|
101
|
-
var
|
|
102
|
+
var _useConfigContext = useConfigContext(),
|
|
103
|
+
getPrefixCls = _useConfigContext.getPrefixCls;
|
|
104
|
+
var prefixCls = getPrefixCls();
|
|
105
|
+
var _useStyle = useStyle("".concat(prefixCls, "-cw-range-picker")),
|
|
102
106
|
_useStyle2 = _slicedToArray(_useStyle, 3),
|
|
103
107
|
wrapCSSVar = _useStyle2[0],
|
|
104
108
|
hashId = _useStyle2[1],
|
|
@@ -533,7 +537,7 @@ var CWRangePicker = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
533
537
|
isClickAutoRefresh: isClickAutoRefresh
|
|
534
538
|
});
|
|
535
539
|
return wrapCSSVar( /*#__PURE__*/React.createElement("div", {
|
|
536
|
-
className: classnames(hashId, cssVarCls, "cw-range-picker-wrapper", classNameWrapper),
|
|
540
|
+
className: classnames(hashId, cssVarCls, "".concat(prefixCls, "-cw-range-picker-wrapper"), classNameWrapper),
|
|
537
541
|
ref: calendarRef
|
|
538
542
|
}, /*#__PURE__*/React.createElement("div", {
|
|
539
543
|
className: "cw-range-picker-box-wrapper"
|
|
@@ -4,71 +4,66 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
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
6
|
var genCustomCWRangePickerStyle = function genCustomCWRangePickerStyle(token) {
|
|
7
|
-
var prefixCls = token.antCls
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
7
|
+
var prefixCls = token.antCls;
|
|
8
|
+
return _defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-cw-range-picker-wrapper"), {
|
|
9
|
+
display: "flex",
|
|
10
|
+
alignItems: "center",
|
|
11
|
+
".cw-range-picker-box-wrapper": {
|
|
11
12
|
display: "flex",
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
flexDirection: "column"
|
|
14
|
+
},
|
|
15
|
+
".cw-range-picker-input-wrapper": {
|
|
16
|
+
width: "360px",
|
|
17
|
+
".cw-range-picker-prefix-wrapper, .cw-range-picker-suffix-wrapper": {
|
|
18
|
+
width: "16px",
|
|
19
|
+
height: "16px",
|
|
14
20
|
display: "flex",
|
|
15
|
-
|
|
21
|
+
justifyContent: "center",
|
|
22
|
+
alignItems: "center"
|
|
23
|
+
},
|
|
24
|
+
".cw-range-picker-prefix-icon": {
|
|
25
|
+
color: "#000"
|
|
16
26
|
},
|
|
17
|
-
".cw-range-picker-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
alignItems: "center"
|
|
27
|
+
".cw-range-picker-suffix-wrapper": {
|
|
28
|
+
".cw-range-picker-suffix-tips": {
|
|
29
|
+
color: token.colorTextTertiary,
|
|
30
|
+
fontSize: "14px",
|
|
31
|
+
"&:hover": {
|
|
32
|
+
cursor: "pointer"
|
|
33
|
+
}
|
|
25
34
|
},
|
|
26
|
-
".cw-range-picker-
|
|
27
|
-
color:
|
|
35
|
+
".cw-range-picker-suffix-recover": {
|
|
36
|
+
color: token.colorTextSecondary,
|
|
37
|
+
"&:hover": {
|
|
38
|
+
cursor: "pointer"
|
|
39
|
+
}
|
|
28
40
|
},
|
|
29
|
-
"
|
|
41
|
+
"&:hover": {
|
|
30
42
|
".cw-range-picker-suffix-tips": {
|
|
31
|
-
color: token.
|
|
32
|
-
fontSize: "14px",
|
|
33
|
-
"&:hover": {
|
|
34
|
-
cursor: "pointer"
|
|
35
|
-
}
|
|
43
|
+
color: token.colorPrimaryHover
|
|
36
44
|
},
|
|
37
45
|
".cw-range-picker-suffix-recover": {
|
|
38
|
-
color: token.
|
|
39
|
-
"&:hover": {
|
|
40
|
-
cursor: "pointer"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
"&:hover": {
|
|
44
|
-
".cw-range-picker-suffix-tips": {
|
|
45
|
-
color: token.colorPrimaryHover
|
|
46
|
-
},
|
|
47
|
-
".cw-range-picker-suffix-recover": {
|
|
48
|
-
color: token.colorPrimaryHover
|
|
49
|
-
}
|
|
46
|
+
color: token.colorPrimaryHover
|
|
50
47
|
}
|
|
51
48
|
}
|
|
52
|
-
},
|
|
53
|
-
".cw-range-picker-input-wrapper-none": {
|
|
54
|
-
display: "none"
|
|
55
|
-
},
|
|
56
|
-
".cw-range-picker-calendar-wrapper": {
|
|
57
|
-
width: "360px"
|
|
58
|
-
},
|
|
59
|
-
".cw-range-picker-calendar-wrapper-none": {
|
|
60
|
-
display: "none"
|
|
61
49
|
}
|
|
62
50
|
},
|
|
63
|
-
".cw-range-picker-
|
|
64
|
-
|
|
51
|
+
".cw-range-picker-input-wrapper-none": {
|
|
52
|
+
display: "none"
|
|
53
|
+
},
|
|
54
|
+
".cw-range-picker-calendar-wrapper": {
|
|
55
|
+
width: "360px"
|
|
65
56
|
},
|
|
66
|
-
".cw-range-picker-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
57
|
+
".cw-range-picker-calendar-wrapper-none": {
|
|
58
|
+
display: "none"
|
|
59
|
+
}
|
|
60
|
+
}), ".cw-range-picker-time-refresh-wrapper", {
|
|
61
|
+
marginLeft: "8px"
|
|
62
|
+
}), ".cw-range-picker-dropdown", _defineProperty({
|
|
63
|
+
minWidth: "360px !important"
|
|
64
|
+
}, "".concat(prefixCls, "-dropdown-menu"), {
|
|
65
|
+
maxWidth: "360px"
|
|
66
|
+
}));
|
|
72
67
|
};
|
|
73
68
|
// ============================== Export ==============================
|
|
74
69
|
export default genStyleHooks("CWRangePicker", function (token) {
|
package/lib/CWTable/CWTable.js
CHANGED
|
@@ -24,8 +24,8 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
|
|
|
24
24
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
25
25
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
26
26
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
27
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
28
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
27
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
28
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
29
29
|
import React, { useState, useEffect, useRef, useMemo, forwardRef } from "react";
|
|
30
30
|
import Icon, { LoadingOutlined, DownOutlined, RightOutlined } from "@ant-design/icons";
|
|
31
31
|
import classnames from "classnames";
|
|
@@ -77,7 +77,7 @@ var CWTable = function CWTable(_ref, ref) {
|
|
|
77
77
|
onColumnsResizeEnd = _ref$onColumnsResizeE === void 0 ? function () {} : _ref$onColumnsResizeE,
|
|
78
78
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
79
79
|
var prefix = rest.getPrefixCls();
|
|
80
|
-
var _useStyle = useStyle("
|
|
80
|
+
var _useStyle = useStyle("".concat(prefix, "-table")),
|
|
81
81
|
_useStyle2 = _slicedToArray(_useStyle, 3),
|
|
82
82
|
wrapCSSVar = _useStyle2[0],
|
|
83
83
|
hashId = _useStyle2[1],
|
package/lib/CWTable/header.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["onResize", "width", "onClick"];
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
4
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
3
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
5
5
|
import React, { useRef } from "react";
|
|
6
6
|
import { Resizable } from "react-resizable";
|
|
7
7
|
// 自定义表头单元格
|