@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.
Files changed (214) hide show
  1. package/lib/AbreastLayout/index.js +2 -2
  2. package/lib/AdaptiveLayout/index.js +2 -2
  3. package/lib/Antd5/_util/transButton.js +2 -2
  4. package/lib/Antd5/alert/Alert.js +2 -2
  5. package/lib/Antd5/app/style/index.js +2 -1
  6. package/lib/Antd5/avatar/avatar.js +2 -2
  7. package/lib/Antd5/badge/ScrollNumber.js +2 -2
  8. package/lib/Antd5/badge/index.js +2 -2
  9. package/lib/Antd5/breadcrumb/Breadcrumb.js +2 -2
  10. package/lib/Antd5/breadcrumb/BreadcrumbItem.js +2 -2
  11. package/lib/Antd5/breadcrumb/useItemRender.js +2 -2
  12. package/lib/Antd5/breadcrumb/useItems.js +2 -2
  13. package/lib/Antd5/button/button-group.js +2 -2
  14. package/lib/Antd5/button/button.js +2 -2
  15. package/lib/Antd5/card/Card.js +2 -2
  16. package/lib/Antd5/card/Grid.js +2 -2
  17. package/lib/Antd5/card/Meta.js +2 -2
  18. package/lib/Antd5/carousel/index.js +2 -2
  19. package/lib/Antd5/cascader/index.js +2 -2
  20. package/lib/Antd5/checkbox/Checkbox.js +2 -2
  21. package/lib/Antd5/checkbox/Group.js +2 -2
  22. package/lib/Antd5/color-picker/ColorPicker.js +2 -2
  23. package/lib/Antd5/color-picker/ColorPickerPanel.js +2 -2
  24. package/lib/Antd5/color-picker/components/ColorTrigger.js +2 -2
  25. package/lib/Antd5/color-picker/components/PanelPicker.js +2 -2
  26. package/lib/Antd5/config-provider/index.js +2 -2
  27. package/lib/Antd5/date-picker/generatePicker/generateRangePicker.js +2 -2
  28. package/lib/Antd5/date-picker/generatePicker/generateSinglePicker.js +2 -2
  29. package/lib/Antd5/descriptions/hooks/useItems.js +2 -2
  30. package/lib/Antd5/descriptions/index.js +2 -2
  31. package/lib/Antd5/divider/index.js +2 -2
  32. package/lib/Antd5/drawer/index.js +2 -2
  33. package/lib/Antd5/dropdown/dropdown-button.js +2 -2
  34. package/lib/Antd5/empty/index.js +2 -2
  35. package/lib/Antd5/flex/index.js +2 -2
  36. package/lib/Antd5/float-button/BackTop.js +2 -2
  37. package/lib/Antd5/float-button/FloatButton.js +2 -2
  38. package/lib/Antd5/float-button/FloatButtonGroup.js +2 -2
  39. package/lib/Antd5/float-button/PurePanel.js +2 -2
  40. package/lib/Antd5/form/Form.js +2 -2
  41. package/lib/Antd5/form/FormItem/ItemHolder.js +2 -2
  42. package/lib/Antd5/form/FormItemLabel.js +2 -2
  43. package/lib/Antd5/form/FormList.js +2 -2
  44. package/lib/Antd5/grid/col.js +2 -2
  45. package/lib/Antd5/grid/row.js +2 -2
  46. package/lib/Antd5/image/PreviewGroup.js +2 -2
  47. package/lib/Antd5/image/index.js +2 -2
  48. package/lib/Antd5/input/Input.js +2 -2
  49. package/lib/Antd5/input/OTP/OTPInput.js +2 -2
  50. package/lib/Antd5/input/OTP/index.js +2 -2
  51. package/lib/Antd5/input/Password.js +2 -2
  52. package/lib/Antd5/input/Search.js +2 -2
  53. package/lib/Antd5/input/TextArea.js +2 -2
  54. package/lib/Antd5/input-number/index.js +2 -2
  55. package/lib/Antd5/layout/Sider.js +2 -2
  56. package/lib/Antd5/layout/layout.js +2 -2
  57. package/lib/Antd5/list/Item.js +2 -2
  58. package/lib/Antd5/list/index.js +2 -2
  59. package/lib/Antd5/mentions/index.js +2 -2
  60. package/lib/Antd5/menu/MenuDivider.js +2 -2
  61. package/lib/Antd5/menu/OverrideContext.js +2 -2
  62. package/lib/Antd5/menu/menu.js +2 -2
  63. package/lib/Antd5/message/PurePanel.js +2 -2
  64. package/lib/Antd5/message/useMessage.js +2 -2
  65. package/lib/Antd5/modal/ConfirmDialog.js +2 -2
  66. package/lib/Antd5/modal/Modal.js +2 -2
  67. package/lib/Antd5/modal/PurePanel.js +2 -2
  68. package/lib/Antd5/modal/useModal/HookModal.js +2 -2
  69. package/lib/Antd5/notification/PurePanel.js +2 -2
  70. package/lib/Antd5/notification/useNotification.js +2 -2
  71. package/lib/Antd5/pagination/Pagination.js +2 -2
  72. package/lib/Antd5/popconfirm/PurePanel.js +2 -2
  73. package/lib/Antd5/popconfirm/index.js +2 -2
  74. package/lib/Antd5/popover/PurePanel.js +2 -2
  75. package/lib/Antd5/popover/index.js +2 -2
  76. package/lib/Antd5/progress/Line.js +2 -2
  77. package/lib/Antd5/progress/progress.js +2 -2
  78. package/lib/Antd5/radio/radio.js +2 -2
  79. package/lib/Antd5/radio/radioButton.js +2 -2
  80. package/lib/Antd5/rate/index.js +2 -2
  81. package/lib/Antd5/segmented/index.js +2 -2
  82. package/lib/Antd5/select/index.js +2 -2
  83. package/lib/Antd5/slider/index.js +2 -2
  84. package/lib/Antd5/space/Compact.js +2 -2
  85. package/lib/Antd5/space/index.js +2 -2
  86. package/lib/Antd5/spin/index.js +2 -2
  87. package/lib/Antd5/statistic/Countdown.js +2 -2
  88. package/lib/Antd5/statistic/Statistic.js +2 -2
  89. package/lib/Antd5/steps/index.js +2 -2
  90. package/lib/Antd5/switch/index.js +2 -2
  91. package/lib/Antd5/table/hooks/usePagination.js +2 -2
  92. package/lib/Antd5/tabs/hooks/useLegacyItems.js +2 -2
  93. package/lib/Antd5/tabs/index.js +2 -2
  94. package/lib/Antd5/tag/CheckableTag.js +2 -2
  95. package/lib/Antd5/tag/index.js +2 -2
  96. package/lib/Antd5/theme/useToken.js +2 -2
  97. package/lib/Antd5/theme/util/alias.js +2 -2
  98. package/lib/Antd5/time-picker/index.js +2 -2
  99. package/lib/Antd5/timeline/Timeline.js +2 -2
  100. package/lib/Antd5/timeline/TimelineItem.js +2 -2
  101. package/lib/Antd5/timeline/TimelineItemList.js +2 -2
  102. package/lib/Antd5/tooltip/index.js +2 -2
  103. package/lib/Antd5/tour/PurePanel.js +2 -2
  104. package/lib/Antd5/tour/index.js +2 -2
  105. package/lib/Antd5/tree/DirectoryTree.js +2 -2
  106. package/lib/Antd5/tree-select/index.js +2 -2
  107. package/lib/Antd5/typography/Base/index.js +2 -2
  108. package/lib/Antd5/typography/Link.js +2 -2
  109. package/lib/Antd5/typography/Text.js +2 -2
  110. package/lib/Antd5/typography/Title.js +2 -2
  111. package/lib/Antd5/typography/Typography.js +2 -2
  112. package/lib/Antd5/upload/Dragger.js +2 -2
  113. package/lib/Antd5/upload/Upload.js +1 -1
  114. package/lib/AppHolder/index.js +19 -0
  115. package/lib/Badge/index.style.js +42 -10
  116. package/lib/BasicLayout/Breadcrumb.js +2 -2
  117. package/lib/BasicLayout/Footer.js +2 -2
  118. package/lib/BasicLayout/Sider.js +8 -4
  119. package/lib/BasicLayout/style/sider.js +53 -49
  120. package/lib/Button/index.js +2 -2
  121. package/lib/CWCascader/Cascader/index.js +2 -2
  122. package/lib/CWCascader/rc-cascader/Cascader.js +2 -2
  123. package/lib/CWMessage/MessageContent/TabList/index.js +2 -2
  124. package/lib/CWMessage/MessageContent/index.js +6 -6
  125. package/lib/CWMessage/index.js +82 -92
  126. package/lib/CWMessage/index.style.js +2 -4
  127. package/lib/CWRadioTabs/index.js +2 -2
  128. package/lib/CWRangePicker/DropdownMenu/index.js +41 -37
  129. package/lib/CWRangePicker/DropdownMenu/index.style.js +129 -130
  130. package/lib/CWRangePicker/Refresh/index.js +8 -4
  131. package/lib/CWRangePicker/Refresh/index.style.js +16 -19
  132. package/lib/CWRangePicker/TimeSpan/index.js +7 -2
  133. package/lib/CWRangePicker/TimeSpan/index.style.js +9 -12
  134. package/lib/CWRangePicker/index.js +8 -4
  135. package/lib/CWRangePicker/index.style.js +47 -52
  136. package/lib/CWTable/CWTable.js +3 -3
  137. package/lib/CWTable/header.js +2 -2
  138. package/lib/CWTree/index.js +8 -4
  139. package/lib/CWTree/index.style.js +97 -99
  140. package/lib/CardSelect/index.js +2 -2
  141. package/lib/ChangeIcon/index.js +1 -1
  142. package/lib/Collapse/index.js +2 -2
  143. package/lib/ConfigProvider/ConfigProvider.js +17 -5
  144. package/lib/CustomScrollBar/index.js +2 -2
  145. package/lib/Drawer/index.js +2 -2
  146. package/lib/Dropdown/DropdownButton.js +2 -2
  147. package/lib/Dropdown/index.js +2 -2
  148. package/lib/EchartsArea/index.js +2 -2
  149. package/lib/EchartsBar/index.js +2 -2
  150. package/lib/EchartsBarRow/index.js +2 -2
  151. package/lib/EchartsBase/index.js +2 -2
  152. package/lib/EchartsLine/index.js +2 -2
  153. package/lib/EchartsPie/index.js +2 -2
  154. package/lib/EchartsRing/index.js +2 -2
  155. package/lib/Empty/index.js +2 -2
  156. package/lib/Exception/index.js +1 -1
  157. package/lib/FilterDropDown/index.js +1 -1
  158. package/lib/Flow/BasicLayout/Chain.js +2 -2
  159. package/lib/Flow/Flow.js +2 -2
  160. package/lib/Form/FormItem.js +2 -2
  161. package/lib/Form/index.js +2 -2
  162. package/lib/FormItemWrapper/index.js +2 -2
  163. package/lib/GlobalTabs/index.js +2 -2
  164. package/lib/Header/CommonDropMenu.js +2 -2
  165. package/lib/Header/LocaleSwitcher.js +2 -2
  166. package/lib/Header/Message/index.js +2 -2
  167. package/lib/Header/TopNavigationMenu/index.js +1 -1
  168. package/lib/Header/UserSetting/index.js +1 -1
  169. package/lib/Header/index.js +1 -1
  170. package/lib/Icon/index.js +2 -2
  171. package/lib/IconSelect/index.js +1 -1
  172. package/lib/Input/InputComponent.js +2 -2
  173. package/lib/InputNumber/index.js +2 -2
  174. package/lib/Joyride/index.js +2 -2
  175. package/lib/LayoutBreadcrumb/index.js +2 -2
  176. package/lib/LayoutWrapper/Footer.js +7 -3
  177. package/lib/LayoutWrapper/Header.js +7 -3
  178. package/lib/LayoutWrapper/index.js +5 -2
  179. package/lib/LeftNavigation/index.js +1 -1
  180. package/lib/Modal/Modal.js +2 -2
  181. package/lib/Modal/index.js +2 -2
  182. package/lib/ModuleFederation/react-dynamic-remote-component/RemoteComponent.js +2 -2
  183. package/lib/ModuleTitle/index.js +2 -2
  184. package/lib/Pagination/index.js +2 -2
  185. package/lib/QuickRangePicker/index.js +2 -2
  186. package/lib/QuickTransfer/index.js +7 -3
  187. package/lib/ScrollLoad/index.js +2 -2
  188. package/lib/SearchBar/index.js +3 -3
  189. package/lib/SiderMenu/index.js +2 -2
  190. package/lib/SimpleCard/index.js +2 -2
  191. package/lib/SimplePagination/index.js +1 -1
  192. package/lib/SingleSpa/index.js +2 -2
  193. package/lib/Slider/index.js +2 -2
  194. package/lib/Tabs/index.js +2 -2
  195. package/lib/Tag/CheckableTag.js +2 -2
  196. package/lib/Tag/index.js +2 -2
  197. package/lib/Tag/index.style.js +41 -9
  198. package/lib/ThemeProvider/main.js +2 -2
  199. package/lib/Tooltip/index.js +4 -4
  200. package/lib/TooltipText/index.js +3 -3
  201. package/lib/UniversalLayout/index.js +5 -1
  202. package/lib/WangEditor/editor4.js +2 -2
  203. package/lib/WangEditor/index.js +2 -2
  204. package/lib/antd-style/factories/createStyleProvider/index.js +2 -2
  205. package/lib/antd-style/factories/createStyles/index.js +2 -2
  206. package/lib/antd-style/factories/createThemeProvider/AntdProvider.js +2 -2
  207. package/lib/antd-style/factories/createThemeProvider/TokenContainer.js +2 -2
  208. package/lib/antd-style/factories/createThemeProvider/index.js +2 -2
  209. package/lib/antd-style/functions/index.js +6 -5
  210. package/lib/configHoc/index.js +2 -2
  211. package/lib/locales/en_US.json +1 -0
  212. package/lib/locales/zh_CN.json +1 -0
  213. package/lib/locales/zh_TW.json +1 -0
  214. 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
