@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/lib/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;
|
|
@@ -11,8 +11,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _menu = _interopRequireDefault(require("antd/lib/menu"));
|
|
13
13
|
|
|
14
|
-
var _Icon = _interopRequireDefault(require("../../../Icon"));
|
|
15
|
-
|
|
16
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
15
|
|
|
18
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -45,36 +43,17 @@ function Menu(props) {
|
|
|
45
43
|
var _useMemo = (0, _react.useMemo)(function () {
|
|
46
44
|
return getFlattenMenuByKey(menuList);
|
|
47
45
|
}, [menuList]),
|
|
48
|
-
flattenMenuByMenuKey = _useMemo.flattenMenuByMenuKey
|
|
46
|
+
flattenMenuByMenuKey = _useMemo.flattenMenuByMenuKey,
|
|
47
|
+
parentKeys = _useMemo.parentKeys;
|
|
49
48
|
|
|
50
49
|
var _useState = (0, _react.useState)(''),
|
|
51
50
|
_useState2 = _slicedToArray(_useState, 2),
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
var _useState3 = (0, _react.useState)(''),
|
|
57
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
58
|
-
currentSelectedKey = _useState4[0],
|
|
59
|
-
setCurrentSelectedKey = _useState4[1]; // 当前选中的菜单项
|
|
51
|
+
currentSelectedKey = _useState2[0],
|
|
52
|
+
setCurrentSelectedKey = _useState2[1]; // 当前选中的菜单项
|
|
60
53
|
|
|
61
54
|
|
|
62
|
-
var renderExpandIcon = (0, _react.useCallback)(function (
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
if (isOpen) {
|
|
66
|
-
return /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
67
|
-
type: "arrow_drop_up",
|
|
68
|
-
size: 20,
|
|
69
|
-
className: "ald-nav-menu-icon-right"
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
return /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
74
|
-
type: "arrow_drop_down",
|
|
75
|
-
size: 20,
|
|
76
|
-
className: "ald-nav-menu-icon-right"
|
|
77
|
-
});
|
|
55
|
+
var renderExpandIcon = (0, _react.useCallback)(function () {
|
|
56
|
+
return null;
|
|
78
57
|
}, []);
|
|
79
58
|
(0, _react.useEffect)(function () {
|
|
80
59
|
setCurrentSelectedKey(selectedKey);
|
|
@@ -93,29 +72,6 @@ function Menu(props) {
|
|
|
93
72
|
onMenuSelect(menuInfo);
|
|
94
73
|
}
|
|
95
74
|
}, [flattenMenuByMenuKey, onMenuSelect]);
|
|
96
|
-
/**
|
|
97
|
-
* 根据当前选中的菜单项,设置展开的菜单项
|
|
98
|
-
*/
|
|
99
|
-
|
|
100
|
-
(0, _react.useEffect)(function () {
|
|
101
|
-
var _flattenMenuByMenuKey;
|
|
102
|
-
|
|
103
|
-
setOpenKey(((_flattenMenuByMenuKey = flattenMenuByMenuKey[currentSelectedKey]) === null || _flattenMenuByMenuKey === void 0 ? void 0 : _flattenMenuByMenuKey.openKey) || '');
|
|
104
|
-
}, [currentSelectedKey, flattenMenuByMenuKey, onMenuSelect]);
|
|
105
|
-
/**
|
|
106
|
-
* 父级菜单点击
|
|
107
|
-
*/
|
|
108
|
-
|
|
109
|
-
var onSupMenuClick = (0, _react.useCallback)(function (key) {
|
|
110
|
-
if (key === openKey) {
|
|
111
|
-
return;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
var FIRST_INDEX = 0;
|
|
115
|
-
var firstChildrenKey = flattenMenuByMenuKey[key].children[FIRST_INDEX].key;
|
|
116
|
-
setCurrentSelectedKey(firstChildrenKey);
|
|
117
|
-
onMenuChange(firstChildrenKey);
|
|
118
|
-
}, [flattenMenuByMenuKey, openKey, onMenuChange]);
|
|
119
75
|
/**
|
|
120
76
|
* 子级菜单项或者一级菜单点击
|
|
121
77
|
*/
|
|
@@ -133,7 +89,7 @@ function Menu(props) {
|
|
|
133
89
|
}, /*#__PURE__*/_react.default.createElement(_menu.default, {
|
|
134
90
|
selectedKeys: [currentSelectedKey],
|
|
135
91
|
expandIcon: renderExpandIcon,
|
|
136
|
-
openKeys:
|
|
92
|
+
openKeys: parentKeys,
|
|
137
93
|
mode: "inline",
|
|
138
94
|
style: {
|
|
139
95
|
padding: '0 12px'
|
|
@@ -143,10 +99,7 @@ function Menu(props) {
|
|
|
143
99
|
return /*#__PURE__*/_react.default.createElement(_menu.default.SubMenu, {
|
|
144
100
|
key: item.key,
|
|
145
101
|
icon: item.icon,
|
|
146
|
-
title: item.title
|
|
147
|
-
onTitleClick: function onTitleClick() {
|
|
148
|
-
return onSupMenuClick(item.key);
|
|
149
|
-
}
|
|
102
|
+
title: item.title
|
|
150
103
|
}, item.children.map(function (subItem) {
|
|
151
104
|
return /*#__PURE__*/_react.default.createElement(_menu.default.Item, {
|
|
152
105
|
onClick: function onClick() {
|
|
@@ -169,6 +122,7 @@ function Menu(props) {
|
|
|
169
122
|
|
|
170
123
|
function getFlattenMenuByKey(menuList) {
|
|
171
124
|
var flattenMenuByMenuKey = {};
|
|
125
|
+
var parentKeys = [];
|
|
172
126
|
var menuKeys = []; // 存储所有的key 用来判断是否有重复的key
|
|
173
127
|
|
|
174
128
|
var menuInvalidFlag = true; // 传入的menuList是否有效
|
|
@@ -188,6 +142,7 @@ function getFlattenMenuByKey(menuList) {
|
|
|
188
142
|
});
|
|
189
143
|
menuKeys.push(childItem.key);
|
|
190
144
|
});
|
|
145
|
+
parentKeys.push(item.key);
|
|
191
146
|
} else {
|
|
192
147
|
flattenMenuByMenuKey[item.key] = _objectSpread(_objectSpread({}, item), {}, {
|
|
193
148
|
openKey: ''
|
|
@@ -197,7 +152,8 @@ function getFlattenMenuByKey(menuList) {
|
|
|
197
152
|
});
|
|
198
153
|
return {
|
|
199
154
|
menuInvalidFlag: menuInvalidFlag,
|
|
200
|
-
flattenMenuByMenuKey: flattenMenuByMenuKey
|
|
155
|
+
flattenMenuByMenuKey: flattenMenuByMenuKey,
|
|
156
|
+
parentKeys: parentKeys
|
|
201
157
|
};
|
|
202
158
|
}
|
|
203
159
|
|
|
@@ -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/lib/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/lib/index.js
CHANGED
|
@@ -87,6 +87,12 @@ Object.defineProperty(exports, "Navigator", {
|
|
|
87
87
|
return _Navigator.default;
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
|
+
Object.defineProperty(exports, "Notification", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function get() {
|
|
93
|
+
return _Notification.default;
|
|
94
|
+
}
|
|
95
|
+
});
|
|
90
96
|
Object.defineProperty(exports, "Radio", {
|
|
91
97
|
enumerable: true,
|
|
92
98
|
get: function get() {
|
|
@@ -171,12 +177,6 @@ Object.defineProperty(exports, "Upload", {
|
|
|
171
177
|
return _Upload.default;
|
|
172
178
|
}
|
|
173
179
|
});
|
|
174
|
-
Object.defineProperty(exports, "notification", {
|
|
175
|
-
enumerable: true,
|
|
176
|
-
get: function get() {
|
|
177
|
-
return _Notification.default;
|
|
178
|
-
}
|
|
179
|
-
});
|
|
180
180
|
|
|
181
181
|
var _Button = _interopRequireDefault(require("./Button"));
|
|
182
182
|
|