@aloudata/aloudata-design 1.9.3 → 1.9.5
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/dist/AldTable/style/index.less +1 -0
- package/dist/Avatar/component/Avatar/avatar.d.ts +3 -0
- package/dist/Avatar/component/Avatar/avatar.js +25 -0
- package/dist/Avatar/component/Avatar/index.js +20 -4
- package/dist/Avatar/style/index.less +4 -0
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/style/size.less +15 -4
- package/dist/Button/style/type.less +1 -0
- package/dist/Checkbox/style/index.less +46 -9
- package/dist/DataPreviewTable/components/Body/Error.js +5 -1
- package/dist/DataPreviewTable/index.js +1 -1
- package/dist/DataPreviewTable/style/index.less +1 -0
- package/dist/Empty/image/Search.js +22 -203
- package/dist/Empty/image/SearchSmall.js +8 -15
- package/dist/Empty/index.js +8 -8
- package/dist/Empty/style/index.less +9 -3
- package/dist/Icon/components/AlertTriangleDuotone.d.ts +2 -1
- package/dist/Icon/components/AlertTriangleDuotone.js +3 -3
- package/dist/Icon/components/CancelCircleDuotone.d.ts +2 -1
- package/dist/Icon/components/CancelCircleDuotone.js +4 -4
- package/dist/Icon/components/CheckCircleDuotone.d.ts +2 -1
- package/dist/Icon/components/CheckCircleDuotone.js +5 -5
- package/dist/Icon/components/InfoCircleLine.d.ts +2 -1
- package/dist/Icon/components/InfoCircleLine.js +3 -3
- package/dist/Input/style/index.less +20 -10
- package/dist/MemberPicker/style/index.less +1 -0
- package/dist/Modal/style/index.less +14 -2
- package/dist/Pagination/index.js +1 -1
- package/dist/Pagination/style/index.less +5 -1
- package/dist/Popconfirm/style/index.less +3 -2
- package/dist/Radio/style/index.less +4 -4
- package/dist/Select/index.js +2 -2
- package/dist/Select/style/index.less +1 -0
- package/dist/Select/style/multiple.less +1 -1
- package/dist/Select/style/single.less +2 -2
- package/dist/Switch/style/index.less +2 -1
- package/dist/Tree/style/index.less +18 -15
- package/package.json +3 -2
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
var SearchSmall = function SearchSmall() {
|
|
4
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
5
|
+
version: "1.1",
|
|
6
|
+
id: "\u56FE\u5C42_1",
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
x: "0px",
|
|
9
|
+
y: "0px",
|
|
10
|
+
viewBox: "0 0 100 100",
|
|
11
|
+
xmlSpace: "preserve"
|
|
12
|
+
}, /*#__PURE__*/React.createElement("circle", {
|
|
13
|
+
fill: "#F3E6F6",
|
|
14
|
+
cx: "50",
|
|
15
|
+
cy: "50",
|
|
16
|
+
r: "50"
|
|
17
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
18
|
+
fillRule: "evenodd",
|
|
19
|
+
clipRule: "evenodd",
|
|
20
|
+
fill: "#9A66A8",
|
|
21
|
+
d: "M63,45.8c1.7-2.6,2.6-5.6,2.6-8.7c0-4.1-1.6-8.1-4.6-11c-2.9-2.9-6.9-4.6-11-4.6c-3.1,0-6.1,0.9-8.7,2.6 s-4.6,4.2-5.8,7c-1.2,2.9-1.5,6-0.9,9c0.6,3,2.1,5.8,4.3,8c2.2,2.2,5,3.7,8,4.3c3,0.6,6.2,0.3,9-0.9C58.8,50.4,61.3,48.4,63,45.8z M50,93.8c13.4,0,25.4-6,33.4-15.5C75.6,68.4,63.5,62.1,50,62.1c-13.5,0-25.6,6.3-33.4,16.2C24.6,87.7,36.6,93.8,50,93.8z"
|
|
22
|
+
}));
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export default SearchSmall;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["size", "showFullValue", "children"];
|
|
1
|
+
var _excluded = ["size", "showFullValue", "children", "src"];
|
|
2
2
|
|
|
3
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
|
|
@@ -9,6 +9,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
9
9
|
import InternalAvatar from 'antd/lib/avatar/avatar';
|
|
10
10
|
import classNames from 'classnames';
|
|
11
11
|
import * as React from 'react';
|
|
12
|
+
import DefaultAvatar from "./avatar";
|
|
12
13
|
var ZERO = 0;
|
|
13
14
|
|
|
14
15
|
var Avatar = function Avatar(props) {
|
|
@@ -17,14 +18,21 @@ var Avatar = function Avatar(props) {
|
|
|
17
18
|
_props$showFullValue = props.showFullValue,
|
|
18
19
|
showFullValue = _props$showFullValue === void 0 ? false : _props$showFullValue,
|
|
19
20
|
children = props.children,
|
|
21
|
+
src = props.src,
|
|
20
22
|
restProps = _objectWithoutProperties(props, _excluded);
|
|
21
23
|
|
|
22
24
|
var getSizeClass = function getSizeClass(avatarSize) {
|
|
25
|
+
var defaultAvatarClassName = '';
|
|
26
|
+
|
|
27
|
+
if (typeof src === 'undefined' && typeof children === 'undefined') {
|
|
28
|
+
defaultAvatarClassName = 'ald-avatar-default';
|
|
29
|
+
}
|
|
30
|
+
|
|
23
31
|
if (['large', 'small', 'mini'].includes("".concat(avatarSize))) {
|
|
24
|
-
return classNames('ald-avatar', "ald-avatar-".concat(avatarSize));
|
|
32
|
+
return classNames('ald-avatar', defaultAvatarClassName, "ald-avatar-".concat(avatarSize));
|
|
25
33
|
}
|
|
26
34
|
|
|
27
|
-
return classNames('ald-avatar', 'ald-avatar-middle');
|
|
35
|
+
return classNames('ald-avatar', defaultAvatarClassName, 'ald-avatar-middle');
|
|
28
36
|
};
|
|
29
37
|
|
|
30
38
|
var getChildren = function getChildren() {
|
|
@@ -35,9 +43,17 @@ var Avatar = function Avatar(props) {
|
|
|
35
43
|
return children;
|
|
36
44
|
};
|
|
37
45
|
|
|
46
|
+
var defaultSrc = React.useMemo(function () {
|
|
47
|
+
if (typeof src === 'undefined' && typeof children === 'undefined') {
|
|
48
|
+
return /*#__PURE__*/React.createElement(DefaultAvatar, null);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return src;
|
|
52
|
+
}, [src, children]);
|
|
38
53
|
return /*#__PURE__*/React.createElement(InternalAvatar, _extends({
|
|
39
54
|
size: typeof size === 'number' ? size : undefined,
|
|
40
|
-
className: getSizeClass(size)
|
|
55
|
+
className: getSizeClass(size),
|
|
56
|
+
src: defaultSrc
|
|
41
57
|
}, restProps), getChildren());
|
|
42
58
|
};
|
|
43
59
|
|
package/dist/Button/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
export declare const btnPrefix = "ald-btn";
|
|
4
4
|
export declare type ButtonType = 'primary' | 'secondary' | 'dangerous' | 'text' | 'link';
|
|
5
5
|
export declare type Size = 'small' | 'middle' | 'large';
|
|
6
|
-
export interface IButtonProps extends Omit<AntdButtonProps, 'type' | '
|
|
6
|
+
export interface IButtonProps extends Omit<AntdButtonProps, 'type' | 'dangerous' | 'shape' | 'icon' | 'href' | 'target' | 'onClick' | 'loading'> {
|
|
7
7
|
/**
|
|
8
8
|
* @description 类型
|
|
9
9
|
* @type 'primary' | 'secondary' | 'dangerous' | 'text' | 'link'
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
.ald-btn.ald-btn {
|
|
1
|
+
.ald-btn.ald-btn.ald-btn {
|
|
2
|
+
font-weight: 400;
|
|
3
|
+
|
|
2
4
|
&-large {
|
|
3
5
|
min-width: auto;
|
|
4
6
|
height: @button-height-large;
|
|
@@ -10,7 +12,10 @@
|
|
|
10
12
|
&.ant-btn-icon-only {
|
|
11
13
|
min-width: @button-height-large;
|
|
12
14
|
height: @button-height-large;
|
|
13
|
-
|
|
15
|
+
|
|
16
|
+
&:not(.ant-btn-compact-item) {
|
|
17
|
+
border-radius: @button-border-radius-large;
|
|
18
|
+
}
|
|
14
19
|
}
|
|
15
20
|
|
|
16
21
|
&.ant-btn-circle {
|
|
@@ -36,7 +41,10 @@
|
|
|
36
41
|
&.ant-btn-icon-only {
|
|
37
42
|
min-width: @button-height-middle;
|
|
38
43
|
height: @button-height-middle;
|
|
39
|
-
|
|
44
|
+
|
|
45
|
+
&:not(.ant-btn-compact-item) {
|
|
46
|
+
border-radius: @button-border-radius-middle;
|
|
47
|
+
}
|
|
40
48
|
}
|
|
41
49
|
|
|
42
50
|
&.ant-btn-circle {
|
|
@@ -62,7 +70,10 @@
|
|
|
62
70
|
&.ant-btn-icon-only {
|
|
63
71
|
min-width: @button-height-small;
|
|
64
72
|
height: @button-height-small;
|
|
65
|
-
|
|
73
|
+
|
|
74
|
+
&:not(.ant-btn-compact-item) {
|
|
75
|
+
border-radius: @button-border-radius-small;
|
|
76
|
+
}
|
|
66
77
|
}
|
|
67
78
|
|
|
68
79
|
&.ant-btn-circle {
|
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
@import '../../style/index.less';
|
|
2
2
|
|
|
3
|
+
// v3.2的设计稿中所有复选框的边框都是如此,所以此处写死,后续如若需要修改请移除
|
|
4
|
+
.ant-checkbox-inner {
|
|
5
|
+
border: 1px solid #dbdbdb !important;
|
|
6
|
+
background-color: #fff !important;
|
|
7
|
+
}
|
|
8
|
+
// 此处同理
|
|
9
|
+
.ant-checkbox::after,
|
|
10
|
+
.ant-checkbox-checked::after {
|
|
11
|
+
border: 1px solid #dbdbdb !important;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.ant-checkbox-checked {
|
|
15
|
+
.ant-checkbox-inner {
|
|
16
|
+
background-color: #f8f8f8 !important;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&::after {
|
|
20
|
+
background-color: #f8f8f8 !important;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.ald-checkout-group-vertical {
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
gap: 16px;
|
|
28
|
+
|
|
29
|
+
.ant-checkbox-wrapper + .ant-checkbox-wrapper {
|
|
30
|
+
margin-left: 0;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
3
34
|
.ald-checkbox.ald-checkbox {
|
|
4
35
|
height: 20px;
|
|
5
36
|
color: @NL0;
|
|
@@ -75,7 +106,8 @@
|
|
|
75
106
|
width: 10px;
|
|
76
107
|
height: 8px;
|
|
77
108
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
78
|
-
background: url('data:image/
|
|
109
|
+
background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAQCAYAAAAS7Y8mAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADLSURBVHgBrdTPDcIgFAZwHo3O0RF6MdGbjuAI3aCjuAGj6E3jyRGYQwPIR2rT1mfDH79Lyct7vxRIIPGHbLtr/aJKrZxpb6edRk2KwgB9kjw74fb4brp7Uwx/UL+s+1JtyakimEERbZw9YkEiI79Q6+zh0Z9xMhyDDjB3qyVogGfNeu2bODwFRST+dNQchoGUoAE2fvtoGtUmeA6KhDNu/LBkhmUlW2usSkUHeAGfJwqdwBF4NPoFL+BJKAszeDKKsG8FEGAk6JKDIm/pQrazK2zB6QAAAABJRU5ErkJggg==')
|
|
110
|
+
no-repeat;
|
|
79
111
|
background-size: 100%, 100%;
|
|
80
112
|
border-width: 0;
|
|
81
113
|
transform: none;
|
|
@@ -102,12 +134,13 @@
|
|
|
102
134
|
.ant-checkbox + span {
|
|
103
135
|
display: flex;
|
|
104
136
|
align-items: center;
|
|
105
|
-
padding-right:
|
|
106
|
-
padding-left:
|
|
137
|
+
padding-right: 12px;
|
|
138
|
+
padding-left: 4px;
|
|
139
|
+
font-size: 13px;
|
|
107
140
|
}
|
|
108
141
|
|
|
109
|
-
&:hover .ant-checkbox-inner {
|
|
110
|
-
border-color:
|
|
142
|
+
&:hover .ant-checkbox-inner[class][class] {
|
|
143
|
+
border-color: #dbdbdb;
|
|
111
144
|
}
|
|
112
145
|
|
|
113
146
|
&.ant-checkbox-checked.ant-checkbox-disabled .ant-checkbox-inner {
|
|
@@ -116,6 +149,12 @@
|
|
|
116
149
|
border-radius: 2px;
|
|
117
150
|
}
|
|
118
151
|
|
|
152
|
+
& .ant-checkbox-checked.ant-checkbox-disabled {
|
|
153
|
+
&:hover .ant-checkbox-inner[class][class] {
|
|
154
|
+
border-color: @B40;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
119
158
|
.ant-checkbox:hover .ant-checkbox-inner {
|
|
120
159
|
border-color: @B40;
|
|
121
160
|
// box-shadow: @shadow-primary;
|
|
@@ -156,8 +195,6 @@
|
|
|
156
195
|
cursor: default;
|
|
157
196
|
}
|
|
158
197
|
|
|
159
|
-
.
|
|
160
|
-
|
|
161
|
-
flex-direction: column;
|
|
162
|
-
gap: 16px;
|
|
198
|
+
.ant-checkbox-checked:hover .ant-checkbox-inner[class] {
|
|
199
|
+
background-color: transparent;
|
|
163
200
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
|
+
import Result from "../../../Result";
|
|
2
3
|
|
|
3
4
|
function ErrorBody(props) {
|
|
4
5
|
var contentWidth = props.contentWidth,
|
|
@@ -11,7 +12,10 @@ function ErrorBody(props) {
|
|
|
11
12
|
style: {
|
|
12
13
|
width: width
|
|
13
14
|
}
|
|
14
|
-
},
|
|
15
|
+
}, /*#__PURE__*/React.createElement(Result, {
|
|
16
|
+
status: "warning",
|
|
17
|
+
title: errorMsg
|
|
18
|
+
}));
|
|
15
19
|
}
|
|
16
20
|
|
|
17
21
|
export default /*#__PURE__*/memo(ErrorBody);
|
|
@@ -20,7 +20,7 @@ var DataPreviewTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
20
20
|
loading = props.loading,
|
|
21
21
|
dataStatus = props.dataStatus,
|
|
22
22
|
_props$errorMsg = props.errorMsg,
|
|
23
|
-
errorMsg = _props$errorMsg === void 0 ? '
|
|
23
|
+
errorMsg = _props$errorMsg === void 0 ? '数据加载失败' : _props$errorMsg;
|
|
24
24
|
var contentHeight = useMemo(function () {
|
|
25
25
|
return datasource.length * CELL_HEIGHT + HEADER_HEIGHT;
|
|
26
26
|
}, [datasource]);
|