@aloudata/aloudata-design 0.3.0-beta.1 → 0.3.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 (217) hide show
  1. package/es/Breadcrumb/style/index.less +11 -3
  2. package/es/Button/index.js +17 -2
  3. package/es/Button/style/index.less +41 -39
  4. package/es/Button/style/variables.less +9 -2
  5. package/es/Checkbox/style/index.less +19 -0
  6. package/es/Dropdown/Button.js +1 -1
  7. package/es/Form/style/index.less +8 -0
  8. package/es/Icon/antdIconfont.d.ts +4 -0
  9. package/es/Icon/antdIconfont.js +2 -0
  10. package/es/Icon/components/Icon.d.ts +32 -0
  11. package/es/Icon/components/Icon.js +27 -0
  12. package/es/Icon/components/createFromScripts.d.ts +1 -0
  13. package/es/Icon/components/createFromScripts.js +35 -0
  14. package/es/Icon/iconSvgs/arrows_right_sm.svg +3 -0
  15. package/es/Icon/icons/AddLine.d.ts +13 -0
  16. package/es/Icon/icons/AddLine.js +66 -0
  17. package/es/Icon/icons/AlertFill.d.ts +13 -0
  18. package/es/Icon/icons/AlertFill.js +73 -0
  19. package/es/Icon/icons/ArrowsDownLine.d.ts +13 -0
  20. package/es/Icon/icons/ArrowsDownLine.js +66 -0
  21. package/es/Icon/icons/CancelFill.d.ts +13 -0
  22. package/es/Icon/icons/CancelFill.js +73 -0
  23. package/es/Icon/icons/CheckFill.d.ts +13 -0
  24. package/es/Icon/icons/CheckFill.js +73 -0
  25. package/es/Icon/icons/CloseLine.d.ts +13 -0
  26. package/es/Icon/icons/CloseLine.js +66 -0
  27. package/es/Icon/icons/DatabaseLine.d.ts +13 -0
  28. package/es/Icon/icons/DatabaseLine.js +66 -0
  29. package/es/Icon/icons/Deleteline.d.ts +13 -0
  30. package/es/Icon/icons/Deleteline.js +66 -0
  31. package/es/Icon/icons/DownloadLine.d.ts +13 -0
  32. package/es/Icon/icons/DownloadLine.js +73 -0
  33. package/es/Icon/icons/ErrorFill.d.ts +13 -0
  34. package/es/Icon/icons/ErrorFill.js +73 -0
  35. package/es/Icon/icons/EyeOffLine.d.ts +13 -0
  36. package/es/Icon/icons/EyeOffLine.js +73 -0
  37. package/es/Icon/icons/EyeOnLine.d.ts +13 -0
  38. package/es/Icon/icons/EyeOnLine.js +66 -0
  39. package/es/Icon/icons/FileLine.d.ts +13 -0
  40. package/es/Icon/icons/FileLine.js +73 -0
  41. package/es/Icon/icons/HomeFill.d.ts +13 -0
  42. package/es/Icon/icons/HomeFill.js +73 -0
  43. package/es/Icon/icons/IconBase.withSpan.tpl +58 -0
  44. package/es/Icon/icons/LightningLine.d.ts +13 -0
  45. package/es/Icon/icons/LightningLine.js +66 -0
  46. package/es/Icon/icons/Loading.d.ts +13 -0
  47. package/es/Icon/icons/Loading.js +66 -0
  48. package/es/Icon/icons/More.d.ts +13 -0
  49. package/es/Icon/icons/More.js +66 -0
  50. package/es/Icon/icons/NewWindowsLine.d.ts +13 -0
  51. package/es/Icon/icons/NewWindowsLine.js +74 -0
  52. package/es/Icon/icons/SearchLine.d.ts +13 -0
  53. package/es/Icon/icons/SearchLine.js +73 -0
  54. package/es/Icon/icons/SortAscendingLine.d.ts +13 -0
  55. package/es/Icon/icons/SortAscendingLine.js +66 -0
  56. package/es/Icon/icons/SortDescendingLine.d.ts +13 -0
  57. package/es/Icon/icons/SortDescendingLine.js +66 -0
  58. package/es/Icon/icons/TextLine.d.ts +13 -0
  59. package/es/Icon/icons/TextLine.js +73 -0
  60. package/es/Icon/icons/UserLine.d.ts +13 -0
  61. package/es/Icon/icons/UserLine.js +73 -0
  62. package/es/Icon/icons/style.css +9 -0
  63. package/es/Icon/icons/style.css.d.ts +10 -0
  64. package/es/Icon/index.d.ts +2 -13
  65. package/es/Icon/index.js +2 -53
  66. package/es/Icon/index.less +9 -17
  67. package/es/Icon/style/index.d.ts +1 -0
  68. package/es/Icon/style/index.js +1 -0
  69. package/es/Icon/style/index.less +0 -0
  70. package/es/Input/components/Password/index.js +6 -5
  71. package/es/Input/style/index.less +1 -1
  72. package/es/InputNumber/style/index.less +88 -16
  73. package/es/Menu/style/index.less +4 -3
  74. package/es/Modal/index.js +6 -4
  75. package/es/Modal/style/index.less +3 -3
  76. package/es/Navigator/style/index.less +46 -5
  77. package/es/Select/index.d.ts +2 -1
  78. package/es/Select/index.js +2 -1
  79. package/es/Select/rc-select/Selector/MultipleSelector.js +2 -2
  80. package/es/Select/rc-select/hooks/useOptions.d.ts +1 -1
  81. package/es/Select/style/index.d.ts +0 -1
  82. package/es/Select/style/index.js +0 -1
  83. package/es/Select/style/index.less +81 -10
  84. package/es/Select/style/variables.less +20 -9
  85. package/es/Select/style/variables.less.d.ts +4 -1
  86. package/es/Select/utils/iconUtil.js +5 -10
  87. package/es/Table/Table.d.ts +0 -1
  88. package/es/Table/Table.js +20 -11
  89. package/es/Table/style/index.less +7 -0
  90. package/es/Tabs/index.d.ts +2 -1
  91. package/es/Tabs/index.js +10 -4
  92. package/es/Tabs/style/index.less +35 -1
  93. package/es/index.d.ts +1 -0
  94. package/es/index.js +2 -1
  95. package/es/style/index.less +1 -0
  96. package/es/style/themes/default/scrollBar.less +13 -0
  97. package/lib/Breadcrumb/style/index.less +11 -3
  98. package/lib/Button/index.js +18 -2
  99. package/lib/Button/style/index.less +41 -39
  100. package/lib/Button/style/variables.less +9 -2
  101. package/lib/Checkbox/style/index.less +19 -0
  102. package/lib/Dropdown/Button.js +1 -1
  103. package/lib/Form/style/index.less +8 -0
  104. package/lib/Icon/antdIconfont.d.ts +4 -0
  105. package/lib/Icon/antdIconfont.js +13 -0
  106. package/lib/Icon/components/Icon.d.ts +32 -0
  107. package/lib/Icon/components/Icon.js +38 -0
  108. package/lib/Icon/components/createFromScripts.d.ts +1 -0
  109. package/lib/Icon/components/createFromScripts.js +41 -0
  110. package/lib/Icon/iconSvgs/arrows_right_sm.svg +3 -0
  111. package/lib/Icon/icons/AddLine.d.ts +13 -0
  112. package/lib/Icon/icons/AddLine.js +83 -0
  113. package/lib/Icon/icons/AlertFill.d.ts +13 -0
  114. package/lib/Icon/icons/AlertFill.js +90 -0
  115. package/lib/Icon/icons/ArrowsDownLine.d.ts +13 -0
  116. package/lib/Icon/icons/ArrowsDownLine.js +83 -0
  117. package/lib/Icon/icons/CancelFill.d.ts +13 -0
  118. package/lib/Icon/icons/CancelFill.js +90 -0
  119. package/lib/Icon/icons/CheckFill.d.ts +13 -0
  120. package/lib/Icon/icons/CheckFill.js +90 -0
  121. package/lib/Icon/icons/CloseLine.d.ts +13 -0
  122. package/lib/Icon/icons/CloseLine.js +83 -0
  123. package/lib/Icon/icons/DatabaseLine.d.ts +13 -0
  124. package/lib/Icon/icons/DatabaseLine.js +83 -0
  125. package/lib/Icon/icons/Deleteline.d.ts +13 -0
  126. package/lib/Icon/icons/Deleteline.js +83 -0
  127. package/lib/Icon/icons/DownloadLine.d.ts +13 -0
  128. package/lib/Icon/icons/DownloadLine.js +90 -0
  129. package/lib/Icon/icons/ErrorFill.d.ts +13 -0
  130. package/lib/Icon/icons/ErrorFill.js +90 -0
  131. package/lib/Icon/icons/EyeOffLine.d.ts +13 -0
  132. package/lib/Icon/icons/EyeOffLine.js +90 -0
  133. package/lib/Icon/icons/EyeOnLine.d.ts +13 -0
  134. package/lib/Icon/icons/EyeOnLine.js +83 -0
  135. package/lib/Icon/icons/FileLine.d.ts +13 -0
  136. package/lib/Icon/icons/FileLine.js +90 -0
  137. package/lib/Icon/icons/HomeFill.d.ts +13 -0
  138. package/lib/Icon/icons/HomeFill.js +90 -0
  139. package/lib/Icon/icons/IconBase.withSpan.tpl +58 -0
  140. package/lib/Icon/icons/LightningLine.d.ts +13 -0
  141. package/lib/Icon/icons/LightningLine.js +83 -0
  142. package/lib/Icon/icons/Loading.d.ts +13 -0
  143. package/lib/Icon/icons/Loading.js +83 -0
  144. package/lib/Icon/icons/More.d.ts +13 -0
  145. package/lib/Icon/icons/More.js +83 -0
  146. package/lib/Icon/icons/NewWindowsLine.d.ts +13 -0
  147. package/lib/Icon/icons/NewWindowsLine.js +91 -0
  148. package/lib/Icon/icons/SearchLine.d.ts +13 -0
  149. package/lib/Icon/icons/SearchLine.js +90 -0
  150. package/lib/Icon/icons/SortAscendingLine.d.ts +13 -0
  151. package/lib/Icon/icons/SortAscendingLine.js +83 -0
  152. package/lib/Icon/icons/SortDescendingLine.d.ts +13 -0
  153. package/lib/Icon/icons/SortDescendingLine.js +83 -0
  154. package/lib/Icon/icons/TextLine.d.ts +13 -0
  155. package/lib/Icon/icons/TextLine.js +90 -0
  156. package/lib/Icon/icons/UserLine.d.ts +13 -0
  157. package/lib/Icon/icons/UserLine.js +90 -0
  158. package/lib/Icon/icons/style.css +9 -0
  159. package/lib/Icon/icons/style.css.d.ts +10 -0
  160. package/lib/Icon/index.d.ts +2 -13
  161. package/lib/Icon/index.js +2 -59
  162. package/lib/Icon/index.less +9 -17
  163. package/lib/Icon/style/index.d.ts +1 -0
  164. package/lib/Icon/style/index.js +1 -0
  165. package/lib/Icon/style/index.less +0 -0
  166. package/lib/Input/components/Password/index.js +7 -5
  167. package/lib/Input/style/index.less +1 -1
  168. package/lib/InputNumber/style/index.less +88 -16
  169. package/lib/Menu/style/index.less +4 -3
  170. package/lib/Modal/index.js +6 -4
  171. package/lib/Modal/style/index.less +3 -3
  172. package/lib/Navigator/style/index.less +46 -5
  173. package/lib/Select/index.d.ts +2 -1
  174. package/lib/Select/index.js +2 -1
  175. package/lib/Select/rc-select/Selector/MultipleSelector.js +2 -2
  176. package/lib/Select/rc-select/hooks/useOptions.d.ts +1 -1
  177. package/lib/Select/style/index.d.ts +0 -1
  178. package/lib/Select/style/index.js +0 -2
  179. package/lib/Select/style/index.less +81 -10
  180. package/lib/Select/style/variables.less +20 -9
  181. package/lib/Select/style/variables.less.d.ts +4 -1
  182. package/lib/Select/utils/iconUtil.js +5 -12
  183. package/lib/Table/Table.d.ts +0 -1
  184. package/lib/Table/Table.js +22 -12
  185. package/lib/Table/style/index.less +7 -0
  186. package/lib/Tabs/index.d.ts +2 -1
  187. package/lib/Tabs/index.js +11 -4
  188. package/lib/Tabs/style/index.less +35 -1
  189. package/lib/index.d.ts +1 -0
  190. package/lib/index.js +8 -0
  191. package/lib/style/index.less +1 -0
  192. package/lib/style/themes/default/scrollBar.less +13 -0
  193. package/package.json +1 -1
  194. package/es/Icon/iconfont/demo.css +0 -539
  195. package/es/Icon/iconfont/demo_index.html +0 -720
  196. package/es/Icon/iconfont/iconfont.css +0 -109
  197. package/es/Icon/iconfont/iconfont.js +0 -46
  198. package/es/Icon/iconfont/iconfont.json +0 -170
  199. package/es/Icon/iconfont/iconfont.ttf +0 -0
  200. package/es/Icon/iconfont/iconfont.woff +0 -0
  201. package/es/Icon/iconfont/iconfont.woff2 +0 -0
  202. package/es/Table/components/Empty/empty-img.png +0 -0
  203. package/es/Table/components/Empty/index.d.ts +0 -4
  204. package/es/Table/components/Empty/index.js +0 -16
  205. package/es/Table/components/Empty/index.less +0 -24
  206. package/lib/Icon/iconfont/demo.css +0 -539
  207. package/lib/Icon/iconfont/demo_index.html +0 -720
  208. package/lib/Icon/iconfont/iconfont.css +0 -109
  209. package/lib/Icon/iconfont/iconfont.js +0 -48
  210. package/lib/Icon/iconfont/iconfont.json +0 -170
  211. package/lib/Icon/iconfont/iconfont.ttf +0 -0
  212. package/lib/Icon/iconfont/iconfont.woff +0 -0
  213. package/lib/Icon/iconfont/iconfont.woff2 +0 -0
  214. package/lib/Table/components/Empty/empty-img.png +0 -0
  215. package/lib/Table/components/Empty/index.d.ts +0 -4
  216. package/lib/Table/components/Empty/index.js +0 -30
  217. package/lib/Table/components/Empty/index.less +0 -24
