@aloudata/aloudata-design 0.2.0-beta.9 → 0.2.3

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 (318) hide show
  1. package/README.md +188 -51
  2. package/es/Alert/index.d.ts +4 -0
  3. package/es/Alert/index.js +3 -0
  4. package/es/Alert/style/index.d.ts +2 -0
  5. package/es/Alert/style/index.js +2 -0
  6. package/es/Alert/style/index.less +1 -0
  7. package/es/Button/index.js +1 -1
  8. package/es/Button/style/index.less +90 -50
  9. package/es/Checkbox/index.d.ts +11 -0
  10. package/es/Checkbox/index.js +32 -0
  11. package/es/Checkbox/style/index.d.ts +2 -0
  12. package/es/Checkbox/style/index.js +2 -0
  13. package/es/Checkbox/style/index.less +79 -0
  14. package/es/Col/index.d.ts +4 -0
  15. package/es/Col/index.js +3 -0
  16. package/es/Col/style/index.d.ts +2 -0
  17. package/es/Col/style/index.js +2 -0
  18. package/es/Col/style/index.less +1 -0
  19. package/es/ConfigProvider/index.d.ts +3 -0
  20. package/es/ConfigProvider/index.js +3 -0
  21. package/es/ConfigProvider/style/index.d.ts +2 -0
  22. package/es/ConfigProvider/style/index.js +2 -0
  23. package/es/ConfigProvider/style/index.less +1 -0
  24. package/es/DatePicker/index.d.ts +4 -0
  25. package/es/DatePicker/index.js +3 -0
  26. package/es/DatePicker/style/index.d.ts +2 -0
  27. package/es/DatePicker/style/index.js +2 -0
  28. package/es/DatePicker/style/index.less +1 -0
  29. package/es/Divider/index.d.ts +3 -0
  30. package/es/Divider/index.js +3 -0
  31. package/es/Divider/style/index.d.ts +2 -0
  32. package/es/Divider/style/index.js +2 -0
  33. package/es/Divider/style/index.less +1 -0
  34. package/es/Dropdown/Button.d.ts +1 -0
  35. package/es/Dropdown/Button.js +3 -8
  36. package/es/Dropdown/index.d.ts +27 -0
  37. package/es/Dropdown/index.js +1 -7
  38. package/es/Dropdown/style/index.d.ts +1 -0
  39. package/es/Dropdown/style/index.js +1 -0
  40. package/es/Empty/style/index.less +6 -6
  41. package/es/Form/index.d.ts +8 -0
  42. package/es/Form/index.js +3 -0
  43. package/es/Form/style/index.d.ts +2 -0
  44. package/es/Form/style/index.js +2 -0
  45. package/es/Form/style/index.less +1 -0
  46. package/es/Icon/index.d.ts +3 -0
  47. package/es/Icon/index.js +3 -2
  48. package/es/Input/components/Group/index.d.ts +1 -2
  49. package/es/Input/components/Group/index.js +1 -7
  50. package/es/Input/components/Input/index.d.ts +67 -0
  51. package/es/Input/components/Input/index.js +32 -0
  52. package/es/Input/components/Password/index.d.ts +5 -5
  53. package/es/Input/components/Password/index.js +6 -11
  54. package/es/Input/components/TextArea/index.d.ts +10 -4
  55. package/es/Input/components/TextArea/index.js +13 -9
  56. package/es/Input/index.d.ts +14 -62
  57. package/es/Input/index.js +4 -40
  58. package/es/Input/style/index.d.ts +1 -0
  59. package/es/Input/style/index.js +1 -0
  60. package/es/Input/style/index.less +40 -10
  61. package/es/Layout/index.d.ts +4 -0
  62. package/es/Layout/index.js +3 -0
  63. package/es/Layout/style/index.d.ts +2 -0
  64. package/es/Layout/style/index.js +2 -0
  65. package/es/Layout/style/index.less +1 -0
  66. package/es/Menu/Divider.js +1 -8
  67. package/es/Menu/MenuItem.d.ts +7 -1
  68. package/es/Menu/MenuItem.js +1 -8
  69. package/es/Menu/SubMenu.js +1 -7
  70. package/es/Menu/index.js +1 -7
  71. package/es/Menu/style/index.d.ts +1 -0
  72. package/es/Menu/style/index.js +1 -0
  73. package/es/Menu/style/index.less +9 -5
  74. package/es/Message/index.d.ts +4 -0
  75. package/es/Message/index.js +3 -0
  76. package/es/Message/style/index.d.ts +2 -0
  77. package/es/Message/style/index.js +2 -0
  78. package/es/Message/style/index.less +1 -0
  79. package/es/Navigator/components/Menu/index.js +2 -2
  80. package/es/Notification/index.d.ts +3 -0
  81. package/es/Notification/index.js +3 -0
  82. package/es/Notification/style/index.d.ts +2 -0
  83. package/es/Notification/style/index.js +2 -0
  84. package/es/Notification/style/index.less +1 -0
  85. package/es/Radio/index.d.ts +4 -0
  86. package/es/Radio/index.js +3 -0
  87. package/es/Radio/style/index.d.ts +2 -0
  88. package/es/Radio/style/index.js +2 -0
  89. package/es/Radio/style/index.less +1 -0
  90. package/es/Row/index.d.ts +3 -0
  91. package/es/Row/index.js +3 -0
  92. package/es/Row/style/index.d.ts +2 -0
  93. package/es/Row/style/index.js +2 -0
  94. package/es/Row/style/index.less +1 -0
  95. package/es/Select/BaseSelect.js +18 -5
  96. package/es/Select/OptionsList/OptionItem/RenderLabelIcon.d.ts +3 -1
  97. package/es/Select/OptionsList/OptionItem/RenderLabelIcon.js +1 -0
  98. package/es/Select/OptionsList/index.js +14 -25
  99. package/es/Select/Selector/index.js +14 -14
  100. package/es/Select/interface.d.ts +10 -2
  101. package/es/Select/style/index.less +63 -30
  102. package/es/Skeleton/index.d.ts +3 -0
  103. package/es/Skeleton/index.js +2 -0
  104. package/es/Skeleton/style/index.d.ts +2 -0
  105. package/es/Skeleton/style/index.js +2 -0
  106. package/es/Skeleton/style/index.less +1 -0
  107. package/es/Space/index.d.ts +4 -0
  108. package/es/Space/index.js +3 -0
  109. package/es/Space/style/index.d.ts +2 -0
  110. package/es/Space/style/index.js +2 -0
  111. package/es/Space/style/index.less +1 -0
  112. package/es/Spin/index.d.ts +4 -0
  113. package/es/Spin/index.js +2 -0
  114. package/es/Spin/style/index.d.ts +2 -0
  115. package/es/Spin/style/index.js +2 -0
  116. package/es/Spin/style/index.less +1 -0
  117. package/es/Steps/index.d.ts +3 -0
  118. package/es/Steps/index.js +2 -0
  119. package/es/Steps/style/index.d.ts +2 -0
  120. package/es/Steps/style/index.js +2 -0
  121. package/es/Steps/style/index.less +1 -0
  122. package/es/Switch/index.d.ts +4 -0
  123. package/es/Switch/index.js +2 -0
  124. package/es/Switch/style/index.d.ts +2 -0
  125. package/es/Switch/style/index.js +2 -0
  126. package/es/Switch/style/index.less +1 -0
  127. package/es/Table/index.d.ts +3 -3
  128. package/es/Table/index.js +255 -142
  129. package/es/Table/interface.d.ts +10 -4
  130. package/es/Table/react-table-config.d.ts +45 -45
  131. package/es/Table/style/index.less +88 -40
  132. package/es/Tabs/TabPane.js +1 -7
  133. package/es/Tabs/index.d.ts +5 -0
  134. package/es/Tabs/index.js +7 -4
  135. package/es/Tabs/style/index.d.ts +1 -0
  136. package/es/Tabs/style/index.js +1 -0
  137. package/es/Tabs/style/index.less +9 -2
  138. package/es/Tooltip/style/index.less +1 -1
  139. package/es/Tree/index.d.ts +5 -0
  140. package/es/Tree/index.js +2 -0
  141. package/es/Tree/style/index.d.ts +2 -0
  142. package/es/Tree/style/index.js +2 -0
  143. package/es/Tree/style/index.less +1 -0
  144. package/es/Typography/index.d.ts +3 -0
  145. package/es/Typography/index.js +3 -0
  146. package/es/Typography/style/index.d.ts +2 -0
  147. package/es/Typography/style/index.js +2 -0
  148. package/es/Typography/style/index.less +1 -0
  149. package/es/Upload/index.d.ts +4 -0
  150. package/es/Upload/index.js +3 -0
  151. package/es/Upload/style/index.d.ts +2 -0
  152. package/es/Upload/style/index.js +2 -0
  153. package/es/Upload/style/index.less +1 -0
  154. package/es/_utils/hooks/useControlledState.d.ts +1 -1
  155. package/es/_utils/hooks/useControlledState.js +11 -11
  156. package/es/index.d.ts +39 -1
  157. package/es/index.js +21 -1
  158. package/es/locale/zh_CN.d.ts +2 -0
  159. package/es/locale/zh_CN.js +2 -0
  160. package/lib/Alert/index.d.ts +4 -0
  161. package/lib/Alert/index.js +15 -0
  162. package/lib/Alert/style/index.d.ts +2 -0
  163. package/lib/Alert/style/index.js +5 -0
  164. package/lib/Alert/style/index.less +1 -0
  165. package/lib/Button/index.js +1 -1
  166. package/lib/Button/style/index.less +90 -50
  167. package/lib/Checkbox/index.d.ts +11 -0
  168. package/lib/Checkbox/index.js +46 -0
  169. package/lib/Checkbox/style/index.d.ts +2 -0
  170. package/lib/Checkbox/style/index.js +5 -0
  171. package/lib/Checkbox/style/index.less +79 -0
  172. package/lib/Col/index.d.ts +4 -0
  173. package/lib/Col/index.js +15 -0
  174. package/lib/Col/style/index.d.ts +2 -0
  175. package/lib/Col/style/index.js +5 -0
  176. package/lib/Col/style/index.less +1 -0
  177. package/lib/ConfigProvider/index.d.ts +3 -0
  178. package/lib/ConfigProvider/index.js +15 -0
  179. package/lib/ConfigProvider/style/index.d.ts +2 -0
  180. package/lib/ConfigProvider/style/index.js +5 -0
  181. package/lib/ConfigProvider/style/index.less +1 -0
  182. package/lib/DatePicker/index.d.ts +4 -0
  183. package/lib/DatePicker/index.js +15 -0
  184. package/lib/DatePicker/style/index.d.ts +2 -0
  185. package/lib/DatePicker/style/index.js +5 -0
  186. package/lib/DatePicker/style/index.less +1 -0
  187. package/lib/Divider/index.d.ts +3 -0
  188. package/lib/Divider/index.js +15 -0
  189. package/lib/Divider/style/index.d.ts +2 -0
  190. package/lib/Divider/style/index.js +5 -0
  191. package/lib/Divider/style/index.less +1 -0
  192. package/lib/Dropdown/Button.d.ts +1 -0
  193. package/lib/Dropdown/Button.js +3 -7
  194. package/lib/Dropdown/index.d.ts +27 -0
  195. package/lib/Dropdown/index.js +1 -7
  196. package/lib/Dropdown/style/index.d.ts +1 -0
  197. package/lib/Dropdown/style/index.js +2 -0
  198. package/lib/Empty/style/index.less +6 -6
  199. package/lib/Form/index.d.ts +8 -0
  200. package/lib/Form/index.js +15 -0
  201. package/lib/Form/style/index.d.ts +2 -0
  202. package/lib/Form/style/index.js +5 -0
  203. package/lib/Form/style/index.less +1 -0
  204. package/lib/Icon/index.d.ts +3 -0
  205. package/lib/Icon/index.js +7 -1
  206. package/lib/Input/components/Group/index.d.ts +1 -2
  207. package/lib/Input/components/Group/index.js +1 -7
  208. package/lib/Input/components/Input/index.d.ts +67 -0
  209. package/lib/Input/components/Input/index.js +45 -0
  210. package/lib/Input/components/Password/index.d.ts +5 -5
  211. package/lib/Input/components/Password/index.js +10 -14
  212. package/lib/Input/components/TextArea/index.d.ts +10 -4
  213. package/lib/Input/components/TextArea/index.js +16 -11
  214. package/lib/Input/index.d.ts +14 -62
  215. package/lib/Input/index.js +4 -42
  216. package/lib/Input/style/index.d.ts +1 -0
  217. package/lib/Input/style/index.js +2 -0
  218. package/lib/Input/style/index.less +40 -10
  219. package/lib/Layout/index.d.ts +4 -0
  220. package/lib/Layout/index.js +15 -0
  221. package/lib/Layout/style/index.d.ts +2 -0
  222. package/lib/Layout/style/index.js +5 -0
  223. package/lib/Layout/style/index.less +1 -0
  224. package/lib/Menu/Divider.js +1 -7
  225. package/lib/Menu/MenuItem.d.ts +7 -1
  226. package/lib/Menu/MenuItem.js +1 -7
  227. package/lib/Menu/SubMenu.js +1 -7
  228. package/lib/Menu/index.js +1 -7
  229. package/lib/Menu/style/index.d.ts +1 -0
  230. package/lib/Menu/style/index.js +2 -0
  231. package/lib/Menu/style/index.less +9 -5
  232. package/lib/Message/index.d.ts +4 -0
  233. package/lib/Message/index.js +15 -0
  234. package/lib/Message/style/index.d.ts +2 -0
  235. package/lib/Message/style/index.js +5 -0
  236. package/lib/Message/style/index.less +1 -0
  237. package/lib/Navigator/components/Menu/index.js +2 -2
  238. package/lib/Notification/index.d.ts +3 -0
  239. package/lib/Notification/index.js +15 -0
  240. package/lib/Notification/style/index.d.ts +2 -0
  241. package/lib/Notification/style/index.js +5 -0
  242. package/lib/Notification/style/index.less +1 -0
  243. package/lib/Radio/index.d.ts +4 -0
  244. package/lib/Radio/index.js +15 -0
  245. package/lib/Radio/style/index.d.ts +2 -0
  246. package/lib/Radio/style/index.js +5 -0
  247. package/lib/Radio/style/index.less +1 -0
  248. package/lib/Row/index.d.ts +3 -0
  249. package/lib/Row/index.js +15 -0
  250. package/lib/Row/style/index.d.ts +2 -0
  251. package/lib/Row/style/index.js +5 -0
  252. package/lib/Row/style/index.less +1 -0
  253. package/lib/Select/BaseSelect.js +18 -5
  254. package/lib/Select/OptionsList/OptionItem/RenderLabelIcon.d.ts +3 -1
  255. package/lib/Select/OptionsList/OptionItem/RenderLabelIcon.js +2 -0
  256. package/lib/Select/OptionsList/index.js +13 -25
  257. package/lib/Select/Selector/index.js +14 -14
  258. package/lib/Select/interface.d.ts +10 -2
  259. package/lib/Select/style/index.less +63 -30
  260. package/lib/Skeleton/index.d.ts +3 -0
  261. package/lib/Skeleton/index.js +13 -0
  262. package/lib/Skeleton/style/index.d.ts +2 -0
  263. package/lib/Skeleton/style/index.js +5 -0
  264. package/lib/Skeleton/style/index.less +1 -0
  265. package/lib/Space/index.d.ts +4 -0
  266. package/lib/Space/index.js +23 -0
  267. package/lib/Space/style/index.d.ts +2 -0
  268. package/lib/Space/style/index.js +5 -0
  269. package/lib/Space/style/index.less +1 -0
  270. package/lib/Spin/index.d.ts +4 -0
  271. package/lib/Spin/index.js +13 -0
  272. package/lib/Spin/style/index.d.ts +2 -0
  273. package/lib/Spin/style/index.js +5 -0
  274. package/lib/Spin/style/index.less +1 -0
  275. package/lib/Steps/index.d.ts +3 -0
  276. package/lib/Steps/index.js +13 -0
  277. package/lib/Steps/style/index.d.ts +2 -0
  278. package/lib/Steps/style/index.js +5 -0
  279. package/lib/Steps/style/index.less +1 -0
  280. package/lib/Switch/index.d.ts +4 -0
  281. package/lib/Switch/index.js +13 -0
  282. package/lib/Switch/style/index.d.ts +2 -0
  283. package/lib/Switch/style/index.js +5 -0
  284. package/lib/Switch/style/index.less +1 -0
  285. package/lib/Table/index.d.ts +3 -3
  286. package/lib/Table/index.js +264 -150
  287. package/lib/Table/interface.d.ts +10 -4
  288. package/lib/Table/react-table-config.d.ts +45 -45
  289. package/lib/Table/style/index.less +88 -40
  290. package/lib/Tabs/TabPane.js +1 -7
  291. package/lib/Tabs/index.d.ts +5 -0
  292. package/lib/Tabs/index.js +7 -4
  293. package/lib/Tabs/style/index.d.ts +1 -0
  294. package/lib/Tabs/style/index.js +2 -0
  295. package/lib/Tabs/style/index.less +9 -2
  296. package/lib/Tooltip/style/index.less +1 -1
  297. package/lib/Tree/index.d.ts +5 -0
  298. package/lib/Tree/index.js +13 -0
  299. package/lib/Tree/style/index.d.ts +2 -0
  300. package/lib/Tree/style/index.js +5 -0
  301. package/lib/Tree/style/index.less +1 -0
  302. package/lib/Typography/index.d.ts +3 -0
  303. package/lib/Typography/index.js +15 -0
  304. package/lib/Typography/style/index.d.ts +2 -0
  305. package/lib/Typography/style/index.js +5 -0
  306. package/lib/Typography/style/index.less +1 -0
  307. package/lib/Upload/index.d.ts +4 -0
  308. package/lib/Upload/index.js +15 -0
  309. package/lib/Upload/style/index.d.ts +2 -0
  310. package/lib/Upload/style/index.js +5 -0
  311. package/lib/Upload/style/index.less +1 -0
  312. package/lib/_utils/hooks/useControlledState.d.ts +1 -1
  313. package/lib/_utils/hooks/useControlledState.js +11 -11
  314. package/lib/index.d.ts +39 -1
  315. package/lib/index.js +160 -0
  316. package/lib/locale/zh_CN.d.ts +2 -0
  317. package/lib/locale/zh_CN.js +13 -0
  318. package/package.json +15 -4
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
 