- componentCls = token.componentCls;
5
- return {
6
- ".cw-dropdown-menu-wrapper": {
7
- width: "360px",
8
- padding: "4px 0",
9
- textAlign: "left",
10
- listStyleType: "none",
11
- boxShadow: token.boxShadow,
12
- backgroundColor: token.colorBgContainer,
13
- borderRadius: token.borderRadius,
14
- outline: "none",
15
- backgroundClip: "padding-box",
16
- WebkitTransform: "translate3d(0, 0, 0)",
17
- position: "relative",
18
- ".cw-dropdown-menu-_item": {
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
- alignItems: "center",
21
- overflow: "hidden",
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
- ".cw-dropdown-menu-item-more": {
46
- position: "relative",
47
- justifyContent: "space-between",
48
- overflow: "visible"
40
+ "&.cw-dropdown-menu-item-selected": {
41
+ backgroundColor: token.colorPrimaryBg
49
42
  },
50
- ".cw-dropdown-menu-more-wrapper": {
51
- width: "384px",
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-range-picker-popup-more-content": {
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
- padding: "12px 16px 8px",
113
- backgroundColor: token.colorBgContainer,
114
- ".more-col-item": {
115
- cursor: "pointer",
116
- color: token.boxShadow,
117
- "&.cw-dropdown-menu-item-selected": {
118
- background: token.colorPrimaryBg
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-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"
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-popup-more-content": {
74
+ ".cw-dropdown-menu-history-wrapper": {
137
75
  display: "flex",
138
76
  flexWrap: "wrap",
139
- "[ant-click-animating-without-extra-node]::after": {
140
- boxShadow: "none !important"
77
+ lineHeight: "20px",
78
+ ".cw-dropdown-menu-history-title": {
79
+ marginRight: "6px",
80
+ marginBottom: "8px"
141
81
  },
142
- ".cw-dropdown-menu-history-popup-more-content-tag-title": {
143
- marginTop: "8px",
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 n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.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.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
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 _useStyle = useStyle("cw-range-picker-refresh-wrapper"),
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
- componentCls = token.componentCls;
13
- return {
14
- ".cw-range-picker-refresh-wrapper": _defineProperty(_defineProperty(_defineProperty({
15
- marginLeft: "8px !important",
16
- display: "flex"
17
- }, "".concat(prefixCls, "-btn"), {
18
- width: "28px",
19
- padding: "0"
20
- }), ".cw-range-picker-auto-refresh", {
21
- animation: "".concat(autoRefresh, " 2s linear infinite")
22
- }), ".cw-range-picker-auto-refresh-wrapper", {
23
- "&:not(&[disabled])": {
24
- borderColor: "".concat(token.colorPrimary, " !important"),
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 _useStyle = useStyle("cw-range-picker-time-span-wrapper"),
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
- componentCls = token.componentCls;
9
- return {
10
- ".cw-range-picker-time-span-wrapper": _defineProperty({
11
- marginLeft: "8px",
12
- display: "flex"
13
- }, "".concat(prefixCls, "-btn-icon-only"), _defineProperty({}, token.iconCls, {
14
- width: "14px !important",
15
- height: "14px !important",
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 n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.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.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
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 _useStyle = useStyle("cw-range-picker-wrapper"),
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
- colorPickerPrefix = token.componentCls;
9
- return {
10
- ".cw-range-picker-wrapper": {
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
- alignItems: "center",
13
- ".cw-range-picker-box-wrapper": {
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
- flexDirection: "column"
21
+ justifyContent: "center",
22
+ alignItems: "center"
23
+ },
24
+ ".cw-range-picker-prefix-icon": {
25
+ color: "#000"
16
26
  },
17
- ".cw-range-picker-input-wrapper": {
18
- width: "360px",
19
- ".cw-range-picker-prefix-wrapper, .cw-range-picker-suffix-wrapper": {
20
- width: "16px",
21
- height: "16px",
22
- display: "flex",
23
- justifyContent: "center",
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-prefix-icon": {
27
- color: "#000"
35
+ ".cw-range-picker-suffix-recover": {
36
+ color: token.colorTextSecondary,
37
+ "&:hover": {
38
+ cursor: "pointer"
39
+ }
28
40
  },
29
- ".cw-range-picker-suffix-wrapper": {
41
+ "&:hover": {
30
42
  ".cw-range-picker-suffix-tips": {
31
- color: token.colorTextTertiary,
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.colorTextSecondary,
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-time-refresh-wrapper": {
64
- marginLeft: "8px"
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-dropdown": _defineProperty({
67
- minWidth: "360px !important"
68
- }, "".concat(prefixCls, "-dropdown-menu"), {
69
- maxWidth: "360px"
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) {
@@ -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 n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.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.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
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("cw-common-table"),
80
+ var _useStyle = useStyle("".concat(prefix, "-table")),
81
81
  _useStyle2 = _slicedToArray(_useStyle, 3),
82
82
  wrapCSSVar = _useStyle2[0],
83
83
  hashId = _useStyle2[1],
@@ -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 n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.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.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
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
  // 自定义表头单元格