@@ -1,54 +1,65 @@
1
1
  /* stylelint-disable property-no-unknown */
2
2
  @import '../../style/index.less';
3
3
 
4
- @selector-paddingLeft: 11px;
5
-
6
4
  // large size
7
5
  @selector-height-large: 40px;
8
6
  @selector-borderRadius-large: 8px;
9
7
  @selector-fontSize-large: 16px;
10
8
  @selector-lineHeight-large: 24px;
11
9
  @prefix-marginRight-large: 8px;
10
+ @selector-paddingHorizontal-large: 11px;
11
+
12
12
  // medium size
13
13
  @selector-height-middle: 32px;
14
14
  @selector-borderRadius-middle: 6px;
15
15
  @selector-fontSize-middle: 14px;
16
16
  @selector-lineHeight-middle: 20px;
17
- @prefix-marginRight-middle: 4px;
17
+ @prefix-marginRight-middle: 8px;
18
+ @selector-paddingHorizontal-middle: 11px;
19
+
18
20
  // small size
19
21
  @selector-height-small: 28px;
20
22
  @selector-borderRadius-small: 4px;
21
23
  @selector-fontSize-small: 12px;
22
24
  @selector-lineHeight-small: 16px;
23
25
  @prefix-marginRight-small: 4px;
26
+ @selector-paddingHorizontal-small: 7px;
24
27
  // mini size
