@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,8 +1,4 @@
1
- var _excluded = ["input", "prefixCls", "data", "groupStyle", "height", "itemHeight", "selected", "optionChecked", "tempValue", "value", "placeholder", "notFoundContent", "onValueChange", "onTempValueChange", "setTempValue", "onInputChange", "onOptionClick", "activeIndex", "multiple", "visible", "style", "setActiveIndex"];
2
-
3
- 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; }
4
-
5
- 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; }
1
+ var _excluded = ["input", "prefixCls", "data", "groupStyle", "height", "itemHeight", "selected", "optionChecked", "tempValue", "value", "placeholder", "notFoundContent", "onValueChange", "onTempValueChange", "setTempValue", "onInputChange", "onOptionClick", "activeIndex", "multiple", "visible", "setActiveIndex"];
6
2
 
7
3
  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; }
8
4
 
@@ -25,17 +21,19 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
25
21
  /* eslint-disable @typescript-eslint/no-use-before-define */
26
22
  import React, { useCallback, useImperativeHandle, useMemo, useRef, useEffect } from 'react';
27
23
  import classnames from 'classnames';
28
- import VirtualList from '../VirtualList';
29
- import { ForwardRenderGroup, ForwardRenderOption, ForwardRenderTooltip, RenderLabelIcon } from './OptionItem';
24
+ import { ForwardRenderOption, ForwardRenderTooltip, RenderLabelIcon } from './OptionItem';
30
25
  var ZERO_LENGTH = 0;
31
26
  var DEFAULT_ACTIVE_INDEX = -1;
27
+ var DEFAULT_LIST_HEIGHT = 256;
28
+ var DEFAULT_LIST_PADDING = 8;
32
29
 
