@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.
- package/es/Breadcrumb/style/index.less +11 -3
- package/es/Button/index.js +17 -2
- package/es/Button/style/index.less +41 -39
- package/es/Button/style/variables.less +9 -2
- package/es/Checkbox/style/index.less +19 -0
- package/es/Dropdown/Button.js +1 -1
- package/es/Form/style/index.less +8 -0
- package/es/Icon/antdIconfont.d.ts +4 -0
- package/es/Icon/antdIconfont.js +2 -0
- package/es/Icon/components/Icon.d.ts +32 -0
- package/es/Icon/components/Icon.js +27 -0
- package/es/Icon/components/createFromScripts.d.ts +1 -0
- package/es/Icon/components/createFromScripts.js +35 -0
- package/es/Icon/iconSvgs/arrows_right_sm.svg +3 -0
- package/es/Icon/icons/AddLine.d.ts +13 -0
- package/es/Icon/icons/AddLine.js +66 -0
- package/es/Icon/icons/AlertFill.d.ts +13 -0
- package/es/Icon/icons/AlertFill.js +73 -0
- package/es/Icon/icons/ArrowsDownLine.d.ts +13 -0
- package/es/Icon/icons/ArrowsDownLine.js +66 -0
- package/es/Icon/icons/CancelFill.d.ts +13 -0
- package/es/Icon/icons/CancelFill.js +73 -0
- package/es/Icon/icons/CheckFill.d.ts +13 -0
- package/es/Icon/icons/CheckFill.js +73 -0
- package/es/Icon/icons/CloseLine.d.ts +13 -0
- package/es/Icon/icons/CloseLine.js +66 -0
- package/es/Icon/icons/DatabaseLine.d.ts +13 -0
- package/es/Icon/icons/DatabaseLine.js +66 -0
- package/es/Icon/icons/Deleteline.d.ts +13 -0
- package/es/Icon/icons/Deleteline.js +66 -0
- package/es/Icon/icons/DownloadLine.d.ts +13 -0
- package/es/Icon/icons/DownloadLine.js +73 -0
- package/es/Icon/icons/ErrorFill.d.ts +13 -0
- package/es/Icon/icons/ErrorFill.js +73 -0
- package/es/Icon/icons/EyeOffLine.d.ts +13 -0
- package/es/Icon/icons/EyeOffLine.js +73 -0
- package/es/Icon/icons/EyeOnLine.d.ts +13 -0
- package/es/Icon/icons/EyeOnLine.js +66 -0
- package/es/Icon/icons/FileLine.d.ts +13 -0
- package/es/Icon/icons/FileLine.js +73 -0
- package/es/Icon/icons/HomeFill.d.ts +13 -0
- package/es/Icon/icons/HomeFill.js +73 -0
- package/es/Icon/icons/IconBase.withSpan.tpl +58 -0
- package/es/Icon/icons/LightningLine.d.ts +13 -0
- package/es/Icon/icons/LightningLine.js +66 -0
- package/es/Icon/icons/Loading.d.ts +13 -0
- package/es/Icon/icons/Loading.js +66 -0
- package/es/Icon/icons/More.d.ts +13 -0
- package/es/Icon/icons/More.js +66 -0
- package/es/Icon/icons/NewWindowsLine.d.ts +13 -0
- package/es/Icon/icons/NewWindowsLine.js +74 -0
- package/es/Icon/icons/SearchLine.d.ts +13 -0
- package/es/Icon/icons/SearchLine.js +73 -0
- package/es/Icon/icons/SortAscendingLine.d.ts +13 -0
- package/es/Icon/icons/SortAscendingLine.js +66 -0
- package/es/Icon/icons/SortDescendingLine.d.ts +13 -0
- package/es/Icon/icons/SortDescendingLine.js +66 -0
- package/es/Icon/icons/TextLine.d.ts +13 -0
- package/es/Icon/icons/TextLine.js +73 -0
- package/es/Icon/icons/UserLine.d.ts +13 -0
- package/es/Icon/icons/UserLine.js +73 -0
- package/es/Icon/icons/style.css +9 -0
- package/es/Icon/icons/style.css.d.ts +10 -0
- package/es/Icon/index.d.ts +2 -13
- package/es/Icon/index.js +2 -53
- package/es/Icon/index.less +9 -17
- package/es/Icon/style/index.d.ts +1 -0
- package/es/Icon/style/index.js +1 -0
- package/es/Icon/style/index.less +0 -0
- package/es/Input/components/Password/index.js +6 -5
- package/es/Input/style/index.less +1 -1
- package/es/InputNumber/style/index.less +88 -16
- package/es/Menu/style/index.less +4 -3
- package/es/Modal/index.js +6 -4
- package/es/Modal/style/index.less +3 -3
- package/es/Navigator/style/index.less +46 -5
- package/es/Select/index.d.ts +2 -1
- package/es/Select/index.js +2 -1
- package/es/Select/rc-select/Selector/MultipleSelector.js +2 -2
- package/es/Select/rc-select/hooks/useOptions.d.ts +1 -1
- package/es/Select/style/index.d.ts +0 -1
- package/es/Select/style/index.js +0 -1
- package/es/Select/style/index.less +81 -10
- package/es/Select/style/variables.less +20 -9
- package/es/Select/style/variables.less.d.ts +4 -1
- package/es/Select/utils/iconUtil.js +5 -10
- package/es/Table/Table.d.ts +0 -1
- package/es/Table/Table.js +20 -11
- package/es/Table/style/index.less +7 -0
- package/es/Tabs/index.d.ts +2 -1
- package/es/Tabs/index.js +10 -4
- package/es/Tabs/style/index.less +35 -1
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -1
- package/es/style/index.less +1 -0
- package/es/style/themes/default/scrollBar.less +13 -0
- package/lib/Breadcrumb/style/index.less +11 -3
- package/lib/Button/index.js +18 -2
- package/lib/Button/style/index.less +41 -39
- package/lib/Button/style/variables.less +9 -2
- package/lib/Checkbox/style/index.less +19 -0
- package/lib/Dropdown/Button.js +1 -1
- package/lib/Form/style/index.less +8 -0
- package/lib/Icon/antdIconfont.d.ts +4 -0
- package/lib/Icon/antdIconfont.js +13 -0
- package/lib/Icon/components/Icon.d.ts +32 -0
- package/lib/Icon/components/Icon.js +38 -0
- package/lib/Icon/components/createFromScripts.d.ts +1 -0
- package/lib/Icon/components/createFromScripts.js +41 -0
- package/lib/Icon/iconSvgs/arrows_right_sm.svg +3 -0
- package/lib/Icon/icons/AddLine.d.ts +13 -0
- package/lib/Icon/icons/AddLine.js +83 -0
- package/lib/Icon/icons/AlertFill.d.ts +13 -0
- package/lib/Icon/icons/AlertFill.js +90 -0
- package/lib/Icon/icons/ArrowsDownLine.d.ts +13 -0
- package/lib/Icon/icons/ArrowsDownLine.js +83 -0
- package/lib/Icon/icons/CancelFill.d.ts +13 -0
- package/lib/Icon/icons/CancelFill.js +90 -0
- package/lib/Icon/icons/CheckFill.d.ts +13 -0
- package/lib/Icon/icons/CheckFill.js +90 -0
- package/lib/Icon/icons/CloseLine.d.ts +13 -0
- package/lib/Icon/icons/CloseLine.js +83 -0
- package/lib/Icon/icons/DatabaseLine.d.ts +13 -0
- package/lib/Icon/icons/DatabaseLine.js +83 -0
- package/lib/Icon/icons/Deleteline.d.ts +13 -0
- package/lib/Icon/icons/Deleteline.js +83 -0
- package/lib/Icon/icons/DownloadLine.d.ts +13 -0
- package/lib/Icon/icons/DownloadLine.js +90 -0
- package/lib/Icon/icons/ErrorFill.d.ts +13 -0
- package/lib/Icon/icons/ErrorFill.js +90 -0
- package/lib/Icon/icons/EyeOffLine.d.ts +13 -0
- package/lib/Icon/icons/EyeOffLine.js +90 -0
- package/lib/Icon/icons/EyeOnLine.d.ts +13 -0
- package/lib/Icon/icons/EyeOnLine.js +83 -0
- package/lib/Icon/icons/FileLine.d.ts +13 -0
- package/lib/Icon/icons/FileLine.js +90 -0
- package/lib/Icon/icons/HomeFill.d.ts +13 -0
- package/lib/Icon/icons/HomeFill.js +90 -0
- package/lib/Icon/icons/IconBase.withSpan.tpl +58 -0
- package/lib/Icon/icons/LightningLine.d.ts +13 -0
- package/lib/Icon/icons/LightningLine.js +83 -0
- package/lib/Icon/icons/Loading.d.ts +13 -0
- package/lib/Icon/icons/Loading.js +83 -0
- package/lib/Icon/icons/More.d.ts +13 -0
- package/lib/Icon/icons/More.js +83 -0
- package/lib/Icon/icons/NewWindowsLine.d.ts +13 -0
- package/lib/Icon/icons/NewWindowsLine.js +91 -0
- package/lib/Icon/icons/SearchLine.d.ts +13 -0
- package/lib/Icon/icons/SearchLine.js +90 -0
- package/lib/Icon/icons/SortAscendingLine.d.ts +13 -0
- package/lib/Icon/icons/SortAscendingLine.js +83 -0
- package/lib/Icon/icons/SortDescendingLine.d.ts +13 -0
- package/lib/Icon/icons/SortDescendingLine.js +83 -0
- package/lib/Icon/icons/TextLine.d.ts +13 -0
- package/lib/Icon/icons/TextLine.js +90 -0
- package/lib/Icon/icons/UserLine.d.ts +13 -0
- package/lib/Icon/icons/UserLine.js +90 -0
- package/lib/Icon/icons/style.css +9 -0
- package/lib/Icon/icons/style.css.d.ts +10 -0
- package/lib/Icon/index.d.ts +2 -13
- package/lib/Icon/index.js +2 -59
- package/lib/Icon/index.less +9 -17
- package/lib/Icon/style/index.d.ts +1 -0
- package/lib/Icon/style/index.js +1 -0
- package/lib/Icon/style/index.less +0 -0
- package/lib/Input/components/Password/index.js +7 -5
- package/lib/Input/style/index.less +1 -1
- package/lib/InputNumber/style/index.less +88 -16
- package/lib/Menu/style/index.less +4 -3
- package/lib/Modal/index.js +6 -4
- package/lib/Modal/style/index.less +3 -3
- package/lib/Navigator/style/index.less +46 -5
- package/lib/Select/index.d.ts +2 -1
- package/lib/Select/index.js +2 -1
- package/lib/Select/rc-select/Selector/MultipleSelector.js +2 -2
- package/lib/Select/rc-select/hooks/useOptions.d.ts +1 -1
- package/lib/Select/style/index.d.ts +0 -1
- package/lib/Select/style/index.js +0 -2
- package/lib/Select/style/index.less +81 -10
- package/lib/Select/style/variables.less +20 -9
- package/lib/Select/style/variables.less.d.ts +4 -1
- package/lib/Select/utils/iconUtil.js +5 -12
- package/lib/Table/Table.d.ts +0 -1
- package/lib/Table/Table.js +22 -12
- package/lib/Table/style/index.less +7 -0
- package/lib/Tabs/index.d.ts +2 -1
- package/lib/Tabs/index.js +11 -4
- package/lib/Tabs/style/index.less +35 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +8 -0
- package/lib/style/index.less +1 -0
- package/lib/style/themes/default/scrollBar.less +13 -0
- package/package.json +1 -1
- package/es/Icon/iconfont/demo.css +0 -539
- package/es/Icon/iconfont/demo_index.html +0 -720
- package/es/Icon/iconfont/iconfont.css +0 -109
- package/es/Icon/iconfont/iconfont.js +0 -46
- package/es/Icon/iconfont/iconfont.json +0 -170
- package/es/Icon/iconfont/iconfont.ttf +0 -0
- package/es/Icon/iconfont/iconfont.woff +0 -0
- package/es/Icon/iconfont/iconfont.woff2 +0 -0
- package/es/Table/components/Empty/empty-img.png +0 -0
- package/es/Table/components/Empty/index.d.ts +0 -4
- package/es/Table/components/Empty/index.js +0 -16
- package/es/Table/components/Empty/index.less +0 -24
- package/lib/Icon/iconfont/demo.css +0 -539
- package/lib/Icon/iconfont/demo_index.html +0 -720
- package/lib/Icon/iconfont/iconfont.css +0 -109
- package/lib/Icon/iconfont/iconfont.js +0 -48
- package/lib/Icon/iconfont/iconfont.json +0 -170
- package/lib/Icon/iconfont/iconfont.ttf +0 -0
- package/lib/Icon/iconfont/iconfont.woff +0 -0
- package/lib/Icon/iconfont/iconfont.woff2 +0 -0
- package/lib/Table/components/Empty/empty-img.png +0 -0
- package/lib/Table/components/Empty/index.d.ts +0 -4
- package/lib/Table/components/Empty/index.js +0 -30
- 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:
|
|
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: @
|
|
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: @
|
|
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: @
|
|
44
|
-
@selector-valueColor-disabled: @
|
|
45
|
-
@selector-labelColor-disabled: @
|
|
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
|
-
|
|
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
|
-
'
|
|
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
|
-
|
|
70
|
-
|
|
71
|
-
|
|
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
|
};
|
package/lib/Table/Table.d.ts
CHANGED
|
@@ -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;
|
package/lib/Table/Table.js
CHANGED
|
@@ -11,7 +11,11 @@ var _lodash = _interopRequireDefault(require("lodash"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames7 = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
-
var
|
|
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
|
|
28
|
+
var _Empty = _interopRequireDefault(require("../Empty"));
|
|
27
29
|
|
|
28
|
-
require("
|
|
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(
|
|
359
|
+
return desc ? /*#__PURE__*/_react.default.createElement(_SortDescendingLine.default, {
|
|
357
360
|
className: "".concat(prefixCls, "-sortIcon"),
|
|
358
|
-
|
|
361
|
+
fill: "currentColor",
|
|
359
362
|
size: 12
|
|
360
|
-
}) : /*#__PURE__*/_react.default.createElement(
|
|
363
|
+
}) : /*#__PURE__*/_react.default.createElement(_SortAscendingLine.default, {
|
|
361
364
|
className: "".concat(prefixCls, "-sortIcon"),
|
|
362
|
-
|
|
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(
|
|
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(
|
|
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() {
|
package/lib/Tabs/index.d.ts
CHANGED
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(
|
|
48
|
-
|
|
49
|
-
|
|
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
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 }; }
|
package/lib/style/index.less
CHANGED
|
@@ -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
|
+
}
|