25
28
  @selector-height-mini: 24px;
26
29
  @selector-borderRadius-mini: 4px;
27
30
  @selector-fontSize-mini: 12px;
28
31
  @selector-lineHeight-mini: 16px;
29
32
  @prefix-marginRight-mini: 4px;
33
+ @selector-paddingHorizontal-mini: 7px;
30
34
 
31
35
  //default status
32
36
  @selector-borderColor-default: @NL90;
33
- @selector-placeholderColor-default: @NL70;
37
+ @selector-placeholderColor-default: @NL80;
34
38
  @selector-valueColor-default: @NL0;
35
39
  @selector-labelColor-default: @NL50;
40
+ @selector-bgColor-default: @BG97;
36
41
  //active status
37
42
  @selector-borderColor-active: @B60;
38
- @selector-placeholderColor-active: @NL70;
43
+ @selector-placeholderColor-active: @NL80;
39
44
  @selector-valueColor-active: @NL50;
40
45
  @selector-labelColor-active: @NL50;
46
+ @selector-bgColor-active: @BG97;
41
47
  //disable status
42
48
  @selector-borderColor-disabled: @NL90;
43
- @selector-placeholderColor-disabled: @NL70;
44
- @selector-valueColor-disabled: @NL50;
45
- @selector-labelColor-disabled: @NL50;
49
+ @selector-placeholderColor-disabled: @NL80;
50
+ @selector-valueColor-disabled: @NL60;
51
+ @selector-labelColor-disabled: @NL60;
52
+ @selector-bgColor-disabled: @BG95;
46
53
  //-----option
