@aloudata/aloudata-design 0.2.4 → 0.2.7
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/Button/style/index.less +15 -15
- package/es/Input/style/index.less +4 -4
- package/es/Menu/style/index.less +1 -1
- package/es/Message/index.d.ts +4 -3
- package/es/Navigator/components/Menu/index.js +12 -55
- package/es/Navigator/style/index.less +28 -30
- package/es/Notification/index.d.ts +3 -2
- package/es/Select/style/index.less +27 -27
- package/es/Tooltip/style/index.less +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/style/themes/default/index.less +9 -9
- package/lib/Button/style/index.less +15 -15
- package/lib/Input/style/index.less +4 -4
- package/lib/Menu/style/index.less +1 -1
- package/lib/Message/index.d.ts +4 -3
- package/lib/Navigator/components/Menu/index.js +12 -56
- package/lib/Navigator/style/index.less +28 -30
- package/lib/Notification/index.d.ts +3 -2
- package/lib/Select/style/index.less +27 -27
- package/lib/Tooltip/style/index.less +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +6 -6
- package/lib/style/themes/default/index.less +9 -9
- package/package.json +1 -1
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
display: inline-flex;
|
|
18
18
|
align-items: center;
|
|
19
19
|
justify-content: center;
|
|
20
|
-
height: @height-base;
|
|
20
|
+
height: @ald-height-base;
|
|
21
21
|
padding: 0 11px;
|
|
22
22
|
font-weight: 500;
|
|
23
23
|
font-size: 12px;
|
|
24
|
-
line-height: @height-base;
|
|
24
|
+
line-height: @ald-height-base;
|
|
25
25
|
.@{ald-iconfont-css-prefix} {
|
|
26
26
|
+ span {
|
|
27
27
|
margin-left: 4px;
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
text-shadow: @text-shadow;
|
|
42
42
|
background-color: @B40;
|
|
43
43
|
border-color: @B40;
|
|
44
|
-
border-radius: @border-radius-base;
|
|
44
|
+
border-radius: @ald-border-radius-base;
|
|
45
45
|
box-shadow: none;
|
|
46
46
|
|
|
47
47
|
&:focus {
|
|
48
48
|
text-shadow: @text-shadow;
|
|
49
49
|
background-color: @B40;
|
|
50
50
|
border-color: @B40;
|
|
51
|
-
border-radius: @border-radius-base;
|
|
51
|
+
border-radius: @ald-border-radius-base;
|
|
52
52
|
box-shadow: none;
|
|
53
53
|
}
|
|
54
54
|
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
text-shadow: @text-shadow;
|
|
121
121
|
background-color: @BG100;
|
|
122
122
|
border-color: @NL90;
|
|
123
|
-
border-radius: @border-radius-base;
|
|
123
|
+
border-radius: @ald-border-radius-base;
|
|
124
124
|
box-shadow: none;
|
|
125
125
|
|
|
126
126
|
&:focus {
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
text-shadow: @text-shadow;
|
|
129
129
|
background-color: @BG100;
|
|
130
130
|
border-color: @NL90;
|
|
131
|
-
border-radius: @border-radius-base;
|
|
131
|
+
border-radius: @ald-border-radius-base;
|
|
132
132
|
box-shadow: none;
|
|
133
133
|
}
|
|
134
134
|
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
text-shadow: @text-shadow;
|
|
162
162
|
background-color: @BG100;
|
|
163
163
|
border-color: @BG100;
|
|
164
|
-
border-radius: @border-radius-base;
|
|
164
|
+
border-radius: @ald-border-radius-base;
|
|
165
165
|
box-shadow: none;
|
|
166
166
|
|
|
167
167
|
&:focus {
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
text-shadow: @text-shadow;
|
|
170
170
|
background-color: @BG100;
|
|
171
171
|
border-color: @BG100;
|
|
172
|
-
border-radius: @border-radius-base;
|
|
172
|
+
border-radius: @ald-border-radius-base;
|
|
173
173
|
box-shadow: none;
|
|
174
174
|
}
|
|
175
175
|
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
text-shadow: @text-shadow;
|
|
204
204
|
background-color: @BG100;
|
|
205
205
|
border-color: @BG100;
|
|
206
|
-
border-radius: @border-radius-base;
|
|
206
|
+
border-radius: @ald-border-radius-base;
|
|
207
207
|
box-shadow: none;
|
|
208
208
|
|
|
209
209
|
&:focus {
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
text-shadow: @text-shadow;
|
|
213
213
|
background-color: @BG100;
|
|
214
214
|
border-color: @BG100;
|
|
215
|
-
border-radius: @border-radius-base;
|
|
215
|
+
border-radius: @ald-border-radius-base;
|
|
216
216
|
box-shadow: none;
|
|
217
217
|
}
|
|
218
218
|
|
|
@@ -242,8 +242,8 @@
|
|
|
242
242
|
|
|
243
243
|
&-icon-only {
|
|
244
244
|
justify-content: center;
|
|
245
|
-
width: @height-base;
|
|
246
|
-
height: @height-base;
|
|
245
|
+
width: @ald-height-base;
|
|
246
|
+
height: @ald-height-base;
|
|
247
247
|
padding: 0;
|
|
248
248
|
vertical-align: bottom;
|
|
249
249
|
|
|
@@ -260,7 +260,7 @@
|
|
|
260
260
|
|
|
261
261
|
&-circle {
|
|
262
262
|
justify-content: center;
|
|
263
|
-
width: @height-base;
|
|
263
|
+
width: @ald-height-base;
|
|
264
264
|
min-width: auto;
|
|
265
265
|
padding: 0;
|
|
266
266
|
border-radius: 50%;
|
|
@@ -287,12 +287,12 @@
|
|
|
287
287
|
&-sm {
|
|
288
288
|
height: 24px;
|
|
289
289
|
line-height: 22px;
|
|
290
|
-
border-radius: @border-radius-sm;
|
|
290
|
+
border-radius: @ald-border-radius-sm;
|
|
291
291
|
|
|
292
292
|
&.ant-btn-icon-only {
|
|
293
293
|
width: 24px;
|
|
294
294
|
height: 24px;
|
|
295
|
-
border-radius: @border-radius-sm;
|
|
295
|
+
border-radius: @ald-border-radius-sm;
|
|
296
296
|
}
|
|
297
297
|
|
|
298
298
|
&.ant-btn-circle {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
height: 28px;
|
|
10
10
|
color: @NL0;
|
|
11
11
|
font-size: 12px;
|
|
12
|
-
border-radius: @border-radius-base;
|
|
12
|
+
border-radius: @ald-border-radius-base;
|
|
13
13
|
|
|
14
14
|
&::placeholder {
|
|
15
15
|
color: @NL50;
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
&-sm {
|
|
46
46
|
height: 24px;
|
|
47
47
|
font-size: 12px;
|
|
48
|
-
border-radius: @border-radius-sm;
|
|
48
|
+
border-radius: @ald-border-radius-sm;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
&-lg {
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
&-affix-wrapper {
|
|
57
57
|
height: 28px;
|
|
58
58
|
padding: 0 12px;
|
|
59
|
-
border-radius: @border-radius-base;
|
|
59
|
+
border-radius: @ald-border-radius-base;
|
|
60
60
|
|
|
61
61
|
&-hover,
|
|
62
62
|
&-focused,
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
&-sm {
|
|
83
83
|
height: 24px;
|
|
84
84
|
padding: 0 12px;
|
|
85
|
-
border-radius: @border-radius-sm;
|
|
85
|
+
border-radius: @ald-border-radius-sm;
|
|
86
86
|
|
|
87
87
|
.ant-input-sm {
|
|
88
88
|
height: 22px;
|
package/es/Menu/style/index.less
CHANGED
package/es/Message/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ConfigOptions } from 'antd/lib/message';
|
|
1
|
+
import { MessageArgsProps } from 'antd';
|
|
2
|
+
import { ConfigOptions, MessageApi } from 'antd/lib/message';
|
|
3
3
|
export type { MessageArgsProps, ConfigOptions };
|
|
4
|
-
|
|
4
|
+
declare const _default: MessageApi;
|
|
5
|
+
export default _default;
|
|
@@ -18,7 +18,6 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
18
18
|
|
|
19
19
|
import React, { useCallback, useState, useEffect, useMemo } from 'react';
|
|
20
20
|
import AntdMenu from 'antd/lib/menu';
|
|
21
|
-
import Icon from '../../../Icon';
|
|
22
21
|
|
|
23
22
|
function Menu(props) {
|
|
24
23
|
var menuList = props.menuList,
|
|
@@ -28,36 +27,17 @@ function Menu(props) {
|
|
|
28
27
|
var _useMemo = useMemo(function () {
|
|
29
28
|
return getFlattenMenuByKey(menuList);
|
|
30
29
|
}, [menuList]),
|
|
31
|
-
flattenMenuByMenuKey = _useMemo.flattenMenuByMenuKey
|
|
30
|
+
flattenMenuByMenuKey = _useMemo.flattenMenuByMenuKey,
|
|
31
|
+
parentKeys = _useMemo.parentKeys;
|
|
32
32
|
|
|
33
33
|
var _useState = useState(''),
|
|
34
34
|
_useState2 = _slicedToArray(_useState, 2),
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
currentSelectedKey = _useState2[0],
|
|
36
|
+
setCurrentSelectedKey = _useState2[1]; // 当前选中的菜单项
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
var
|
|
40
|
-
|
|
41
|
-
currentSelectedKey = _useState4[0],
|
|
42
|
-
setCurrentSelectedKey = _useState4[1]; // 当前选中的菜单项
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
var renderExpandIcon = useCallback(function (renderIconInfo) {
|
|
46
|
-
var isOpen = renderIconInfo.isOpen;
|
|
47
|
-
|
|
48
|
-
if (isOpen) {
|
|
49
|
-
return /*#__PURE__*/React.createElement(Icon, {
|
|
50
|
-
type: "arrow_drop_up",
|
|
51
|
-
size: 20,
|
|
52
|
-
className: "ald-nav-menu-icon-right"
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
return /*#__PURE__*/React.createElement(Icon, {
|
|
57
|
-
type: "arrow_drop_down",
|
|
58
|
-
size: 20,
|
|
59
|
-
className: "ald-nav-menu-icon-right"
|
|
60
|
-
});
|
|
39
|
+
var renderExpandIcon = useCallback(function () {
|
|
40
|
+
return null;
|
|
61
41
|
}, []);
|
|
62
42
|
useEffect(function () {
|
|
63
43
|
setCurrentSelectedKey(selectedKey);
|
|
@@ -76,29 +56,6 @@ function Menu(props) {
|
|
|
76
56
|
onMenuSelect(menuInfo);
|
|
77
57
|
}
|
|
78
58
|
}, [flattenMenuByMenuKey, onMenuSelect]);
|
|
79
|
-
/**
|
|
80
|
-
* 根据当前选中的菜单项,设置展开的菜单项
|
|
81
|
-
*/
|
|
82
|
-
|
|
83
|
-
useEffect(function () {
|
|
84
|
-
var _flattenMenuByMenuKey;
|
|
85
|
-
|
|
86
|
-
setOpenKey(((_flattenMenuByMenuKey = flattenMenuByMenuKey[currentSelectedKey]) === null || _flattenMenuByMenuKey === void 0 ? void 0 : _flattenMenuByMenuKey.openKey) || '');
|
|
87
|
-
}, [currentSelectedKey, flattenMenuByMenuKey, onMenuSelect]);
|
|
88
|
-
/**
|
|
89
|
-
* 父级菜单点击
|
|
90
|
-
*/
|
|
91
|
-
|
|
92
|
-
var onSupMenuClick = useCallback(function (key) {
|
|
93
|
-
if (key === openKey) {
|
|
94
|
-
return;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
var FIRST_INDEX = 0;
|
|
98
|
-
var firstChildrenKey = flattenMenuByMenuKey[key].children[FIRST_INDEX].key;
|
|
99
|
-
setCurrentSelectedKey(firstChildrenKey);
|
|
100
|
-
onMenuChange(firstChildrenKey);
|
|
101
|
-
}, [flattenMenuByMenuKey, openKey, onMenuChange]);
|
|
102
59
|
/**
|
|
103
60
|
* 子级菜单项或者一级菜单点击
|
|
104
61
|
*/
|
|
@@ -116,7 +73,7 @@ function Menu(props) {
|
|
|
116
73
|
}, /*#__PURE__*/React.createElement(AntdMenu, {
|
|
117
74
|
selectedKeys: [currentSelectedKey],
|
|
118
75
|
expandIcon: renderExpandIcon,
|
|
119
|
-
openKeys:
|
|
76
|
+
openKeys: parentKeys,
|
|
120
77
|
mode: "inline",
|
|
121
78
|
style: {
|
|
122
79
|
padding: '0 12px'
|
|
@@ -126,10 +83,7 @@ function Menu(props) {
|
|
|
126
83
|
return /*#__PURE__*/React.createElement(AntdMenu.SubMenu, {
|
|
127
84
|
key: item.key,
|
|
128
85
|
icon: item.icon,
|
|
129
|
-
title: item.title
|
|
130
|
-
onTitleClick: function onTitleClick() {
|
|
131
|
-
return onSupMenuClick(item.key);
|
|
132
|
-
}
|
|
86
|
+
title: item.title
|
|
133
87
|
}, item.children.map(function (subItem) {
|
|
134
88
|
return /*#__PURE__*/React.createElement(AntdMenu.Item, {
|
|
135
89
|
onClick: function onClick() {
|
|
@@ -152,6 +106,7 @@ function Menu(props) {
|
|
|
152
106
|
|
|
153
107
|
function getFlattenMenuByKey(menuList) {
|
|
154
108
|
var flattenMenuByMenuKey = {};
|
|
109
|
+
var parentKeys = [];
|
|
155
110
|
var menuKeys = []; // 存储所有的key 用来判断是否有重复的key
|
|
156
111
|
|
|
157
112
|
var menuInvalidFlag = true; // 传入的menuList是否有效
|
|
@@ -171,6 +126,7 @@ function getFlattenMenuByKey(menuList) {
|
|
|
171
126
|
});
|
|
172
127
|
menuKeys.push(childItem.key);
|
|
173
128
|
});
|
|
129
|
+
parentKeys.push(item.key);
|
|
174
130
|
} else {
|
|
175
131
|
flattenMenuByMenuKey[item.key] = _objectSpread(_objectSpread({}, item), {}, {
|
|
176
132
|
openKey: ''
|
|
@@ -180,7 +136,8 @@ function getFlattenMenuByKey(menuList) {
|
|
|
180
136
|
});
|
|
181
137
|
return {
|
|
182
138
|
menuInvalidFlag: menuInvalidFlag,
|
|
183
|
-
flattenMenuByMenuKey: flattenMenuByMenuKey
|
|
139
|
+
flattenMenuByMenuKey: flattenMenuByMenuKey,
|
|
140
|
+
parentKeys: parentKeys
|
|
184
141
|
};
|
|
185
142
|
}
|
|
186
143
|
|
|
@@ -3,37 +3,35 @@
|
|
|
3
3
|
|
|
4
4
|
/* stylelint-disable */
|
|
5
5
|
|
|
6
|
-
@ald-prefix:ant;
|
|
6
|
+
@ald-prefix: ant;
|
|
7
7
|
|
|
8
8
|
.supTitle() {
|
|
9
|
-
font-family: 'PingFang SC';
|
|
10
|
-
font-style: normal;
|
|
11
9
|
font-weight: 500;
|
|
12
10
|
font-size: 14px;
|
|
11
|
+
font-style: normal;
|
|
13
12
|
line-height: 20px;
|
|
14
13
|
}
|
|
15
14
|
|
|
16
15
|
.subTitle() {
|
|
17
|
-
font-family: 'PingFang SC';
|
|
18
|
-
font-style: normal;
|
|
19
16
|
font-weight: 400;
|
|
20
17
|
font-size: 12px;
|
|
18
|
+
font-style: normal;
|
|
21
19
|
line-height: 16px;
|
|
22
20
|
}
|
|
23
21
|
|
|
24
22
|
.ald-nav {
|
|
25
|
-
width: 216px;
|
|
26
|
-
background-color: @BBG15;
|
|
27
|
-
height: 100%;
|
|
28
23
|
display: flex;
|
|
29
24
|
flex-direction: column;
|
|
25
|
+
width: 216px;
|
|
26
|
+
height: 100%;
|
|
30
27
|
overflow: hidden;
|
|
28
|
+
background-color: @BBG15;
|
|
31
29
|
user-select: none;
|
|
32
30
|
|
|
33
31
|
&-logo {
|
|
32
|
+
width: 100%;
|
|
34
33
|
height: 72px;
|
|
35
34
|
padding: 24px;
|
|
36
|
-
width: 100%;
|
|
37
35
|
|
|
38
36
|
&-able-click {
|
|
39
37
|
cursor: pointer;
|
|
@@ -46,30 +44,30 @@
|
|
|
46
44
|
|
|
47
45
|
&-menu {
|
|
48
46
|
flex: 1;
|
|
49
|
-
overflow-y: auto;
|
|
50
47
|
overflow-x: hidden;
|
|
48
|
+
overflow-y: auto;
|
|
51
49
|
|
|
52
50
|
.ant-menu-sub.ant-menu-inline {
|
|
53
51
|
background-color: unset;
|
|
54
52
|
}
|
|
55
53
|
|
|
56
54
|
.anticon.ant-menu-item-icon {
|
|
57
|
-
font-size: 20px !important;
|
|
58
55
|
width: 20px !important;
|
|
59
56
|
height: 20px !important;
|
|
57
|
+
font-size: 20px !important;
|
|
60
58
|
}
|
|
61
59
|
|
|
62
60
|
&::-webkit-scrollbar-thumb {
|
|
63
|
-
border-radius: 6px;
|
|
64
61
|
background: @ND90;
|
|
65
|
-
border: 3px solid transparent;
|
|
66
62
|
background-clip: padding-box;
|
|
63
|
+
border: 3px solid transparent;
|
|
64
|
+
border-radius: 6px;
|
|
67
65
|
}
|
|
68
66
|
|
|
69
67
|
&::-webkit-scrollbar {
|
|
70
|
-
background-color: transparent;
|
|
71
68
|
width: 12px;
|
|
72
69
|
height: 12px;
|
|
70
|
+
background-color: transparent;
|
|
73
71
|
}
|
|
74
72
|
|
|
75
73
|
.ant-menu-inline,
|
|
@@ -79,11 +77,10 @@
|
|
|
79
77
|
}
|
|
80
78
|
|
|
81
79
|
.ant-menu {
|
|
82
|
-
background: @BBG15;
|
|
83
80
|
color: @ND0;
|
|
81
|
+
background: @BBG15;
|
|
84
82
|
|
|
85
83
|
&.ant-menu-root {
|
|
86
|
-
|
|
87
84
|
.ant-menu-item {
|
|
88
85
|
margin-bottom: 16px;
|
|
89
86
|
padding: 0 12px !important;
|
|
@@ -98,16 +95,16 @@
|
|
|
98
95
|
.ant-menu-item {
|
|
99
96
|
margin-top: 4px;
|
|
100
97
|
margin-bottom: 0;
|
|
101
|
-
padding: 0 12px 0 44px!important;
|
|
98
|
+
padding: 0 12px 0 44px !important;
|
|
102
99
|
}
|
|
103
100
|
}
|
|
104
101
|
|
|
105
102
|
// 只有子级菜单相关颜色操作
|
|
106
103
|
.ant-menu-item-only-child {
|
|
107
|
-
color: @ND30;
|
|
108
104
|
height: 32px !important;
|
|
109
|
-
|
|
105
|
+
color: @ND30;
|
|
110
106
|
font-size: 12px !important;
|
|
107
|
+
line-height: 32px !important;
|
|
111
108
|
.subTitle();
|
|
112
109
|
|
|
113
110
|
&:hover {
|
|
@@ -124,28 +121,28 @@
|
|
|
124
121
|
}
|
|
125
122
|
|
|
126
123
|
.ant-menu-item {
|
|
127
|
-
height: 40px;
|
|
128
124
|
width: 100%;
|
|
125
|
+
height: 40px;
|
|
129
126
|
border-radius: 8px;
|
|
130
127
|
.supTitle();
|
|
131
128
|
|
|
132
129
|
::before {
|
|
133
|
-
width: 4px;
|
|
134
|
-
content: '';
|
|
135
|
-
background: transparent;
|
|
136
|
-
height: 100%;
|
|
137
130
|
position: absolute;
|
|
138
131
|
top: 0;
|
|
139
132
|
left: -12px;
|
|
133
|
+
width: 4px;
|
|
134
|
+
height: 100%;
|
|
135
|
+
background: transparent;
|
|
140
136
|
border-radius: 1px;
|
|
141
|
-
transition: all .3s;
|
|
137
|
+
transition: all 0.3s;
|
|
138
|
+
content: '';
|
|
142
139
|
}
|
|
143
140
|
|
|
144
141
|
&-selected {
|
|
145
|
-
background-color: @BBG20 !important;
|
|
146
|
-
color: @ND0;
|
|
147
142
|
position: relative;
|
|
148
143
|
overflow: unset;
|
|
144
|
+
color: @ND0;
|
|
145
|
+
background-color: @BBG20 !important;
|
|
149
146
|
|
|
150
147
|
::before {
|
|
151
148
|
background: @B40;
|
|
@@ -161,13 +158,14 @@
|
|
|
161
158
|
margin-bottom: 16px;
|
|
162
159
|
|
|
163
160
|
.ant-menu-submenu-title {
|
|
164
|
-
padding: 0 12px !important;
|
|
165
161
|
height: 40px;
|
|
162
|
+
padding: 0 12px !important;
|
|
166
163
|
line-height: 40px;
|
|
167
164
|
.supTitle();
|
|
168
165
|
|
|
169
166
|
&:hover {
|
|
170
167
|
color: @ND0;
|
|
168
|
+
cursor: default;
|
|
171
169
|
}
|
|
172
170
|
}
|
|
173
171
|
|
|
@@ -221,8 +219,8 @@
|
|
|
221
219
|
height: 72px;
|
|
222
220
|
|
|
223
221
|
&-wrap {
|
|
224
|
-
color: @ND0;
|
|
225
222
|
height: 100%;
|
|
223
|
+
color: @ND0;
|
|
226
224
|
}
|
|
227
225
|
}
|
|
228
|
-
}
|
|
226
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NotificationApi } from 'antd/lib/notification';
|
|
2
2
|
export { ArgsProps, ConfigProps, NotificationInstance } from 'antd/lib/notification';
|
|
3
|
-
|
|
3
|
+
declare const _default: NotificationApi;
|
|
4
|
+
export default _default;
|
|
@@ -19,16 +19,16 @@
|
|
|
19
19
|
@margin-xs: 8px; // small items
|
|
20
20
|
@margin-xss: 4px; // more small
|
|
21
21
|
|
|
22
|
-
@border-color-base: #a3adc8;
|
|
22
|
+
@ald-border-color-base: #a3adc8;
|
|
23
23
|
@border-color-split: hsv(0, 0, 94%); // split border inside a component
|
|
24
24
|
@border-color-inverse: #fff;
|
|
25
25
|
@border-width-base: 1px; // width of the border for a component
|
|
26
26
|
@border-style-base: solid; // style of a components border
|
|
27
27
|
@border-color-disabled: #dfe2ed;
|
|
28
|
-
@select-option-height-lg: @height-lg;
|
|
28
|
+
@select-option-height-lg: @ald-height-lg;
|
|
29
29
|
@select-option-line-height-lg: 16px;
|
|
30
|
-
@select-option-height-base: @height-base;
|
|
31
|
-
@select-option-height-sm: @height-sm;
|
|
30
|
+
@select-option-height-base: @ald-height-base;
|
|
31
|
+
@select-option-height-sm: @ald-height-sm;
|
|
32
32
|
@line-height-base: 1.5715;
|
|
33
33
|
// @mode: compact;
|
|
34
34
|
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
padding: 0 36px 0 11px;
|
|
57
57
|
overflow: hidden;
|
|
58
58
|
border: 1px solid transparent;
|
|
59
|
-
border-radius: @border-radius-base;
|
|
59
|
+
border-radius: @ald-border-radius-base;
|
|
60
60
|
outline: none;
|
|
61
61
|
cursor: pointer;
|
|
62
62
|
transition: all 0.2s;
|
|
@@ -70,11 +70,11 @@
|
|
|
70
70
|
&-selector {
|
|
71
71
|
box-sizing: border-box;
|
|
72
72
|
width: 100%;
|
|
73
|
-
min-height: @height-base;
|
|
74
|
-
max-height: @height-base * 3.5px;
|
|
73
|
+
min-height: @ald-height-base;
|
|
74
|
+
max-height: @ald-height-base * 3.5px;
|
|
75
75
|
overflow-x: hidden;
|
|
76
76
|
overflow-y: auto;
|
|
77
|
-
border-radius: @border-radius-base;
|
|
77
|
+
border-radius: @ald-border-radius-base;
|
|
78
78
|
transition: all 0.2s;
|
|
79
79
|
|
|
80
80
|
&::-webkit-scrollbar {
|
|
@@ -92,19 +92,19 @@
|
|
|
92
92
|
flex-shrink: 0;
|
|
93
93
|
align-items: center;
|
|
94
94
|
max-width: 50%;
|
|
95
|
-
height: @height-base;
|
|
96
|
-
margin-right: @select-label-margin-right;
|
|
95
|
+
height: @ald-height-base;
|
|
96
|
+
margin-right: @ald-select-label-margin-right;
|
|
97
97
|
overflow: hidden;
|
|
98
98
|
color: @NL30;
|
|
99
99
|
font-size: @select-input-fontSize;
|
|
100
|
-
line-height: @height-base;
|
|
100
|
+
line-height: @ald-height-base;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
&-values-wrapper {
|
|
104
104
|
position: relative;
|
|
105
105
|
width: 100%;
|
|
106
106
|
color: @NL0;
|
|
107
|
-
line-height: @height-base;
|
|
107
|
+
line-height: @ald-height-base;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
&-bordered {
|
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
position: absolute;
|
|
209
209
|
top: 0;
|
|
210
210
|
left: 0;
|
|
211
|
-
color: @select-placeholder-color;
|
|
211
|
+
color: @ald-select-placeholder-color;
|
|
212
212
|
font-size: @select-input-fontSize-sm;
|
|
213
213
|
}
|
|
214
214
|
|
|
@@ -237,24 +237,24 @@
|
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
&-small {
|
|
240
|
-
border-radius: @border-radius-sm;
|
|
240
|
+
border-radius: @ald-border-radius-sm;
|
|
241
241
|
.@{select-prefix-cls-legacy} {
|
|
242
242
|
&-selector {
|
|
243
|
-
min-height: @height-sm;
|
|
244
|
-
max-height: @height-sm * 3.5px;
|
|
245
|
-
border-radius: @border-radius-sm;
|
|
243
|
+
min-height: @ald-height-sm;
|
|
244
|
+
max-height: @ald-height-sm * 3.5px;
|
|
245
|
+
border-radius: @ald-border-radius-sm;
|
|
246
246
|
}
|
|
247
247
|
|
|
248
248
|
&-selector-label {
|
|
249
|
-
height: @height-sm;
|
|
249
|
+
height: @ald-height-sm;
|
|
250
250
|
color: @NL30;
|
|
251
251
|
font-size: @select-input-fontSize-sm;
|
|
252
|
-
line-height: @height-sm;
|
|
252
|
+
line-height: @ald-height-sm;
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
&-values-wrapper {
|
|
256
256
|
font-size: @select-input-fontSize-sm;
|
|
257
|
-
line-height: @height-sm;
|
|
257
|
+
line-height: @ald-height-sm;
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
&-item-all {
|
|
@@ -304,21 +304,21 @@
|
|
|
304
304
|
}
|
|
305
305
|
|
|
306
306
|
&-large {
|
|
307
|
-
height: @height-lg;
|
|
307
|
+
height: @ald-height-lg;
|
|
308
308
|
.@{select-prefix-cls-legacy} {
|
|
309
309
|
&-selector {
|
|
310
|
-
min-height: @height-lg;
|
|
311
|
-
max-height: @height-lg * 3.5px;
|
|
310
|
+
min-height: @ald-height-lg;
|
|
311
|
+
max-height: @ald-height-lg * 3.5px;
|
|
312
312
|
}
|
|
313
313
|
|
|
314
314
|
&-selector-label {
|
|
315
|
-
height: @height-lg;
|
|
315
|
+
height: @ald-height-lg;
|
|
316
316
|
font-size: @select-input-fontSize;
|
|
317
|
-
line-height: @height-lg;
|
|
317
|
+
line-height: @ald-height-lg;
|
|
318
318
|
}
|
|
319
319
|
|
|
320
320
|
&-values-wrapper {
|
|
321
|
-
line-height: @height-lg;
|
|
321
|
+
line-height: @ald-height-lg;
|
|
322
322
|
}
|
|
323
323
|
|
|
324
324
|
&-tag-item {
|
|
@@ -389,7 +389,7 @@
|
|
|
389
389
|
padding: 4px 0;
|
|
390
390
|
background: @BG100;
|
|
391
391
|
border: 1px solid @NL90;
|
|
392
|
-
border-radius: @border-radius-base;
|
|
392
|
+
border-radius: @ald-border-radius-base;
|
|
393
393
|
box-shadow: @shadow-actionsheet;
|
|
394
394
|
&.@{select-prefix-cls-legacy}-hidden {
|
|
395
395
|
display: none;
|
package/es/index.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export { default as Layout } from './Layout';
|
|
|
33
33
|
export type { LayoutProps } from './Layout';
|
|
34
34
|
export { default as Message } from './Message';
|
|
35
35
|
export type { MessageArgsProps } from './Message';
|
|
36
|
-
export { default as
|
|
36
|
+
export { default as Notification } from './Notification';
|
|
37
37
|
export type { TreeProps, AntTreeNodeProps as TreeNodeProps, DataNode as TreeDataNode, } from './Tree';
|
|
38
38
|
export { default as Tree } from './Tree';
|
|
39
39
|
export type { SkeletonProps } from './Skeleton';
|
package/es/index.js
CHANGED
|
@@ -16,7 +16,7 @@ export { default as ConfigProvider } from './ConfigProvider';
|
|
|
16
16
|
export { default as DatePicker } from './DatePicker';
|
|
17
17
|
export { default as Layout } from './Layout';
|
|
18
18
|
export { default as Message } from './Message';
|
|
19
|
-
export { default as
|
|
19
|
+
export { default as Notification } from './Notification';
|
|
20
20
|
export { default as Tree } from './Tree';
|
|
21
21
|
export { default as Skeleton } from './Skeleton';
|
|
22
22
|
export { default as Row } from './Row';
|
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
// height rules
|
|
7
|
-
@height-base: 28px;
|
|
8
|
-
@height-lg: 32px;
|
|
9
|
-
@height-sm: 22px;
|
|
7
|
+
@ald-height-base: 28px;
|
|
8
|
+
@ald-height-lg: 32px;
|
|
9
|
+
@ald-height-sm: 22px;
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
@border-radius-base: 8px;
|
|
13
|
-
@border-radius-sm: 6px;
|
|
14
|
-
@border-color-base: #e7e8e9; // 边框的基础色
|
|
12
|
+
@ald-border-radius-base: 8px;
|
|
13
|
+
@ald-border-radius-sm: 6px;
|
|
14
|
+
@ald-border-color-base: #e7e8e9; // 边框的基础色
|
|
15
15
|
|
|
16
16
|
// color
|
|
17
|
-
@primary-color: @
|
|
17
|
+
@primary-color: @B60; // 主色调
|
|
18
18
|
@error-color: @SC40; // 错误色
|
|
19
19
|
@success-color: @SA40; // 成功色
|
|
20
20
|
@warning-color: @SB40; // 警告色
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
|
|
33
33
|
//Select
|
|
34
34
|
|
|
35
|
-
@select-placeholder-color: @NL50;
|
|
36
|
-
@select-label-margin-right:4px;
|
|
35
|
+
@ald-select-placeholder-color: @NL50;
|
|
36
|
+
@ald-select-label-margin-right:4px;
|