33
30
  var OptionsList = function OptionsList(props, ref) {
34
31
  var input = props.input,
35
32
  prefixCls = props.prefixCls,
36
33
  data = props.data,
37
34
  groupStyle = props.groupStyle,
38
- height = props.height,
35
+ _props$height = props.height,
36
+ height = _props$height === void 0 ? DEFAULT_LIST_HEIGHT : _props$height,
39
37
  itemHeight = props.itemHeight,
40
38
  selected = props.selected,
41
39
  optionChecked = props.optionChecked,
@@ -51,7 +49,6 @@ var OptionsList = function OptionsList(props, ref) {
51
49
  activeIndex = props.activeIndex,
52
50
  multiple = props.multiple,
53
51
  visible = props.visible,
54
- style = props.style,
55
52
  setActiveIndex = props.setActiveIndex,
56
53
  restProps = _objectWithoutProperties(props, _excluded);
57
54
 
@@ -92,7 +89,7 @@ var OptionsList = function OptionsList(props, ref) {
92
89
  }, [selected]); // 部分选中
93
90
  // 全部列表选项选中
94
91
 
95
- var isAllChecked = isChecked && (selected === null || selected === void 0 ? void 0 : selected.length) === (filterflattenOptions === null || filterflattenOptions === void 0 ? void 0 : filterflattenOptions.length); // ”全部“选项是否选中
92
+ 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; // ”全部“选项是否选中
96
93
 
97
94
  var allOptionChecked = isAllChecked && Array.isArray(optionChecked) && optionChecked.length === ZERO_LENGTH; // 点击全选
98
95
 
@@ -146,7 +143,9 @@ var OptionsList = function OptionsList(props, ref) {
146
143
 
147
144
  return /*#__PURE__*/React.createElement("div", {
148
145
  className: "".concat(prefixCls, "-list"),
149
- style: style,
146
+ style: {
147
+ maxHeight: "".concat(height - DEFAULT_LIST_PADDING, "px")
148
+ },
150
149
  ref: OptionListRef,
151
150
  role: "list",
152
151
  "aria-hidden": "true",
@@ -155,21 +154,11 @@ var OptionsList = function OptionsList(props, ref) {
155
154
  onMouseLeave: function onMouseLeave() {
156
155
  return setActiveIndex(DEFAULT_ACTIVE_INDEX);
157
156
  }
158
- }, multiple && renderAllOptions(), data.length > ZERO_LENGTH ? /*#__PURE__*/React.createElement(VirtualList, _objectSpread({
159
- itemKey: "value",
160
- prefixCls: prefixCls,
161
- ref: VirtualListRef,
162
- data: data,
163
- height: height,
164
- itemHeight: itemHeight
165
- }, restProps), function (option, index) {
166
- return option.isSelectOptGroup ? /*#__PURE__*/React.createElement(ForwardRenderGroup, {
167
- option: option,
168
- prefixCls: prefixCls,
169
- groupStyle: groupStyle
170
- }) : /*#__PURE__*/React.createElement(ForwardRenderTooltip, {
157
+ }, multiple && renderAllOptions(), data.length > ZERO_LENGTH ? data.map(function (option, index) {
158
+ return /*#__PURE__*/React.createElement(ForwardRenderTooltip, {
171
159
  tooltip: option === null || option === void 0 ? void 0 : option.tooltip,
172
- render: /*#__PURE__*/React.createElement(ForwardRenderOption, _objectSpread({
160
+ key: option === null || option === void 0 ? void 0 : option.value,
161
+ render: /*#__PURE__*/React.createElement(ForwardRenderOption, Object.assign({
173
162
  option: option,
174
163
  prefixCls: prefixCls,
175
164
  selected: optionChecked,
@@ -1,9 +1,5 @@
1
1
  var _excluded = ["input", "disabled", "prefix", "size", "multiple", "bordered", "isFocused", "className", "visible", "style", "allowClear", "label", "mode", "value", "searchType", "arrowComponent", "closeComponent", "placeholder", "deleteValue", "optionLabelRenderer", "getOptionByValue", "onInputChange", "onAllowClear", "filteredOptions"];
2
2
 
3
- 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; }
4
-
5
- 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; }
6
-
7
3
  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; }
8
4
 
9
5
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
@@ -40,6 +36,8 @@ import color from '../../style/themes/default/themeColor.module.less';
40
36
  var ZERO = 0;
41
37
  var ICON_LARGE_SIZE = 20;
42
38
  var ICON_SMALL_SIZE = 16;
39
+ var FIRST_INDEX = 0;
40
+ var REVERSE_INDEX = -1;
43
41
 
44
42
  var defaultArrowComponent = function defaultArrowComponent(prefix, size) {
45
43
  return /*#__PURE__*/React.createElement(Icon, {
@@ -163,18 +161,20 @@ var Selector = function Selector(props, ref) {
163
161
 
164
162
  var renderMultipleValue = function renderMultipleValue() {
165
163
  // @ts-ignore
166
- var allValueLabel = value === null || value === void 0 ? void 0 : value.reduce(function (prev, curr) {
164
+ var allTooltipTitleNode = value === null || value === void 0 ? void 0 : value.reduce(function (prev, curr) {
167
165
  var item = getOptionByValue(curr);
168
166
 
169
167
  if (item) {
170
- return [].concat(_toConsumableArray(prev), [(item === null || item === void 0 ? void 0 : item.title) || (item === null || item === void 0 ? void 0 : item.label)]);
168
+ return [].concat(_toConsumableArray(prev), [(item === null || item === void 0 ? void 0 : item.title) || optionLabelRenderer(curr, getOptionByValue(curr)) || (item === null || item === void 0 ? void 0 : item.label), ',']);
171
169
  }
172
170
 
173
- return [].concat(_toConsumableArray(prev), [curr]);
171
+ return [].concat(_toConsumableArray(prev), [curr, ',']);
174
172
  }, []);
175
173
 
176
- if (Array.isArray(value) && value.length === filteredOptions.length) {
177
- return /*#__PURE__*/React.createElement("span", null, "\u5168\u90E8");
174
+ if (Array.isArray(value) && (value.length === filteredOptions.length || isEmpty(value))) {
175
+ return /*#__PURE__*/React.createElement("span", {
176
+ className: "multipleAll"
177
+ }, "\u5168\u90E8");
178
178
  }
179
179
 
180
180
  var renderItem = function renderItem(valueItem) {
@@ -188,7 +188,7 @@ var Selector = function Selector(props, ref) {
188
188
  return !input && !isNil(value) ? /*#__PURE__*/React.createElement(Tooltip // @ts-ignore
189
189
  , {
190
190
  // @ts-ignore
191
- title: allValueLabel === null || allValueLabel === void 0 ? void 0 : allValueLabel.join(','),
191
+ title: allTooltipTitleNode.slice(FIRST_INDEX, REVERSE_INDEX),
192
192
  placement: "top",
193
193
  getTooltipContainer: function getTooltipContainer() {
194
194
  var _selectorRef$current4;
@@ -215,11 +215,11 @@ var Selector = function Selector(props, ref) {
215
215
  }, /*#__PURE__*/React.createElement("span", {
216
216
  ref: selectorAllRef,
217
217
  className: classnames("".concat(prefix, "-item-text"))
218
- }, text)) // </Text>
219
- : null;
218
+ }, text)) : // </Text>
219
+ null;
220
220
  };
221
221
 
222
- return /*#__PURE__*/React.createElement("div", _objectSpread({
222
+ return /*#__PURE__*/React.createElement("div", Object.assign({
223
223
  role: disabled ? undefined : 'combobox',
224
224
  "aria-expanded": visible,
225
225
  "aria-controls": "expandable",
@@ -241,7 +241,7 @@ var Selector = function Selector(props, ref) {
241
241
  }, /*#__PURE__*/React.createElement("div", {
242
242
  className: classnames("".concat(prefix, "-values-wrapper")),
243
243
  ref: selectValuesRef
244
- }, multiple ? renderMultipleValue() : renderSingleValue(), renderPlaceHolder())), /*#__PURE__*/React.createElement("div", {
244
+ }, multiple ? renderMultipleValue() : renderSingleValue(), !multiple && renderPlaceHolder())), /*#__PURE__*/React.createElement("div", {
245
245
  "aria-hidden": "true",
246
246
  className: classnames("".concat(prefix, "-arrow"), _defineProperty({}, "".concat(prefix, "-arrow-focused"), visible)),
247
247
  onClick: showClose ? onAllClearClick : undefined
@@ -48,7 +48,7 @@ export interface IOptionProps {
48
48
  children?: React.ReactNode;
49
49
  /**
50
50
  * @description 默认根据次属性值进行筛选
51
- */
51
+ */
52
52
  value: string | number;
53
53
  /**
54
54
  * @description 是否禁用
@@ -59,7 +59,7 @@ export interface IOptionProps {
59
59
  }
60
60
  export interface ISelectProps {
61
61
  /**
62
- * @description 输入框尺寸
62
+ * @description 输入框尺寸
63
63
  * @default default
64
64
  * @type 'small' | 'default' | 'large';
65
65
  */
@@ -117,6 +117,9 @@ export interface ISelectProps {
117
117
  labelRenderer?: (input: string) => (option: IOption, isGroup: boolean) => React.ReactNode;
118
118
  searchPredicate?: (input: string) => _.ListIterateeCustom<IOption, boolean>;
119
119
  matchPredicate?: (input: string) => _.ListIterateeCustom<IOption, boolean>;
120
+ /**
121
+ * @description 渲染选中条目对应的内容
122
+ */
120
123
  optionLabelRenderer?: (value: string | number, option?: IOption) => React.ReactNode;
121
124
  /**
122
125
  * @description 选中值改变时的回调
@@ -156,6 +159,11 @@ export interface ISelectProps {
156
159
  */
157
160
  label?: React.ReactNode;
158
161
  children?: React.ReactNode[] | React.ReactNode;
162
+ /**
163
+ * @description 下拉菜单的 z-index层级 属性
164
+ * @default 1050
165
+ */
166
+ zIndex?: number;
159
167
  }
160
168
  export interface ISelectorProps {
161
169
  input: string;
@@ -26,16 +26,16 @@
26
26
  @border-style-base: solid; // style of a components border
27
27
  @border-color-disabled: #dfe2ed;
28
28
  @select-option-height-lg: @height-lg;
29
- @select-option-line-height-lg:16px;
30
- @select-option-height-base:@height-base;
31
- @select-option-height-sm:@height-sm;
29
+ @select-option-line-height-lg: 16px;
30
+ @select-option-height-base: @height-base;
31
+ @select-option-height-sm: @height-sm;
32
32
  @line-height-base: 1.5715;
33
33
  // @mode: compact;
34
34
 
35
35
  // Base Text
36
36
  // @text-color-base: #313e75;
37
37
  // @text-color-disabled: #313e75;
38
- @text-font-size-base: 14px;
38
+ @text-font-base-size: 14px;
39
39
  // @text-lint-height-base: 22px;
40
40
 
41
41
  //Background Color
@@ -44,8 +44,8 @@
44
44
 
45
45
  @ald-prefix: ~'@{component-prefix}';
46
46
  @select-prefix-cls-legacy: ~'@{component-prefix}-select-legacy';
47
- @select-input-fontSize: @text-font-size-base;
48
- @select-input-fontSize-sm: @text-font-size-base - 2px;
47
+ @select-input-fontSize: @text-font-base-size;
48
+ @select-input-fontSize-sm: @text-font-base-size - 2px;
49
49
  // @color-font-list-primary-normal: @palette-black-6; // $color-black-6
50
50
  // @color-box-shadow-focused: #c0c4d3;
51
51
  // @color-background-matchHeight: #ffcf3c;
@@ -53,13 +53,13 @@
53
53
  position: relative;
54
54
  display: inline-block;
55
55
  min-width: 120px;
56
+ padding: 0 36px 0 11px;
56
57
  overflow: hidden;
57
58
  border: 1px solid transparent;
58
59
  border-radius: @border-radius-base;
59
- padding: 0 36px 0 12px;
60
60
  outline: none;
61
- transition: all 0.2s;
62
61
  cursor: pointer;
62
+ transition: all 0.2s;
63
63
  user-select: none;
64
64
 
65
65
  &-selector-wrap {
@@ -88,23 +88,23 @@
88
88
  }
89
89
 
90
90
  &-selector-label {
91
- height: @height-base;
92
91
  display: flex;
92
+ flex-shrink: 0;
93
93
  align-items: center;
94
- line-height: @height-base;
95
- font-size: @select-input-fontSize;
96
- color: @NL30;
97
- margin-right: @select-label-margin-right;
98
94
  max-width: 50%;
95
+ height: @height-base;
96
+ margin-right: @select-label-margin-right;
99
97
  overflow: hidden;
100
- flex-shrink: 0;
98
+ color: @NL30;
99
+ font-size: @select-input-fontSize;
100
+ line-height: @height-base;
101
101
  }
102
102
 
103
103
  &-values-wrapper {
104
104
  position: relative;
105
105
  width: 100%;
106
- line-height: @height-base;
107
106
  color: @NL0;
107
+ line-height: @height-base;
108
108
  }
109
109
 
110
110
  &-bordered {
@@ -141,7 +141,7 @@
141
141
  &-close {
142
142
  position: absolute;
143
143
  top: 0;
144
- right: 12px;
144
+ right: 8px;
145
145
  display: flex;
146
146
  align-items: center;
147
147
  justify-content: center;
@@ -162,11 +162,11 @@
162
162
 
163
163
  &-text {
164
164
  overflow: hidden;
165
- font-size: 14px;
165
+ color: @NL0;
166
+ font-size: @select-input-fontSize-sm;
166
167
  line-height: 22px;
167
168
  white-space: nowrap;
168
169
  text-overflow: ellipsis;
169
- color: @NL0;
170
170
  }
171
171
  }
172
172
 
@@ -197,7 +197,7 @@
197
197
 
198
198
  &-text {
199
199
  overflow: hidden;
200
- font-size: 14px;
200
+ font-size: @select-input-fontSize-sm;
201
201
  line-height: 22px;
202
202
  white-space: nowrap;
203
203
  text-overflow: ellipsis;
@@ -209,6 +209,7 @@
209
209
  top: 0;
210
210
  left: 0;
211
211
  color: @select-placeholder-color;
212
+ font-size: @select-input-fontSize-sm;
212
213
  }
213
214
 
214
215
  &-input {
@@ -246,14 +247,14 @@
246
247
 
247
248
  &-selector-label {
248
249
  height: @height-sm;
249
- line-height: @height-sm;
250
- font-size: @select-input-fontSize-sm;
251
250
  color: @NL30;
251
+ font-size: @select-input-fontSize-sm;
252
+ line-height: @height-sm;
252
253
  }
253
254
 
254
255
  &-values-wrapper {
255
- line-height: @height-sm;
256
256
  font-size: @select-input-fontSize-sm;
257
+ line-height: @height-sm;
257
258
  }
258
259
 
259
260
  &-item-all {
@@ -282,7 +283,28 @@
282
283
  }
283
284
  }
284
285
 
286
+ &-default {
287
+ height: 28px;
288
+ .@{select-prefix-cls-legacy} {
289
+ &-selector {
290
+ height: 26px;
291
+ min-height: 26px;
292
+ }
293
+
294
+ &-values-wrapper {
295
+ font-size: 12px;
296
+ line-height: 26px;
297
+ }
298
+
299
+ &-selector-label {
300
+ height: 26px;
301
+ font-size: 12px;
302
+ }
303
+ }
304
+ }
305
+
285
306
  &-large {
307
+ height: @height-lg;
286
308
  .@{select-prefix-cls-legacy} {
287
309
  &-selector {
288
310
  min-height: @height-lg;
@@ -291,8 +313,8 @@
291
313
 
292
314
  &-selector-label {
293
315
  height: @height-lg;
294
- line-height: @height-lg;
295
316
  font-size: @select-input-fontSize;
317
+ line-height: @height-lg;
296
318
  }
297
319
 
298
320
  &-values-wrapper {
@@ -310,6 +332,14 @@
310
332
  &-input-tags {
311
333
  top: 0;
312
334
  }
335
+
336
+ &-placeholder {
337
+ font-size: @select-input-fontSize;
338
+ }
339
+
340
+ &-item-text {
341
+ font-size: @select-input-fontSize;
342
+ }
313
343
  }
314
344
  }
315
345
 
@@ -356,11 +386,11 @@
356
386
  // rc-trigger
357
387
  &-dropdown {
358
388
  position: absolute;
389
+ padding: 4px 0;
359
390
  background: @BG100;
360
391
  border: 1px solid @NL90;
361
- box-shadow: @shadow-actionsheet;
362
392
  border-radius: @border-radius-base;
363
- padding: 4px 0;
393
+ box-shadow: @shadow-actionsheet;
364
394
  &.@{select-prefix-cls-legacy}-hidden {
365
395
  display: none;
366
396
  }
@@ -403,6 +433,8 @@
403
433
 
404
434
  .@{select-prefix-cls-legacy}-list {
405
435
  box-sizing: border-box;
436
+ overflow-y: scroll;
437
+ overflow-y: overlay;
406
438
  // min-width: 160px;
407
439
  // padding: 16px 0 16px 8px;
408
440
  outline: none;
@@ -414,33 +446,34 @@
414
446
  align-items: center;
415
447
  box-sizing: border-box;
416
448
  max-width: 100%;
417
- user-select: none;
449
+ height: @select-option-height-lg;
418
450
  // margin-top: 4px;
419
451
  padding: 8px 12px 8px 36px;
420
452
  overflow: hidden;
421
453
  color: @NL0;
422
454
  font-size: 12px;
423
- height: @select-option-height-lg;
424
455
  line-height: @select-option-line-height-lg;
425
456
  white-space: nowrap;
426
457
  text-overflow: ellipsis;
427
458
  cursor: pointer;
428
459
  transition: background-color 0.3s ease;
460
+ user-select: none;
429
461
 
430
462
  &-icon,
431
463
  &-all-icon {
432
464
  position: absolute;
433
465
  top: 50%;
434
- transform: translateY(-50%);
435
466
  left: 12px;
467
+ margin-top: -2px;
436
468
  color: @B40;
469
+ transform: translateY(-50%);
437
470
 
438
471
  &-checkbox {
439
472
  .@{component-prefix}-checkbox-inner {
440
473
  border-color: @NL90;
441
474
  // background-color: @BG100;
442
475
  border-radius: 4px;
443
-
476
+ box-shadow: none;
444
477
  // &::after {
445
478
  // // border-color: @B40;
446
479
  // }
@@ -484,12 +517,12 @@
484
517
  align-items: center;
485
518
  box-sizing: border-box;
486
519
  max-width: 100%;
520
+ height: @select-option-height-lg;
487
521
  // margin-right: 8px;
488
522
  padding: 8px 12px 8px 36px;
489
523
  overflow: hidden;
490
524
  color: @NL0;
491
525
  font-size: 12px;
492
- height: @select-option-height-lg;
493
526
  line-height: @select-option-line-height-lg;
494
527
  white-space: nowrap;
495
528
  text-overflow: ellipsis;
@@ -0,0 +1,3 @@
1
+ import Skeleton from 'antd/es/skeleton/Skeleton';
2
+ export { SkeletonProps } from 'antd/es/skeleton/Skeleton';
3
+ export default Skeleton;
@@ -0,0 +1,2 @@
1
+ import Skeleton from 'antd/es/skeleton/Skeleton';
2
+ export default Skeleton;
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1 @@
1
+ @import '../../style/index.less';
@@ -0,0 +1,4 @@
1
+ import Space, { SpaceProps, SpaceContext } from 'antd/es/space';
2
+ export type { SpaceSize } from 'antd/es/space';
3
+ export { SpaceProps, SpaceContext };
4
+ export default Space;
@@ -0,0 +1,3 @@
1
+ import Space, { SpaceContext } from 'antd/es/space';
2
+ export { SpaceContext };
3
+ export default Space;
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1 @@
1
+ @import '../../style/index.less';
@@ -0,0 +1,4 @@
1
+ import Spin, { SpinProps, SpinState } from 'antd/es/spin';
2
+ export type { SpinSize, SpinIndicator } from 'antd/es/spin';
3
+ export { SpinProps, SpinState };
4
+ export default Spin;
@@ -0,0 +1,2 @@
1
+ import Spin from 'antd/es/spin';
2
+ export default Spin;
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1 @@
1
+ @import '../../style/index.less';
@@ -0,0 +1,3 @@
1
+ import Steps, { StepsProps, StepProps } from 'antd/es/steps';
2
+ export { StepsProps, StepProps };
3
+ export default Steps;
@@ -0,0 +1,2 @@
1
+ import Steps from 'antd/es/steps';
2
+ export default Steps;
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1 @@
1
+ @import '../../style/index.less';
@@ -0,0 +1,4 @@
1
+ import Switch, { SwitchProps } from 'antd/es/switch';
2
+ export type { SwitchSize, SwitchChangeEventHandler, SwitchClickEventHandler } from 'antd/es/switch';
3
+ export { SwitchProps };
4
+ export default Switch;
@@ -0,0 +1,2 @@
1
+ import Switch from 'antd/es/switch';
2
+ export default Switch;
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1 @@
1
+ @import '../../style/index.less';
@@ -1,4 +1,4 @@
1
- import { ReactElement } from 'react';
1
+ import React from 'react';
2
2
  import { ITableProps } from './interface';
3
- declare function Table<T extends Record<string, unknown>>({ columns, data, total, renderHeaderLeft, renderHeaderRight, scrollY, onRowSelected, loadMore, hasNextPage, loading, sortable, defaultSort, resizeColumn, sortDirections: allSortDirections, showHeader, onChange, }: ITableProps<T>): ReactElement;
4
- export default Table;
3
+ declare const _default: React.ForwardRefExoticComponent<Pick<ITableProps<Record<string, unknown>>, "onChange" | "loading" | "data" | "ellipsis" | "columns" | "total" | "renderHeaderLeft" | "renderHeaderRight" | "onRowSelected" | "loadMore" | "hasNextPage" | "sortable" | "defaultSort" | "resizeColumn" | "sortDirections" | "showHeader" | "innerScroll" | "scrollThreshold" | "rowClassName" | "renderEmpty" | "rowKey"> & React.RefAttributes<unknown>>;
4
+ export default _default;