47
54
  @select-option-bgColor: @BG100;
48
55
  @select-option-color: @NL0;
56
+ @select-option-bgColor-hover: @NL97;
49
57
 
50
58
  :export {
51
- SELECTOR_PADDING_LEFT: @selector-paddingLeft;
59
+ SELECTOR_PADDING_HORIZONTAL_LARGE: @selector-paddingHorizontal-large;
60
+ SELECTOR_PADDING_HORIZONTAL_MIDDLE: @selector-paddingHorizontal-middle;
61
+ SELECTOR_PADDING_HORIZONTAL_SMALL: @selector-paddingHorizontal-small;
62
+ SELECTOR_PADDING_HORIZONTAL_MINI: @selector-paddingHorizontal-mini;
52
63
  PREFIX_MARGIN_RIGHT_LARGE: @prefix-marginRight-large;
53
64
  PREFIX_MARGIN_RIGHT_MIDDLE: @prefix-marginRight-middle;
54
65
  PREFIX_MARGIN_RIGHT_SMALL: @prefix-marginRight-small;
@@ -89,7 +89,10 @@ interface CssExports {
89
89
  'SC90': string;
90
90
  'SC95': string;
91
91
  'SC98': string;
92
- 'SELECTOR_PADDING_LEFT': string;
92
+ 'SELECTOR_PADDING_HORIZONTAL_LARGE': string;
93
+ 'SELECTOR_PADDING_HORIZONTAL_MIDDLE': string;
94
+ 'SELECTOR_PADDING_HORIZONTAL_MINI': string;
95
+ 'SELECTOR_PADDING_HORIZONTAL_SMALL': string;
93
96
  'SHADOW_L': string;
94
97
  'WHITE': string;
95
98
  }
@@ -9,16 +9,12 @@ exports.default = getIcons;
9
9
 
10
10
  var React = _interopRequireWildcard(require("react"));
11
11
 
12
- var _DownOutlined = _interopRequireDefault(require("@ant-design/icons/DownOutlined"));
13
-
14
12
  var _LoadingOutlined = _interopRequireDefault(require("@ant-design/icons/LoadingOutlined"));
15
13
 
16
14
  var _CheckOutlined = _interopRequireDefault(require("@ant-design/icons/CheckOutlined"));
17
15
 
18
16
  var _CloseCircleFilled = _interopRequireDefault(require("@ant-design/icons/CloseCircleFilled"));
19
17
 
20
- var _SearchOutlined = _interopRequireDefault(require("@ant-design/icons/SearchOutlined"));
21
-
22
18
  var _Icon = _interopRequireDefault(require("../../Icon"));
23
19
 
24
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -65,14 +61,11 @@ function getIcons(_ref) {
65
61
  mergedSuffixIcon = function mergedSuffixIcon(_ref2) {
66
62
  var open = _ref2.open,
67
63
  showSearch = _ref2.showSearch;
68
-
69
- if (open && showSearch) {
70
- return getSuffixIconNode( /*#__PURE__*/React.createElement(_SearchOutlined.default, {
71
- className: iconCls
72
- }));
73
- }
74
-
75
- return getSuffixIconNode( /*#__PURE__*/React.createElement(_DownOutlined.default, {
64
+ // if (open && showSearch) {
65
+ // return getSuffixIconNode(<SearchOutlined className={iconCls} />);
66
+ // }
67
+ return getSuffixIconNode( /*#__PURE__*/React.createElement(_Icon.default, {
68
+ type: "arrows-down-line",
76
69
  className: iconCls
77
70
  }));
78
71
  };
@@ -1,6 +1,5 @@
1
1
  import React, { ReactElement } from 'react';
2
2
  import { ITableProps } from './interface';
3
- import './style/index';
4
3
  declare function Table<RecordType extends object = any>(props: ITableProps<RecordType>, ref?: React.Ref<unknown>): ReactElement;
5
4
  declare const _default: typeof Table;
6
5
  export default _default;
@@ -11,7 +11,11 @@ var _lodash = _interopRequireDefault(require("lodash"));
11
11
 
12
12
  var _classnames7 = _interopRequireDefault(require("classnames"));
13
13
 
14
- var _Icon = _interopRequireDefault(require("../Icon"));
14
+ var _SortDescendingLine = _interopRequireDefault(require("../Icon/icons/SortDescendingLine"));
15
+
16
+ var _SortAscendingLine = _interopRequireDefault(require("../Icon/icons/SortAscendingLine"));
17
+
18
+ var _Loading = _interopRequireDefault(require("../Icon/icons/Loading"));
15
19
 
16
20
  var _react = _interopRequireWildcard(require("react"));
17
21
 
@@ -19,13 +23,11 @@ var _usePrefixCls = _interopRequireDefault(require("../_utils/hooks/usePrefixCls
19
23
 
20
24
  var _reactInfiniteScrollComponent = _interopRequireDefault(require("react-infinite-scroll-component"));
21
25
 
22
- var _Empty = _interopRequireDefault(require("./components/Empty"));
23
-
24
26
  var _rcResizeObserver = _interopRequireDefault(require("rc-resize-observer"));
25
27
 
26
- var _reactTable = require("react-table");
28
+ var _Empty = _interopRequireDefault(require("../Empty"));
27
29
 
28
- require("./style/index");
30
+ var _reactTable = require("react-table");
29
31
 
30
32
  var _excluded = ["style"],
31
33
  _excluded2 = ["style"];
@@ -58,6 +60,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
58
60
 
59
61
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
60
62
 
63
+ // import './style/index';
61
64
  var ARRAY_FIRST_INDEX = 0;
62
65
  var DEFAULT_ROW_WIDTH = 0;
63
66
  var DEFAULT_BODY_HEIGHT = 0;
@@ -353,13 +356,13 @@ function Table(props, ref) {
353
356
  return null;
354
357
  }
355
358
 
356
- return desc ? /*#__PURE__*/_react.default.createElement(_Icon.default, {
359
+ return desc ? /*#__PURE__*/_react.default.createElement(_SortDescendingLine.default, {
357
360
  className: "".concat(prefixCls, "-sortIcon"),
358
- type: "sort_descending",
361
+ fill: "currentColor",
359
362
  size: 12
360
- }) : /*#__PURE__*/_react.default.createElement(_Icon.default, {
363
+ }) : /*#__PURE__*/_react.default.createElement(_SortAscendingLine.default, {
361
364
  className: "".concat(prefixCls, "-sortIcon"),
362
- type: "sort_ascending",
365
+ fill: "currentColor",
363
366
  size: 12
364
367
  });
365
368
  };
@@ -382,9 +385,10 @@ function Table(props, ref) {
382
385
 
383
386
  var LoadingNode = /*#__PURE__*/_react.default.createElement("div", {
384
387
  className: (0, _classnames7.default)("".concat(prefixCls, "-loading"))
385
- }, /*#__PURE__*/_react.default.createElement(_Icon.default, {
386
- type: "waiting",
388
+ }, /*#__PURE__*/_react.default.createElement(_Loading.default, {
387
389
  size: 16,
390
+ fill: "currentColor",
391
+ spin: true,
388
392
  className: (0, _classnames7.default)("".concat(prefixCls, "-loading-icon"))
389
393
  }), "Loading");
390
394
 
@@ -394,7 +398,13 @@ function Table(props, ref) {
394
398
  }
395
399
 
396
400
  if (!loading && !rows.length) {
397
- return /*#__PURE__*/_react.default.createElement(_Empty.default, null);
401
+ return /*#__PURE__*/_react.default.createElement("div", {
402
+ className: (0, _classnames7.default)("".concat(prefixCls, "-empty-icon"))
403
+ }, /*#__PURE__*/_react.default.createElement(_Empty.default, {
404
+ title: "No Data",
405
+ size: "large",
406
+ image: _Empty.default.PRESENTED_IMAGE_SIMPLE
407
+ }));
398
408
  }
399
409
 
400
410
  var renderRowList = function renderRowList() {
@@ -135,8 +135,15 @@
135
135
  }
136
136
  }
137
137
 
138
+ &-empty-icon {
139
+ padding-top: 52px;
140
+ }
141
+
138
142
  &-init-loading {
139
143
  .ald-table-loading {
144
+ display: flex;
145
+ align-items: center;
146
+ justify-content: center;
140
147
  padding-top: 84px;
141
148
  }
142
149
  }
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
+ import { TabsProps } from 'antd';
2
3
  export declare type TabsSize = 'default' | 'large';
3
- export interface ITabsProps {
4
+ export interface ITabsProps extends Omit<TabsProps, 'size'> {
4
5
  /**
5
6
  * @description 大小
6
7
  * @default default
package/lib/Tabs/index.js CHANGED
@@ -13,11 +13,13 @@ var _react = _interopRequireDefault(require("react"));
13
13
 
14
14
  var _Icon = _interopRequireDefault(require("../Icon"));
15
15
 
16
+ var _Button = _interopRequireDefault(require("../Button"));
17
+
16
18
  var _TabPane = _interopRequireDefault(require("./TabPane"));
17
19
 
18
20
  var _classnames = _interopRequireDefault(require("classnames"));
19
21
 
20
- var _excluded = ["size", "className", "adaptHeight"];
22
+ var _excluded = ["size", "className", "popupClassName", "adaptHeight"];
21
23
 
22
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
25
 
@@ -34,6 +36,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
34
36
  function Tabs(props) {
35
37
  var size = props.size,
36
38
  className = props.className,
39
+ popupClassName = props.popupClassName,
37
40
  adaptHeight = props.adaptHeight,
38
41
  otherProps = _objectWithoutProperties(props, _excluded);
39
42
 
@@ -44,11 +47,15 @@ function Tabs(props) {
44
47
  }
45
48
 
46
49
  return /*#__PURE__*/_react.default.createElement(_tabs.default, Object.assign({
47
- moreIcon: /*#__PURE__*/_react.default.createElement(_Icon.default, {
48
- type: "more_vert",
49
- size: 18
50
+ moreIcon: /*#__PURE__*/_react.default.createElement(_Button.default, {
51
+ size: "default",
52
+ type: "text",
53
+ icon: /*#__PURE__*/_react.default.createElement(_Icon.default, {
54
+ type: "more"
55
+ })
50
56
  }),
51
57
  tabBarGutter: 24,
58
+ popupClassName: (0, _classnames.default)(popupClassName, 'ald-tabs-dropdown'),
52
59
  className: (0, _classnames.default)('ald-tabs', className, {
53
60
  'ald-adapt-height': adaptHeight,
54
61
  'ald-tabs-default': size !== 'large'
@@ -1,5 +1,5 @@
1
1
  @import '../../style/index.less';
2
-
2
+ @import '../../Button/style/index.less';
3
3
  //status- default
4
4
  @Tabs-color: @NL30;
5
5
  @Tabs-fontWeight: 400;
@@ -98,3 +98,37 @@
98
98
  }
99
99
  }
100
100
  }
101
+
102
+ .ald-tabs-dropdown {
103
+ .ant-tabs-dropdown-menu {
104
+ padding: 4px;
105
+ border-radius: 6px;
106
+ box-shadow: @shadow-L;
107
+
108
+ .ant-tabs-dropdown-menu-item-active {
109
+ background-color: @NL97;
110
+ }
111
+
112
+ .ant-tabs-dropdown-menu-item {
113
+ padding: 8px 12px;
114
+ line-height: 20px;
115
+ border-radius: 6px;
116
+ }
117
+
118
+ .ant-tabs-dropdown-menu-item,
119
+ .ant-tabs-dropdown-menu-submenu-title {
120
+ &:hover {
121
+ background-color: @NL97;
122
+ }
123
+
124
+ &.ant-tabs-dropdown-menu-item-disabled {
125
+ color: @NL80;
126
+ cursor: default;
127
+
128
+ &:hover {
129
+ background-color: @BG100;
130
+ }
131
+ }
132
+ }
133
+ }
134
+ }
package/lib/index.d.ts CHANGED
@@ -68,3 +68,4 @@ export { default as Empty } from './Empty';
68
68
  export type { IEmptyProps as EmptyProps } from './Empty';
69
69
  export { default as Avatar } from './Avatar';
70
70
  export type { IAvatarProps as AvatarProps } from './Avatar';
71
+ export { default as Icon } from './Icon';
package/lib/index.js CHANGED
@@ -75,6 +75,12 @@ Object.defineProperty(exports, "Form", {
75
75
  return _Form.default;
76
76
  }
77
77
  });
78
+ Object.defineProperty(exports, "Icon", {
79
+ enumerable: true,
80
+ get: function get() {
81
+ return _Icon.default;
82
+ }
83
+ });
78
84
  Object.defineProperty(exports, "Input", {
79
85
  enumerable: true,
80
86
  get: function get() {
@@ -284,4 +290,6 @@ var _Empty = _interopRequireDefault(require("./Empty"));
284
290
 
285
291
  var _Avatar = _interopRequireDefault(require("./Avatar"));
286
292
 
293
+ var _Icon = _interopRequireDefault(require("./Icon"));
294
+
287
295
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -1,4 +1,5 @@
1
1
  @root-entry-name: default;
2
2
  @import './mixins/index.less';
3
+ @import './themes/default/scrollBar.less';
3
4
  @import './themes/default/index.less';
4
5
  @import './mixins/index.less';
@@ -0,0 +1,13 @@
1
+ ::-webkit-scrollbar-thumb {
2
+ background: @NL90;
3
+ background-clip: padding-box;
4
+ border: 3px solid transparent;
5
+ border-radius: 6px;
6
+ }
7
+
8
+ ::-webkit-scrollbar {
9
+ width: 12px;
10
+ height: 12px;
11
+ min-height: 12px;
12
+ background-color: transparent;
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aloudata/aloudata-design",
3
- "version": "0.3.0-beta.1",
3
+ "version": "0.3.0",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",