3
+ require("antd/lib/input/style");
4
+
3
5
  require("../../style");
4
6
 
5
7
  require("./index.less");
@@ -1,12 +1,14 @@
1
1
  @import '../../style/index.less';
2
2
  @import '../../Icon/index.less';
3
3
 
4
- @ald-prefix:ant;
4
+ @ald-prefix: ant;
5
5
 
6
- @ald-iconfont-css-prefix:anticon;
6
+ @ald-iconfont-css-prefix: anticon;
7
7
 
8
8
  .ant-input {
9
+ height: 28px;
9
10
  color: @NL0;
11
+ font-size: 12px;
10
12
  border-radius: @border-radius-base;
11
13
 
12
14
  &::placeholder {
@@ -15,6 +17,9 @@
15
17
 
16
18
  &-prefix {
17
19
  color: @NL30;
20
+ font-weight: 400;
21
+ font-size: 12px;
22
+ line-height: 16px;
18
23
  }
19
24
 
20
25
  &-suffix {
@@ -28,9 +33,9 @@
28
33
  }
29
34
 
30
35
  &[disabled] {
31
- border-color: @NL90;
32
- background-color: @NL95;
33
36
  color: @NL80;
37
+ background-color: @NL95;
38
+ border-color: @NL90;
34
39
 
35
40
  &::placeholder {
36
41
  color: @NL80;
@@ -38,10 +43,19 @@
38
43
  }
39
44
 
40
45
  &-sm {
46
+ height: 24px;
47
+ font-size: 12px;
41
48
  border-radius: @border-radius-sm;
42
49
  }
43
50
 
51
+ &-lg {
52
+ height: 32px;
53
+ font-size: 14px;
54
+ }
55
+
44
56
  &-affix-wrapper {
57
+ height: 28px;
58
+ padding: 0 12px;
45
59
  border-radius: @border-radius-base;
46
60
 
47
61
  &-hover,
@@ -51,17 +65,33 @@
51
65
  }
52
66
 
53
67
  .ant-input {
68
+ height: 100%;
54
69
  border-radius: 0;
55
70
  caret-color: @B40;
56
71
  }
72
+ }
73
+ }
57
74
 
58
- &-sm {
59
- border-radius: @border-radius-sm;
75
+ .ant-input-affix-wrapper.ant-input-affix-wrapper {
76
+ &-lg {
77
+ height: 32px;
78
+ padding: 4px 11px;
79
+ font-size: 14px;
80
+ }
81
+
82
+ &-sm {
83
+ height: 24px;
84
+ padding: 0 12px;
85
+ border-radius: @border-radius-sm;
86
+
87
+ .ant-input-sm {
88
+ height: 22px;
60
89
  }
61
90
  }
62
- }
63
- .@{ald-iconfont-css-prefix} {
64
- &.@{ald-iconfont-css-prefix}-close-circle, &.ant-clear-icon {
65
- .ald-iconfont('\e616');
91
+
92
+ .ant-input-suffix {
93
+ .anticon-close-circle.ant-input-clear-icon {
94
+ .ald-iconfont('\e616');
95
+ }
66
96
  }
67
97
  }
@@ -0,0 +1,4 @@
1
+ import { Layout, SiderProps } from 'antd';
2
+ export type { LayoutProps } from 'antd/lib/layout';
3
+ export type { SiderProps };
4
+ export default Layout;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ require("antd/es/layout/style");
9
+
10
+ var _layout = _interopRequireDefault(require("antd/es/layout"));
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+
14
+ var _default = _layout.default;
15
+ exports.default = _default;
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ require("../../style");
4
+
5
+ require("./index.less");
@@ -0,0 +1 @@
1
+ @import '../../style/index.less';
@@ -13,14 +13,8 @@ var _react = _interopRequireDefault(require("react"));
13
13
 
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
15
 
16
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
17
-
18
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
19
-
20
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
21
-
22
16
  var AntdMenuDivider = _menu.default.Divider;
23
17
 
24
18
  function Menu(props) {
25
- return /*#__PURE__*/_react.default.createElement(AntdMenuDivider, _objectSpread({}, props));
19
+ return /*#__PURE__*/_react.default.createElement(AntdMenuDivider, Object.assign({}, props));
26
20
  }
@@ -6,7 +6,7 @@ export interface IMenuItemProps {
6
6
  * @type string | number
7
7
  * @default -
8
8
  */
9
- key: React.Key;
9
+ key?: React.Key;
10
10
  /**
11
11
  * @description 是否禁用
12
12
  * @default false
@@ -18,6 +18,12 @@ export interface IMenuItemProps {
18
18
  * @default -
19
19
  */
20
20
  onClick?: MenuClickEventHandler;
21
+ /**
22
+ * @description 类名
23
+ * @type string
24
+ * @default -
25
+ */
26
+ className?: string;
21
27
  children?: React.ReactNode;
22
28
  }
23
29
  export default function Menu(props: IMenuItemProps): JSX.Element;
@@ -13,14 +13,8 @@ var _react = _interopRequireDefault(require("react"));
13
13
 
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
15
 
16
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
17
-
18
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
19
-
20
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
21
-
22
16
  var AntdMenuItem = _menu.default.Item;
23
17
 
24
18
  function Menu(props) {
25
- return /*#__PURE__*/_react.default.createElement(AntdMenuItem, _objectSpread({}, props));
19
+ return /*#__PURE__*/_react.default.createElement(AntdMenuItem, Object.assign({}, props));
26
20
  }
@@ -17,12 +17,6 @@ var _excluded = ["popupClassName"];
17
17
 
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
19
 
20
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
21
-
22
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
23
-
24
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
25
-
26
20
  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; }
27
21
 
28
22
  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; }
@@ -35,7 +29,7 @@ function SubMenu(props) {
35
29
 
36
30
  var OFFSET_WIDTH = 4;
37
31
  var OFFSET_HEIGHT = 0;
38
- return /*#__PURE__*/_react.default.createElement(AntdSubMenu, _objectSpread({
32
+ return /*#__PURE__*/_react.default.createElement(AntdSubMenu, Object.assign({
39
33
  popupClassName: (0, _classnames.default)(popupClassName, 'ald-submenu'),
40
34
  popupOffset: [OFFSET_WIDTH, OFFSET_HEIGHT]
41
35
  }, otherProps));
package/lib/Menu/index.js CHANGED
@@ -23,12 +23,6 @@ var _excluded = ["className"];
23
23
 
24
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
25
 
26
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
27
-
28
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
29
-
30
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
31
-
32
26
  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; }
33
27
 
34
28
  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; }
@@ -37,7 +31,7 @@ function Menu(props) {
37
31
  var className = props.className,
38
32
  otherProps = _objectWithoutProperties(props, _excluded);
39
33
 
40
- return /*#__PURE__*/_react.default.createElement(_menu.default, _objectSpread({
34
+ return /*#__PURE__*/_react.default.createElement(_menu.default, Object.assign({
41
35
  className: (0, _classnames.default)(className, 'ald-menu')
42
36
  }, otherProps));
43
37
  }
@@ -1,2 +1,3 @@
1
+ import 'antd/lib/menu/style';
1
2
  import '../../style';
2
3
  import './index.less';
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
 
3
+ require("antd/lib/menu/style");
4
+
3
5
  require("../../style");
4
6
 
5
7
  require("./index.less");
@@ -2,10 +2,10 @@
2
2
  @import '../../Icon/index.less';
3
3
 
4
4
  .menu-popup {
5
+ background: @BG100;
5
6
  border: 1px solid @NL95;
6
- box-shadow: @shadow-actionsheet;
7
7
  border-radius: @border-radius-base;
8
- background: @BG100;
8
+ box-shadow: @shadow-actionsheet;
9
9
  }
10
10
 
11
11
  .ald-menu,
@@ -18,16 +18,20 @@
18
18
  }
19
19
 
20
20
  .ald-iconfont {
21
- font-family: @icon-font !important;
22
21
  font-size: 16px;
22
+ font-family: @icon-font !important;
23
23
  font-style: normal;
24
24
  -webkit-font-smoothing: antialiased;
25
25
  -moz-osx-font-smoothing: grayscale;
26
26
  }
27
27
 
28
28
  // 替换二级菜单箭头icon
29
- .ant-dropdown-menu-item .ant-dropdown-menu-submenu-expand-icon .ant-dropdown-menu-submenu-arrow-icon,
30
- .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-expand-icon .ant-dropdown-menu-submenu-arrow-icon {
29
+ .ant-dropdown-menu-item
30
+ .ant-dropdown-menu-submenu-expand-icon
31
+ .ant-dropdown-menu-submenu-arrow-icon,
32
+ .ant-dropdown-menu-submenu-title
33
+ .ant-dropdown-menu-submenu-expand-icon
34
+ .ant-dropdown-menu-submenu-arrow-icon {
31
35
  .ald-iconfont('\e691');
32
36
  }
33
37
 
@@ -0,0 +1,4 @@
1
+ import { message, MessageArgsProps } from 'antd';
2
+ import { ConfigOptions } from 'antd/lib/message';
3
+ export type { MessageArgsProps, ConfigOptions };
4
+ export default message;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ require("antd/es/message/style");
9
+
10
+ var _message2 = _interopRequireDefault(require("antd/es/message"));
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+
14
+ var _default = _message2.default;
15
+ exports.default = _default;
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ require("../../style");
4
+
5
+ require("./index.less");
@@ -0,0 +1 @@
1
+ @import '../../style/index.less';
@@ -64,14 +64,14 @@ function Menu(props) {
64
64
 
65
65
  if (isOpen) {
66
66
  return /*#__PURE__*/_react.default.createElement(_Icon.default, {
67
- type: "arrow_drop_down",
67
+ type: "arrow_drop_up",
68
68
  size: 20,
69
69
  className: "ald-nav-menu-icon-right"
70
70
  });
71
71
  }
72
72
 
73
73
  return /*#__PURE__*/_react.default.createElement(_Icon.default, {
74
- type: "arrow_drop_up",
74
+ type: "arrow_drop_down",
75
75
  size: 20,
76
76
  className: "ald-nav-menu-icon-right"
77
77
  });
@@ -0,0 +1,3 @@
1
+ import { notification } from 'antd';
2
+ export { ArgsProps, ConfigProps, NotificationInstance } from 'antd/lib/notification';
3
+ export default notification;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ require("antd/es/notification/style");
9
+
10
+ var _notification2 = _interopRequireDefault(require("antd/es/notification"));
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+
14
+ var _default = _notification2.default;
15
+ exports.default = _default;
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ require("../../style");
4
+
5
+ require("./index.less");
@@ -0,0 +1 @@
1
+ @import '../../style/index.less';
@@ -0,0 +1,4 @@
1
+ import { Radio, RadioProps, RadioChangeEvent, RadioGroupProps } from 'antd';
2
+ export { RadioGroupButtonStyle, RadioGroupOptionType, RadioGroupContextProps, RadioChangeEventTarget, } from 'antd/lib/radio';
3
+ export { RadioProps, RadioChangeEvent, RadioGroupProps };
4
+ export default Radio;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ require("antd/es/radio/style");
9
+
10
+ var _radio = _interopRequireDefault(require("antd/es/radio"));
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+
14
+ var _default = _radio.default;
15
+ exports.default = _default;
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ require("../../style");
4
+
5
+ require("./index.less");
@@ -0,0 +1 @@
1
+ @import '../../style/index.less';
@@ -0,0 +1,3 @@
1
+ import { Row, RowProps } from 'antd';
2
+ export type { RowProps };
3
+ export default Row;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ require("antd/es/row/style");
9
+
10
+ var _row = _interopRequireDefault(require("antd/es/row"));
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+
14
+ var _default = _row.default;
15
+ exports.default = _default;
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ require("../../style");
4
+
5
+ require("./index.less");
@@ -0,0 +1 @@
1
+ @import '../../style/index.less';
@@ -55,6 +55,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
55
55
 
56
56
  var DEFAULT_LIST_HEIGHT = 256;
57
57
  var DEFAULT_ACTIVE_INDEX = -1;
58
+ var DEFAULT_SELECT_LIST_INDEX = 1050;
58
59
  var ZERO = 0;
59
60
 
60
61
  var Select = function Select(props, ref) {
@@ -74,7 +75,6 @@ var Select = function Select(props, ref) {
74
75
  label = props.label,
75
76
  className = props.className,
76
77
  style = props.style,
77
- optionStyle = props.optionStyle,
78
78
  groupStyle = props.groupStyle,
79
79
  _props$allowClear = props.allowClear,
80
80
  allowClear = _props$allowClear === void 0 ? false : _props$allowClear,
@@ -99,7 +99,9 @@ var Select = function Select(props, ref) {
99
99
  dropDownStyle = props.dropDownStyle,
100
100
  _props$dropdownMatchS = props.dropdownMatchSelectWidth,
101
101
  dropdownMatchSelectWidth = _props$dropdownMatchS === void 0 ? 'width' : _props$dropdownMatchS,
102
- children = props.children;
102
+ children = props.children,
103
+ _props$zIndex = props.zIndex,
104
+ zIndex = _props$zIndex === void 0 ? DEFAULT_SELECT_LIST_INDEX : _props$zIndex;
103
105
  var prefix = (0, _usePrefixCls.default)('select-legacy', customizePrefixCls);
104
106
 
105
107
  var _useControlledState = (0, _useControlledState3.default)(controlledValue, defaultValue),
@@ -140,7 +142,19 @@ var Select = function Select(props, ref) {
140
142
  activeIndex = _useState10[0],
141
143
  setActiveIndex = _useState10[1];
142
144
 
143
- var _useState11 = (0, _react.useState)([]),
145
+ var initOptionChecked = function initOptionChecked() {
146
+ if (Array.isArray(value)) {
147
+ return value;
148
+ }
149
+
150
+ if (value === null) {
151
+ return [];
152
+ }
153
+
154
+ return [value];
155
+ };
156
+
157
+ var _useState11 = (0, _react.useState)(initOptionChecked()),
144
158
  _useState12 = _slicedToArray(_useState11, 2),
145
159
  optionChecked = _useState12[0],
146
160
  setOptionChecked = _useState12[1]; // Exhibition value (tempvalue + value);
@@ -341,7 +355,6 @@ var Select = function Select(props, ref) {
341
355
  visible: visible,
342
356
  hasGroup: hasGroup,
343
357
  groupStyle: groupStyle,
344
- optionStyle: optionStyle,
345
358
  searchType: "no-search",
346
359
  placeholder: placeholder,
347
360
  data: flattenOptions,
@@ -372,7 +385,7 @@ var Select = function Select(props, ref) {
372
385
  popupStyle: dropDownStyle,
373
386
  getPopupContainer: getContainer,
374
387
  stretch: dropdownMatchSelectWidth ? 'width' : 'minWidth',
375
- zIndex: 100,
388
+ zIndex: zIndex,
376
389
  builtinPlacements: {
377
390
  left: {
378
391
  points: ['cr', 'cl']
@@ -1,4 +1,6 @@
1
- declare const RenderLabelIcon: ({ isSelected, multiple, disabled, prefixCls, isIndeterminate }: {
1
+ /// <reference types="react" />
2
+ import 'antd/lib/checkbox/style';
3
+ declare const RenderLabelIcon: ({ isSelected, multiple, disabled, prefixCls, isIndeterminate, }: {
2
4
  isSelected: boolean;
3
5
  multiple: boolean;
4
6
  disabled?: boolean | undefined;
@@ -13,6 +13,8 @@ var _react = _interopRequireDefault(require("react"));
13
13
 
14
14
  var _lodash = require("lodash");
15
15
 
16
+ require("antd/lib/checkbox/style");
17
+
16
18
  var _Icon = _interopRequireDefault(require("../../../Icon"));
17
19
 
18
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -11,11 +11,9 @@ var _react = _interopRequireWildcard(require("react"));
11
11
 
12
12
  var _classnames2 = _interopRequireDefault(require("classnames"));
13
13
 
14
- var _VirtualList = _interopRequireDefault(require("../VirtualList"));
15
-
16
14
  var _OptionItem = require("./OptionItem");
17
15
 
18
- var _excluded = ["input", "prefixCls", "data", "groupStyle", "height", "itemHeight", "selected", "optionChecked", "tempValue", "value", "placeholder", "notFoundContent", "onValueChange", "onTempValueChange", "setTempValue", "onInputChange", "onOptionClick", "activeIndex", "multiple", "visible", "style", "setActiveIndex"];
16
+ var _excluded = ["input", "prefixCls", "data", "groupStyle", "height", "itemHeight", "selected", "optionChecked", "tempValue", "value", "placeholder", "notFoundContent", "onValueChange", "onTempValueChange", "setTempValue", "onInputChange", "onOptionClick", "activeIndex", "multiple", "visible", "setActiveIndex"];
19
17
 
20
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
19
 
@@ -23,10 +21,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
23
21
 
24
22
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
25
23
 
26
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
27
-
28
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
29
-
30
24
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
31
25
 
32
26
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
@@ -47,13 +41,16 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
47
41
 
48
42
  var ZERO_LENGTH = 0;
49
43
  var DEFAULT_ACTIVE_INDEX = -1;
44
+ var DEFAULT_LIST_HEIGHT = 256;
45
+ var DEFAULT_LIST_PADDING = 8;
50
46
 
51
47
  var OptionsList = function OptionsList(props, ref) {
52
48
  var input = props.input,
53
49
  prefixCls = props.prefixCls,
54
50
  data = props.data,
55
51
  groupStyle = props.groupStyle,
56
- height = props.height,
52
+ _props$height = props.height,
53
+ height = _props$height === void 0 ? DEFAULT_LIST_HEIGHT : _props$height,
57
54
  itemHeight = props.itemHeight,
58
55
  selected = props.selected,
59
56
  optionChecked = props.optionChecked,
@@ -69,7 +66,6 @@ var OptionsList = function OptionsList(props, ref) {
69
66
  activeIndex = props.activeIndex,
70
67
  multiple = props.multiple,
71
68
  visible = props.visible,
72
- style = props.style,
73
69
  setActiveIndex = props.setActiveIndex,
74
70
  restProps = _objectWithoutProperties(props, _excluded);
75
71
 
@@ -110,7 +106,7 @@ var OptionsList = function OptionsList(props, ref) {
110
106
  }, [selected]); // 部分选中
111
107
  // 全部列表选项选中
112
108
 
113
- var isAllChecked = isChecked && (selected === null || selected === void 0 ? void 0 : selected.length) === (filterflattenOptions === null || filterflattenOptions === void 0 ? void 0 : filterflattenOptions.length); // ”全部“选项是否选中
109
+ var isAllChecked = isChecked && (selected === null || selected === void 0 ? void 0 : selected.length) === (filterflattenOptions === null || filterflattenOptions === void 0 ? void 0 : filterflattenOptions.length) || (selected === null || selected === void 0 ? void 0 : selected.length) === ZERO_LENGTH; // ”全部“选项是否选中
114
110
 
115
111
  var allOptionChecked = isAllChecked && Array.isArray(optionChecked) && optionChecked.length === ZERO_LENGTH; // 点击全选
116
112
 
@@ -164,7 +160,9 @@ var OptionsList = function OptionsList(props, ref) {
164
160
 
165
161
  return /*#__PURE__*/_react.default.createElement("div", {
166
162
  className: "".concat(prefixCls, "-list"),
167
- style: style,
163
+ style: {
164
+ maxHeight: "".concat(height - DEFAULT_LIST_PADDING, "px")
165
+ },
168
166
  ref: OptionListRef,
169
167
  role: "list",
170
168
  "aria-hidden": "true",
@@ -173,21 +171,11 @@ var OptionsList = function OptionsList(props, ref) {
173
171
  onMouseLeave: function onMouseLeave() {
174
172
  return setActiveIndex(DEFAULT_ACTIVE_INDEX);
175
173
  }
176
- }, multiple && renderAllOptions(), data.length > ZERO_LENGTH ? /*#__PURE__*/_react.default.createElement(_VirtualList.default, _objectSpread({
177
- itemKey: "value",
178
- prefixCls: prefixCls,
179
- ref: VirtualListRef,
180
- data: data,
181
- height: height,
182
- itemHeight: itemHeight
183
- }, restProps), function (option, index) {
184
- return option.isSelectOptGroup ? /*#__PURE__*/_react.default.createElement(_OptionItem.ForwardRenderGroup, {
185
- option: option,
186
- prefixCls: prefixCls,
187
- groupStyle: groupStyle
188
- }) : /*#__PURE__*/_react.default.createElement(_OptionItem.ForwardRenderTooltip, {
174
+ }, multiple && renderAllOptions(), data.length > ZERO_LENGTH ? data.map(function (option, index) {
175
+ return /*#__PURE__*/_react.default.createElement(_OptionItem.ForwardRenderTooltip, {
189
176
  tooltip: option === null || option === void 0 ? void 0 : option.tooltip,
190
- render: /*#__PURE__*/_react.default.createElement(_OptionItem.ForwardRenderOption, _objectSpread({
177
+ key: option === null || option === void 0 ? void 0 : option.value,
178
+ render: /*#__PURE__*/_react.default.createElement(_OptionItem.ForwardRenderOption, Object.assign({
191
179
  option: option,
192
180
  prefixCls: prefixCls,
193
181
  selected: optionChecked,