@chaoswise/ui 2.4.1 → 2.5.0

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 (220) hide show
  1. package/config/babel/index.js +1 -28
  2. package/config/swc.js +5 -0
  3. package/lib/AbreastLayout/CollapsedBtn.js +1 -1
  4. package/lib/AbreastLayout/NavTreeContainer.js +1 -1
  5. package/lib/AbreastLayout/index.js +2 -2
  6. package/lib/Ace/ace.js +2 -2
  7. package/lib/Ace/diff.js +2 -2
  8. package/lib/Ace/split.js +2 -2
  9. package/lib/AdaptiveLayout/index.js +2 -2
  10. package/lib/Alert/index.js +1 -1
  11. package/lib/AlgorithmChart/common/chart.option.js +0 -5
  12. package/lib/Anchor/index.js +3 -0
  13. package/lib/Antd/Drawer.js +2 -2
  14. package/lib/Antd3/es/cascader/index.js +0 -1
  15. package/lib/Antd3/es/message/index.js +0 -2
  16. package/lib/Antd4/message/index-copy.js +0 -2
  17. package/lib/Antd4/notification/index.js +0 -1
  18. package/lib/Antd4/statistic/utils.js +0 -1
  19. package/lib/Antd4/tabs/index.js +1 -1
  20. package/lib/Antd4/tooltip/index.js +0 -1
  21. package/lib/Antd4/tree/Tree.js +0 -1
  22. package/lib/Antd4Form/FieldList.js +2 -2
  23. package/lib/Antd4Form/FormItem.js +2 -2
  24. package/lib/Antd4Form/FormItemChildren.js +2 -2
  25. package/lib/Antd4Form/useForm.js +2 -2
  26. package/lib/AutoComplete/index.js +3 -0
  27. package/lib/Avatar/index.js +3 -0
  28. package/lib/BackTop/index.js +3 -0
  29. package/lib/Badge/index.less +5 -0
  30. package/lib/BasicLayout/Breadcrumb.js +3 -3
  31. package/lib/BasicLayout/Sider.js +5 -5
  32. package/lib/BasicLayout/index.js +2 -3
  33. package/lib/Breadcrumb/Breadcrumb.less +34 -0
  34. package/lib/Breadcrumb/index.js +2 -9
  35. package/lib/CWCascader/Cascader/index.js +2 -2
  36. package/lib/CWCascader/rc-cascader/OptionList/Checkbox.js +2 -2
  37. package/lib/CWCascader/rc-cascader/OptionList/Column.js +5 -5
  38. package/lib/CWCascader/rc-cascader/OptionList/index.js +2 -2
  39. package/lib/CWCascader/rc-cascader/hooks/useEntities.js +2 -2
  40. package/lib/CWCascader/rc-cascader/hooks/useSearchConfig.js +2 -2
  41. package/lib/CWCascader/rc-cascader/hooks/useSearchOptions.js +2 -2
  42. package/lib/CWMessage/MessageContent/TabList/index.js +2 -2
  43. package/lib/CWMessage/MessageContent/index.js +4 -4
  44. package/lib/CWMessage/index.js +3 -3
  45. package/lib/CWRadioTabs/index.js +2 -2
  46. package/lib/CWRangePicker/DropdownMenu/MoreHistoryList/index.js +1 -1
  47. package/lib/CWRangePicker/DropdownMenu/MoreTimeList/index.js +2 -2
  48. package/lib/CWRangePicker/DropdownMenu/index.js +4 -4
  49. package/lib/CWRangePicker/Refresh/index.js +2 -2
  50. package/lib/CWRangePicker/index.js +4 -4
  51. package/lib/CWRangePicker/utils/index.js +2 -2
  52. package/lib/CWSelect/Tag.js +1 -1
  53. package/lib/CWSelect/antd-select.js +3 -4
  54. package/lib/CWSelect/index.js +2 -2
  55. package/lib/CWTable/CWTable.js +4 -6
  56. package/lib/CWTable/EditLine.js +4 -4
  57. package/lib/CWTable/Filter.js +1 -1
  58. package/lib/CWTable/FormTable.js +2 -2
  59. package/lib/CWTable/header.js +23 -22
  60. package/lib/CWTree/index.js +4 -5
  61. package/lib/CWTree/utils/index.js +2 -2
  62. package/lib/CWUpload/upload/DragList.js +2 -2
  63. package/lib/CWUpload/upload/Dragger.js +3 -3
  64. package/lib/CWUpload/upload/Upload.js +4 -4
  65. package/lib/CWUpload/upload/UploadList.js +28 -28
  66. package/lib/Calendar/index.js +3 -0
  67. package/lib/Card/index.js +3 -0
  68. package/lib/CardSelect/index.js +0 -1
  69. package/lib/Carousel/index.js +3 -0
  70. package/lib/ChangeIcon/index.js +1 -1
  71. package/lib/Checkbox/Checkbox.js +2 -2
  72. package/lib/Checkbox/Group.js +2 -2
  73. package/lib/Col/Collapse.less +129 -0
  74. package/lib/Col/index.js +3 -0
  75. package/lib/Collapse/index.js +1 -1
  76. package/lib/ColorPicker/index.js +4 -5
  77. package/lib/Comment/index.js +3 -0
  78. package/lib/ConfigProvider/ConfigProvider.js +2 -2
  79. package/lib/ConfigProvider/Switch.js +1 -1
  80. package/lib/CustomScrollBar/index.js +2 -2
  81. package/lib/DatePicker/DatePicker.js +1 -1
  82. package/lib/DatePicker/MonthPicker.js +1 -1
  83. package/lib/DatePicker/RangePicker.js +1 -1
  84. package/lib/DateRangePicker/components/ExtraTimeFooter.js +2 -2
  85. package/lib/Descriptions/index.js +3 -0
  86. package/lib/Divider/index.js +3 -0
  87. package/lib/Documentation/Tocify.js +2 -2
  88. package/lib/Documentation/index.js +2 -3
  89. package/lib/Drawer/Drawer.less +305 -0
  90. package/lib/Drawer/index.js +120 -0
  91. package/lib/Dropdown/Dropdown.less +124 -0
  92. package/lib/Dropdown/index.js +4 -0
  93. package/lib/DropdownDatePicker/DropdownMenu/MoreTimeList/index.js +2 -2
  94. package/lib/DropdownDatePicker/DropdownMenu/index.js +4 -4
  95. package/lib/DropdownDatePicker/index.js +3 -3
  96. package/lib/DropdownDatePicker/utils/index.js +2 -2
  97. package/lib/EchartsArea/index.js +2 -2
  98. package/lib/EchartsBar/index.js +2 -2
  99. package/lib/EchartsBase/index.js +2 -3
  100. package/lib/EchartsLine/index.js +2 -3
  101. package/lib/ErrorBoundary/history.js +2 -2
  102. package/lib/ErrorBoundary/index.js +2 -2
  103. package/lib/FilterDropDown/DragList.js +3 -4
  104. package/lib/FilterDropDown/index.js +1 -1
  105. package/lib/Flow/Flow.js +0 -2
  106. package/lib/Flow/commons/initCommands.js +0 -2
  107. package/lib/Flow/components/PluginWrapper.js +2 -2
  108. package/lib/Flow/layouts/callChain.js +2 -2
  109. package/lib/Flow/plugins/CommandLifeCycle.js +2 -2
  110. package/lib/Flow/plugins/InitSideBarPlugin.js +2 -2
  111. package/lib/Flow/plugins/InitToolBarPlugin.js +2 -2
  112. package/lib/Flow/shape/nodes/baseNode.js +0 -1
  113. package/lib/Form/FormItem.js +2 -2
  114. package/lib/FormItemWrapper/index.js +2 -2
  115. package/lib/Formily/FieldList/index.js +2 -2
  116. package/lib/Formily/FormItem/index.js +3 -3
  117. package/lib/Formily/FormItem/items/Password.js +2 -2
  118. package/lib/Formily/FormItem/items/Rating.js +1 -1
  119. package/lib/Formily/FormItem/items/Switch.js +1 -1
  120. package/lib/Formily/FormItem/items/Tansfer.js +1 -1
  121. package/lib/Formily/FormItem/items/TimePicker.js +1 -1
  122. package/lib/Formily/MegaLayout/index.js +2 -2
  123. package/lib/Formily/subscribeFields/index.js +2 -2
  124. package/lib/GlobalTabs/index.js +2 -2
  125. package/lib/Header/CommonDropMenu.js +2 -2
  126. package/lib/Header/CommonIcon.js +2 -2
  127. package/lib/Header/TopNavigationMenu/index.js +2 -2
  128. package/lib/Header/UserSetting/index.js +2 -2
  129. package/lib/Header/UserSetting/utils.js +2 -2
  130. package/lib/Header/index.js +2 -2
  131. package/lib/Icon/index.js +3 -0
  132. package/lib/IconSelect/components/CustomImg/index.js +0 -1
  133. package/lib/IconSelect/index.js +1 -1
  134. package/lib/Input/InputComponent.js +2 -2
  135. package/lib/IntersectionInput/index.js +2 -2
  136. package/lib/Joyride/List.js +2 -2
  137. package/lib/Joyride/index.js +3 -3
  138. package/lib/Layout/Layout.less +6 -0
  139. package/lib/Layout/index.js +4 -0
  140. package/lib/LayoutBreadcrumb/index.js +3 -3
  141. package/lib/LazyLoadingTreeSelect/index.js +2 -2
  142. package/lib/List/index.js +3 -0
  143. package/lib/LocaleProvider/index.js +3 -0
  144. package/lib/Mention/index.js +3 -0
  145. package/lib/Mentions/index.js +3 -0
  146. package/lib/Menu/menu/MenuItem.js +2 -3
  147. package/lib/Menu/menu/SubMenu.js +2 -2
  148. package/lib/Menu/menu/index.js +2 -2
  149. package/lib/Modal/Modal.js +2 -2
  150. package/lib/Modal/custom-backup/entiretyDrag.js +2 -2
  151. package/lib/Modal/index.js +3 -4
  152. package/lib/ModuleFederation/ErrorBoundary/index.js +2 -2
  153. package/lib/ModuleFederation/index.js +1 -1
  154. package/lib/ModuleFederation/react-dynamic-remote-component/RemoteComponent.js +3 -3
  155. package/lib/PageHeader/index.js +3 -0
  156. package/lib/Pagination/index.js +2 -2
  157. package/lib/PolymerizationSearch/index.js +2 -2
  158. package/lib/Popover/index.js +3 -0
  159. package/lib/Progress/index.js +1 -1
  160. package/lib/QuickRangePicker/index.js +5 -5
  161. package/lib/QuickTransfer/Drag.js +0 -1
  162. package/lib/QuickTransfer/DragList.js +1 -1
  163. package/lib/QuickTransfer/NotDragList.js +1 -1
  164. package/lib/QuickTransfer/index.js +2 -2
  165. package/lib/QuickTransfer/utils.js +2 -4
  166. package/lib/Radio/Group.js +2 -2
  167. package/lib/Radio/Radio.js +2 -2
  168. package/lib/RangePicker/components/ExtraTimeFooter.js +3 -3
  169. package/lib/Rate/index.js +3 -0
  170. package/lib/ReactSelect/CustomArrow.js +1 -1
  171. package/lib/ReactSelect/TagMore.js +1 -1
  172. package/lib/ReactSelect/customStyles.js +2 -2
  173. package/lib/ReactSelect/index.js +2 -2
  174. package/lib/Result/index.js +3 -0
  175. package/lib/Row/index.js +3 -0
  176. package/lib/SearchBar/index.js +6 -6
  177. package/lib/Select/TreeSelect.less +10 -0
  178. package/lib/Select/index.js +4 -0
  179. package/lib/SelectBackup/index.js +2 -2
  180. package/lib/SelectBackup/select/index.js +0 -1
  181. package/lib/SiderMenu/Item.js +2 -2
  182. package/lib/SiderMenu/index.js +3 -3
  183. package/lib/SimplePagination/index.js +3 -3
  184. package/lib/SingleSpa/import-html/process-tpl.js +0 -1
  185. package/lib/SingleSpa/index.js +2 -2
  186. package/lib/SingleSpa/singleSpa/single-spa.dev.js +2 -3
  187. package/lib/Skeleton/index.js +3 -0
  188. package/lib/Spin/Spin.less +16 -0
  189. package/lib/Spin/index.js +4 -0
  190. package/lib/Statistic/index.js +3 -0
  191. package/lib/Steps/Steps.less +502 -0
  192. package/lib/Steps/index.js +4 -0
  193. package/lib/Switch/Switch.less +62 -0
  194. package/lib/Switch/index.js +4 -0
  195. package/lib/Table/Table.less +306 -0
  196. package/lib/Table/index.js +4 -0
  197. package/lib/Tabs/index.js +2 -2
  198. package/lib/Tabs/index.less +3 -0
  199. package/lib/ThemeProvider/main.js +2 -2
  200. package/lib/TimePicker/index.js +3 -2
  201. package/lib/Transfer/index.js +3 -0
  202. package/lib/Tree/TreeSelect.less +10 -0
  203. package/lib/Tree/index.js +4 -0
  204. package/lib/TreeList/index.js +2 -2
  205. package/lib/TreeSelect/TreeSelect.less +10 -0
  206. package/lib/TreeSelect/index.js +4 -0
  207. package/lib/TreeSelect111/index.js +2 -2
  208. package/lib/TreeSelect111/utils/index.js +2 -2
  209. package/lib/Typography/index.js +3 -0
  210. package/lib/WangEditor/release/wangEditor.js +0 -6
  211. package/lib/WangEditor/wangEditor.js +0 -3
  212. package/lib/Watermark/index.js +2 -2
  213. package/lib/index.js +145 -0
  214. package/lib/message/index.js +3 -5
  215. package/lib/noticeManager/globalState.js +2 -2
  216. package/lib/portalNoticeManager/usePortalDispatchNotice.js +2 -2
  217. package/lib/useLocale/index.js +2 -2
  218. package/lib/version/index.js +3 -0
  219. package/package.json +2 -2
  220. /package/config/babel/{antdComs.js → antdComs-nouse.js} +0 -0
@@ -0,0 +1,306 @@
1
+ // .@{ant-prefix}-table-selection-column{
2
+ // padding-left: 24px;
3
+ // padding-right: 16px;
4
+ // }
5
+ // .@{ant-prefix}-table-thead{
6
+ // >tr:first-child{
7
+ // >th:first-child{
8
+ // padding-left: 24px;
9
+ // }
10
+ // >th:last-child{
11
+ // padding-right: 24px;
12
+ // }
13
+ // }
14
+ // }
15
+ // .@{ant-prefix}-table-tbody{
16
+ // >tr{
17
+ // >td:first-child{
18
+ // padding-left: 24px;
19
+ // }
20
+ // >td:last-child{
21
+ // padding-right: 24px;
22
+ // }
23
+ // }
24
+ // }
25
+ .@{ant-prefix}-table-placeholder{
26
+ border-bottom: none;
27
+ }
28
+
29
+ @table-prefix-cls: ~'@{ant-prefix}-table';
30
+
31
+ @table-padding-vertical-md: 8px; // ui规范
32
+ @table-padding-horizontal-md: 12px; // ui规范
33
+ @table-padding-vertical-sm: @table-padding-vertical / 2;
34
+ @table-padding-horizontal-sm: @table-padding-horizontal / 2;
35
+
36
+ // ui规范
37
+ .@{table-prefix-cls} {
38
+ line-height: 20px;
39
+ // 可展开层级列表
40
+ &-expand-icon-th,
41
+ &-row-expand-icon-cell {
42
+ width: 24px;
43
+ min-width: 24px;
44
+ }
45
+ &&-bordered{
46
+ .@{table-prefix-cls}-expand-icon-th,
47
+ .@{table-prefix-cls}-row-expand-icon-cell {
48
+ width: 36px;
49
+ min-width: 36px;
50
+ }
51
+ }
52
+ &:not(&-bordered){
53
+ .@{table-prefix-cls}-thead{
54
+ >tr{
55
+ >th{
56
+ &.react-resizable{
57
+ border-right: 2px solid #fff;
58
+ }
59
+ }
60
+ }
61
+ }
62
+ }
63
+ // ============================ Header ============================
64
+ &-thead {
65
+ > tr {
66
+ > th {
67
+ font-weight: 400;
68
+ &.@{table-prefix-cls}-expand-icon-th,&.@{table-prefix-cls}-selection-column {
69
+ border-right: 0;
70
+ }
71
+ &.@{table-prefix-cls}-column-has-actions {
72
+ &.@{table-prefix-cls}-column-has-filters {
73
+ &:hover {
74
+ .@{iconfont-css-prefix}-filter,
75
+ .@{table-prefix-cls}-filter-icon {
76
+ &:hover {
77
+ color: @primary-5;
78
+ }
79
+ }
80
+ }
81
+ }
82
+ }
83
+ }
84
+ }
85
+ }
86
+ &-header{
87
+ border-top-right-radius: @border-radius-base;
88
+ border-top-left-radius: @border-radius-base;
89
+ }
90
+ // ============================ Body ============================
91
+ &-tbody {
92
+ > tr {
93
+ > td{
94
+ &.@{table-prefix-cls}-row-expand-icon-cell,&.@{table-prefix-cls}-selection-column {
95
+ border-right : 0;
96
+ }
97
+ }
98
+ &.@{table-prefix-cls}-expanded-row {
99
+ > td:first-child{
100
+ border-right: 0;
101
+ }
102
+ }
103
+ }
104
+ }
105
+ &-tbody > tr.@{table-prefix-cls}-row-selected{
106
+ &:hover {
107
+ >td {
108
+ background: @table-row-hover-bg; // 符合UI规范,选中行仍然需要hover背景色
109
+ }
110
+ }
111
+ }
112
+
113
+ .@{table-prefix-cls}-column-sorter {
114
+ .@{table-prefix-cls}-column-sorter-inner {
115
+ &-full {
116
+ margin-top: -0.45em !important; // Fixed icon 不居中
117
+ }
118
+ }
119
+ }
120
+
121
+ &-placeholder {
122
+ padding: 0; // 空状态padding为0
123
+ display: flex;
124
+ justify-content: center;
125
+ align-items: center;
126
+ background-color: @body-background;
127
+ }
128
+
129
+ }
130
+
131
+
132
+
133
+ .@{table-prefix-cls}-middle {
134
+ > .@{table-prefix-cls}-title,
135
+ > .@{table-prefix-cls}-content > .@{table-prefix-cls}-footer {
136
+ padding: @table-padding-vertical-md @table-padding-horizontal-md;
137
+ }
138
+ > .@{table-prefix-cls}-content {
139
+ > .@{table-prefix-cls}-header > table,
140
+ > .@{table-prefix-cls}-body > table,
141
+ > .@{table-prefix-cls}-scroll > .@{table-prefix-cls}-header > table,
142
+ > .@{table-prefix-cls}-scroll > .@{table-prefix-cls}-body > table,
143
+ > .@{table-prefix-cls}-fixed-left > .@{table-prefix-cls}-header > table,
144
+ > .@{table-prefix-cls}-fixed-right > .@{table-prefix-cls}-header > table,
145
+ > .@{table-prefix-cls}-fixed-left
146
+ > .@{table-prefix-cls}-body-outer
147
+ > .@{table-prefix-cls}-body-inner
148
+ > table,
149
+ > .@{table-prefix-cls}-fixed-right
150
+ > .@{table-prefix-cls}-body-outer
151
+ > .@{table-prefix-cls}-body-inner
152
+ > table {
153
+ > .@{table-prefix-cls}-thead > tr > th,
154
+ > .@{table-prefix-cls}-tbody > tr > td {
155
+ padding: @table-padding-vertical-md @table-padding-horizontal-md;
156
+ }
157
+ }
158
+ }
159
+
160
+ tr.@{table-prefix-cls}-expanded-row td > .@{table-prefix-cls}-wrapper {
161
+ margin: -@table-padding-vertical-md -@table-padding-horizontal / 2 -@table-padding-vertical-md -
162
+ 1px;
163
+ }
164
+ }
165
+
166
+ .@{table-prefix-cls}-small {
167
+ border: @border-width-base @border-style-base @border-color-split;
168
+ border-radius: @table-border-radius-base;
169
+
170
+ > .@{table-prefix-cls}-title,
171
+ > .@{table-prefix-cls}-content > .@{table-prefix-cls}-footer {
172
+ padding: @table-padding-vertical-sm @table-padding-horizontal-sm;
173
+ }
174
+
175
+ > .@{table-prefix-cls}-title {
176
+ top: 0;
177
+ border-bottom: @border-width-base @border-style-base @border-color-split;
178
+ }
179
+
180
+ > .@{table-prefix-cls}-content > .@{table-prefix-cls}-footer {
181
+ background-color: transparent;
182
+ border-top: @border-width-base @border-style-base @border-color-split;
183
+ &::before {
184
+ background-color: transparent;
185
+ }
186
+ }
187
+
188
+ > .@{table-prefix-cls}-content {
189
+ > .@{table-prefix-cls}-body {
190
+ margin: 0 @table-padding-horizontal-sm;
191
+ }
192
+
193
+ > .@{table-prefix-cls}-header > table,
194
+ > .@{table-prefix-cls}-body > table,
195
+ > .@{table-prefix-cls}-scroll > .@{table-prefix-cls}-header > table,
196
+ > .@{table-prefix-cls}-scroll > .@{table-prefix-cls}-body > table,
197
+ > .@{table-prefix-cls}-fixed-left > .@{table-prefix-cls}-header > table,
198
+ > .@{table-prefix-cls}-fixed-right > .@{table-prefix-cls}-header > table,
199
+ > .@{table-prefix-cls}-fixed-left
200
+ > .@{table-prefix-cls}-body-outer
201
+ > .@{table-prefix-cls}-body-inner
202
+ > table,
203
+ > .@{table-prefix-cls}-fixed-right
204
+ > .@{table-prefix-cls}-body-outer
205
+ > .@{table-prefix-cls}-body-inner
206
+ > table {
207
+ border: 0;
208
+ > .@{table-prefix-cls}-thead > tr > th,
209
+ > .@{table-prefix-cls}-tbody > tr > td {
210
+ padding: @table-padding-vertical-sm @table-padding-horizontal-sm;
211
+ }
212
+ > .@{table-prefix-cls}-thead > tr > th {
213
+ background-color: @table-header-bg-sm;
214
+ }
215
+ > .@{table-prefix-cls}-thead > tr {
216
+ border-bottom: @border-width-base @border-style-base @border-color-split;
217
+ }
218
+ > .@{table-prefix-cls}-thead > tr > th.@{table-prefix-cls}-column-sort {
219
+ background-color: @table-body-sort-bg;
220
+ }
221
+ }
222
+
223
+ > .@{table-prefix-cls}-scroll > .@{table-prefix-cls}-header > table,
224
+ > .@{table-prefix-cls}-scroll > .@{table-prefix-cls}-body > table,
225
+ > .@{table-prefix-cls}-fixed-left > .@{table-prefix-cls}-header > table,
226
+ > .@{table-prefix-cls}-fixed-right > .@{table-prefix-cls}-header > table,
227
+ > .@{table-prefix-cls}-fixed-left
228
+ > .@{table-prefix-cls}-body-outer
229
+ > .@{table-prefix-cls}-body-inner
230
+ > table,
231
+ > .@{table-prefix-cls}-fixed-right
232
+ > .@{table-prefix-cls}-body-outer
233
+ > .@{table-prefix-cls}-body-inner
234
+ > table {
235
+ padding: 0;
236
+ }
237
+
238
+ .@{table-prefix-cls}-header {
239
+ background-color: @table-header-bg-sm;
240
+ border-radius: @table-border-radius-base @table-border-radius-base 0 0;
241
+ }
242
+
243
+ .@{table-prefix-cls}-placeholder,
244
+ .@{table-prefix-cls}-row:last-child td {
245
+ border-bottom: 0;
246
+ }
247
+ }
248
+
249
+ &.@{table-prefix-cls}-bordered {
250
+ border-right: 0;
251
+
252
+ .@{table-prefix-cls}-title {
253
+ border: 0;
254
+ border-right: @border-width-base @border-style-base @border-color-split;
255
+ border-bottom: @border-width-base @border-style-base @border-color-split;
256
+ }
257
+
258
+ .@{table-prefix-cls}-content {
259
+ border-right: @border-width-base @border-style-base @border-color-split;
260
+ }
261
+
262
+ .@{table-prefix-cls}-footer {
263
+ border: 0;
264
+ border-top: @border-width-base @border-style-base @border-color-split;
265
+ &::before {
266
+ display: none;
267
+ }
268
+ }
269
+
270
+ .@{table-prefix-cls}-placeholder {
271
+ border-right: 0;
272
+ border-bottom: 0;
273
+ border-left: 0;
274
+ }
275
+
276
+ .@{table-prefix-cls}-thead > tr > th.@{table-prefix-cls}-row-cell-last,
277
+ .@{table-prefix-cls}-tbody > tr > td:last-child {
278
+ border-right: none;
279
+ }
280
+
281
+ .@{table-prefix-cls}-fixed-left {
282
+ .@{table-prefix-cls}-thead > tr > th:last-child,
283
+ .@{table-prefix-cls}-tbody > tr > td:last-child {
284
+ border-right: @border-width-base @border-style-base @border-color-split;
285
+ }
286
+ }
287
+
288
+ .@{table-prefix-cls}-fixed-right {
289
+ border-right: @border-width-base @border-style-base @border-color-split;
290
+ border-left: @border-width-base @border-style-base @border-color-split;
291
+ }
292
+ }
293
+
294
+ tr.@{table-prefix-cls}-expanded-row td > .@{table-prefix-cls}-wrapper {
295
+ margin: -@table-padding-vertical-sm -@table-padding-horizontal / 2 -@table-padding-vertical-sm -
296
+ 1px;
297
+ }
298
+
299
+ // https://github.com/ant-design/ant-design/issues/19287#issuecomment-544368967
300
+ &.@{table-prefix-cls}-fixed-header
301
+ > .@{table-prefix-cls}-content
302
+ > .@{table-prefix-cls}-scroll
303
+ > .@{table-prefix-cls}-body {
304
+ border-radius: 0 0 @table-border-radius-base @table-border-radius-base;
305
+ }
306
+ }
@@ -0,0 +1,4 @@
1
+ import "antd/es/table/style";
2
+ import _Table from "antd/es/table";
3
+ import './Table.less';
4
+ export default _Table;
package/lib/Tabs/index.js CHANGED
@@ -4,8 +4,8 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
4
4
  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; }
5
5
  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; }
6
6
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
8
+ 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); }
9
9
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10
10
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11
11
  /*
@@ -68,6 +68,9 @@
68
68
  }
69
69
  }
70
70
  }
71
+ .@{tab-prefix-cls}-content-holder{
72
+ flex: 1; // 修复低版本谷歌浏览器Tabs使用flex:auto特殊情况高度异常问题
73
+ }
71
74
  }
72
75
  .@{tab-prefix-cls}-card {
73
76
  > .@{tab-prefix-cls}-nav,
@@ -4,8 +4,8 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
4
4
  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; }
5
5
  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; }
6
6
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
8
+ 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); }
9
9
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
10
10
  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."); }
11
11
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -1,2 +1,3 @@
1
- import TimePicker from '../DatePicker/TimePicker';
2
- export default TimePicker;
1
+ import "@chaoswise/ui/lib/DatePicker/index.less";
2
+ import _DatePicker from "@chaoswise/ui/lib/DatePicker";
3
+ export default _DatePicker.TimePicker;
@@ -0,0 +1,3 @@
1
+ import "antd/es/transfer/style";
2
+ import _Transfer from "antd/es/transfer";
3
+ export default _Transfer;
@@ -0,0 +1,10 @@
1
+ @select-prefix-cls: ~'@{ant-prefix}-select';
2
+ @select-tree-prefix-cls: ~'@{ant-prefix}-select-tree';
3
+
4
+ .@{select-prefix-cls}-tree-dropdown {
5
+ .@{select-prefix-cls}-dropdown-search {
6
+ .@{select-prefix-cls}-search__field{
7
+ background: transparent;
8
+ }
9
+ }
10
+ }
@@ -0,0 +1,4 @@
1
+ import "antd/es/tree-select/style";
2
+ import _TreeSelect from "antd/es/tree-select";
3
+ import './TreeSelect.less';
4
+ export default _TreeSelect;
@@ -6,8 +6,8 @@ import _Spin from "antd/es/spin";
6
6
  import "antd/es/icon/style";
7
7
  import _Icon from "antd/es/icon";
8
8
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
10
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
9
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
10
+ 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); }
11
11
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
12
12
  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."); }
13
13
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -0,0 +1,10 @@
1
+ @select-prefix-cls: ~'@{ant-prefix}-select';
2
+ @select-tree-prefix-cls: ~'@{ant-prefix}-select-tree';
3
+
4
+ .@{select-prefix-cls}-tree-dropdown {
5
+ .@{select-prefix-cls}-dropdown-search {
6
+ .@{select-prefix-cls}-search__field{
7
+ background: transparent;
8
+ }
9
+ }
10
+ }
@@ -0,0 +1,4 @@
1
+ import "antd/es/tree-select/style";
2
+ import _TreeSelect from "antd/es/tree-select";
3
+ import './TreeSelect.less';
4
+ export default _TreeSelect;
@@ -11,8 +11,8 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
11
11
  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; }
12
12
  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; }
13
13
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
14
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
15
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
15
+ 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); }
16
16
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
17
17
  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."); }
18
18
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -5,8 +5,8 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
5
5
  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; }
6
6
  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; }
7
7
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
9
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
8
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
9
+ 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); }
10
10
  /*
11
11
  * @Author: andrew.qiao andrew.qiao@cloudwise.com
12
12
  * @Date: 2023-02-14 12:00:14
@@ -0,0 +1,3 @@
1
+ import "antd/es/typography/style";
2
+ import _Typography from "antd/es/typography";
3
+ export default _Typography;
@@ -378,7 +378,6 @@ require('../index.less');
378
378
  var elem = this[0];
379
379
  return elem.getBoundingClientRect(); // 可得到 bottom height left right top width 的数据
380
380
  },
381
-
382
381
  // 封装 nodeName
383
382
  getNodeName: function getNodeName() {
384
383
  var elem = this[0];
@@ -583,14 +582,12 @@ require('../index.less');
583
582
  return true; // 返回 true 即表示成功
584
583
  // return '校验失败' // 返回字符串即表示失败的提示信息
585
584
  },
586
-
587
585
  // 插入网络图片的校验
588
586
  linkImgCheck: function linkImgCheck(src) {
589
587
  // src 即图片的地址
590
588
  return true; // 返回 true 即表示成功
591
589
  // return '校验失败' // 返回字符串即表示失败的提示信息
592
590
  },
593
-
594
591
  // 粘贴过滤样式,默认开启
595
592
  pasteFilterStyle: true,
596
593
  // 粘贴内容时,忽略图片。默认关闭
@@ -5243,7 +5240,6 @@ require('../index.less');
5243
5240
  this.selection.createRangeByElem($last, false, true);
5244
5241
  // this.selection.restoreSelection();
5245
5242
  },
5246
-
5247
5243
  // 绑定事件
5248
5244
  _bindEvent: function _bindEvent() {
5249
5245
  // -------- 绑定 onchange 事件 --------
@@ -5319,7 +5315,6 @@ require('../index.less');
5319
5315
  // var msg = "lusty-_toolClickFocus-工具栏聚焦-" + (type?type:"");
5320
5316
  // console.log(msg,this.isFocus);
5321
5317
  },
5322
-
5323
5318
  // 创建编辑器
5324
5319
  create: function create() {
5325
5320
  // 初始化配置信息
@@ -5358,7 +5353,6 @@ require('../index.less');
5358
5353
  // 解绑所有事件
5359
5354
  // this._offAllEvent();
5360
5355
  },
5361
-
5362
5356
  // 解绑所有事件(暂时不对外开放)
5363
5357
  _offAllEvent: function _offAllEvent() {
5364
5358
  // console.log("lusty-_offAllEvent-解绑所有事件");
@@ -406,7 +406,6 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
406
406
  var elem = this[0];
407
407
  return elem.getBoundingClientRect(); // 可得到 bottom height left right top width 的数据
408
408
  },
409
-
410
409
  // 封装 nodeName
411
410
  getNodeName: function getNodeName() {
412
411
  var elem = this[0];
@@ -583,14 +582,12 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
583
582
  // 返回 true 即表示成功
584
583
  // return '校验失败' // 返回字符串即表示失败的提示信息
585
584
  },
586
-
587
585
  // 插入网络图片的校验
588
586
  linkImgCheck: function linkImgCheck(src) {
589
587
  // src 即图片的地址
590
588
  return true; // 返回 true 即表示成功
591
589
  // return '校验失败' // 返回字符串即表示失败的提示信息
592
590
  },
593
-
594
591
  // 粘贴过滤样式,默认开启
595
592
  pasteFilterStyle: true,
596
593
  // 粘贴内容时,忽略图片。默认关闭
@@ -224,9 +224,9 @@ var Watermark = function Watermark(props) {
224
224
  };
225
225
  }, []);
226
226
  // ============================= Render =============================
227
- var childNode = inherit ? /*#__PURE__*/React.createElement(WatermarkContext.Provider, {
227
+ var childNode = inherit ? ( /*#__PURE__*/React.createElement(WatermarkContext.Provider, {
228
228
  value: watermarkContext
229
- }, children) : children;
229
+ }, children)) : children;
230
230
  return /*#__PURE__*/React.createElement("div", {
231
231
  ref: setContainer,
232
232
  className: classNames(className, rootClassName),