@aloudata/aloudata-design 0.4.8-beta.10 → 0.4.8-beta.11
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/DoubleCircleIcon/index.d.ts +1 -0
- package/dist/DoubleCircleIcon/index.js +5 -2
- package/dist/DoubleCircleIcon/style/index.less +33 -1
- package/dist/Dropdown/style/index.less +11 -10
- package/dist/Input/style/index.less +9 -9
- package/dist/Modal/index.d.ts +4 -1
- package/dist/Modal/index.js +157 -59
- package/dist/Modal/style/index.less +23 -0
- package/dist/Select/style/status.less +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import classnames from 'classnames';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import "./style/index.less";
|
|
3
4
|
var INNER_SIZE_RATIO = 0.75; // 外面有两个圆,中间是个图标
|
|
@@ -6,7 +7,9 @@ var DoubleCircleIcon = function DoubleCircleIcon(props) {
|
|
|
6
7
|
var outColor = props.outColor,
|
|
7
8
|
size = props.size,
|
|
8
9
|
innerColor = props.innerColor,
|
|
9
|
-
children = props.children
|
|
10
|
+
children = props.children,
|
|
11
|
+
_props$type = props.type,
|
|
12
|
+
type = _props$type === void 0 ? 'info' : _props$type;
|
|
10
13
|
var innerSize;
|
|
11
14
|
|
|
12
15
|
if (size) {
|
|
@@ -19,7 +22,7 @@ var DoubleCircleIcon = function DoubleCircleIcon(props) {
|
|
|
19
22
|
width: size,
|
|
20
23
|
height: size
|
|
21
24
|
},
|
|
22
|
-
className: 'icon'
|
|
25
|
+
className: classnames('ald-double-circle-icon', "ald-double-circle-icon-".concat(type))
|
|
23
26
|
}, /*#__PURE__*/React.createElement("div", {
|
|
24
27
|
style: {
|
|
25
28
|
background: innerColor,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@import '../../style/index.less';
|
|
2
2
|
|
|
3
|
-
.icon {
|
|
3
|
+
.ald-double-circle-icon {
|
|
4
4
|
font-family: 'PingFang SC';
|
|
5
5
|
display: inline-flex;
|
|
6
6
|
align-items: center;
|
|
@@ -21,3 +21,35 @@
|
|
|
21
21
|
background-color: @B90;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
+
|
|
25
|
+
.ald-double-circle-icon-info {
|
|
26
|
+
background-color: @B95;
|
|
27
|
+
|
|
28
|
+
.inner {
|
|
29
|
+
background-color: @B90;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.ald-double-circle-icon-success{
|
|
34
|
+
background-color: @SA95;
|
|
35
|
+
|
|
36
|
+
.inner {
|
|
37
|
+
background-color: @SA90;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.ald-double-circle-icon-error {
|
|
42
|
+
background-color: @SC95;
|
|
43
|
+
|
|
44
|
+
.inner {
|
|
45
|
+
background-color: @SC90;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.ald-double-circle-icon-warning {
|
|
50
|
+
background-color: @SB95;
|
|
51
|
+
|
|
52
|
+
.inner {
|
|
53
|
+
background-color: @SB90;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -26,20 +26,11 @@
|
|
|
26
26
|
background-color: @NL97;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
.ant-dropdown-menu-submenu-title {
|
|
30
|
-
padding: 8px 24px 8px 12px;
|
|
31
|
-
line-height: 20px;
|
|
32
|
-
border-radius: 6px;
|
|
33
|
-
|
|
34
|
-
.ant-dropdown-menu-submenu-expand-icon {
|
|
35
|
-
right: 12px;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
29
|
|
|
39
30
|
.ant-dropdown-menu-item {
|
|
40
31
|
padding: 8px 12px;
|
|
41
32
|
line-height: 20px;
|
|
42
|
-
border-radius:
|
|
33
|
+
border-radius: 0;
|
|
43
34
|
}
|
|
44
35
|
|
|
45
36
|
.ant-dropdown-menu-item,
|
|
@@ -59,6 +50,16 @@
|
|
|
59
50
|
}
|
|
60
51
|
}
|
|
61
52
|
|
|
53
|
+
.ant-dropdown-menu-submenu-title {
|
|
54
|
+
padding: 8px 24px 8px 12px;
|
|
55
|
+
line-height: 20px;
|
|
56
|
+
border-radius: 0 !important;
|
|
57
|
+
|
|
58
|
+
.ant-dropdown-menu-submenu-expand-icon {
|
|
59
|
+
right: 12px;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
62
63
|
.ald-submenu.ant-dropdown-menu-submenu-popup {
|
|
63
64
|
padding: 0;
|
|
64
65
|
border: none;
|
|
@@ -9,21 +9,21 @@
|
|
|
9
9
|
@input-height-large: 36px;
|
|
10
10
|
@input-padding-large: 5px 13px;
|
|
11
11
|
@input-font-size-large: 16px;
|
|
12
|
-
@input-border-radius-large:
|
|
12
|
+
@input-border-radius-large: 6px;
|
|
13
13
|
@input-prefix-margin-right-large: 8px;
|
|
14
14
|
@input-clear-icon-large: 20px;
|
|
15
15
|
// size===middle
|
|
16
16
|
@input-height-middle: 32px;
|
|
17
17
|
@input-padding-middle: 5px 11px;
|
|
18
18
|
@input-font-size-middle: 14px;
|
|
19
|
-
@input-border-radius-middle:
|
|
19
|
+
@input-border-radius-middle: 4px;
|
|
20
20
|
@input-prefix-margin-right-middle: 8px;
|
|
21
21
|
@input-clear-icon-middle: 16px;
|
|
22
22
|
// size===small
|
|
23
23
|
@input-height-small: 28px;
|
|
24
24
|
@input-padding-small: 5px 9px;
|
|
25
25
|
@input-font-size-small: 12px;
|
|
26
|
-
@input-border-radius-small:
|
|
26
|
+
@input-border-radius-small: 4px;
|
|
27
27
|
@input-prefix-margin-right-small: 4px;
|
|
28
28
|
@input-clear-icon-small: 14px;
|
|
29
29
|
//custom status
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
@input-bg-color: @BG100;
|
|
35
35
|
// active status
|
|
36
36
|
@input-active-border-color: @B40;
|
|
37
|
-
@input-box-shadow-active: @shadow-xs;
|
|
37
|
+
// @input-box-shadow-active: @shadow-xs;
|
|
38
38
|
// disabled status
|
|
39
39
|
@input-disabled-border-color: @BG60;
|
|
40
40
|
@input-disabled-bg-color: @BG90;
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
background-color: @input-bg-color;
|
|
48
48
|
border-color: @input-border-color;
|
|
49
49
|
border-radius: @input-border-radius-middle;
|
|
50
|
-
box-shadow: @shadow-xs;
|
|
50
|
+
// box-shadow: @shadow-xs;
|
|
51
51
|
caret-color: @B60;
|
|
52
52
|
|
|
53
53
|
&::placeholder {
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
&:hover,
|
|
68
68
|
&-focused {
|
|
69
69
|
border-color: @input-active-border-color;
|
|
70
|
-
box-shadow: @input-box-shadow-active;
|
|
70
|
+
// box-shadow: @input-box-shadow-active;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
&[disabled].ald-input {
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
&:focus,
|
|
113
113
|
&-focused {
|
|
114
114
|
border-color: @input-active-border-color;
|
|
115
|
-
box-shadow: @input-box-shadow-active;
|
|
115
|
+
// box-shadow: @input-box-shadow-active;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
.ant-input {
|
|
@@ -155,12 +155,12 @@
|
|
|
155
155
|
.ant-input-affix-wrapper-focused {
|
|
156
156
|
&.ant-input-password {
|
|
157
157
|
border-color: @input-active-border-color;
|
|
158
|
-
box-shadow: @input-box-shadow-active;
|
|
158
|
+
// box-shadow: @input-box-shadow-active;
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
&:hover {
|
|
162
162
|
border-color: @input-active-border-color;
|
|
163
|
-
box-shadow: @input-box-shadow-active;
|
|
163
|
+
// box-shadow: @input-box-shadow-active;
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
.ant-input:hover {
|
package/dist/Modal/index.d.ts
CHANGED
|
@@ -16,11 +16,14 @@ export interface ModalProps extends Omit<AntdModalProps, 'okButtonProps' | 'canc
|
|
|
16
16
|
cancelButtonProps?: IButtonProps;
|
|
17
17
|
okButtonProps?: IButtonProps;
|
|
18
18
|
okType?: ButtonType;
|
|
19
|
+
paddingLess?: boolean;
|
|
19
20
|
}
|
|
20
|
-
export interface ModalFuncProps extends Omit<AntdModalFuncProps, 'okButtonProps' | 'cancelButtonProps' | 'okType'> {
|
|
21
|
+
export interface ModalFuncProps extends Omit<AntdModalFuncProps, 'okButtonProps' | 'cancelButtonProps' | 'okType' | 'icon'> {
|
|
21
22
|
cancelButtonProps?: IButtonProps;
|
|
22
23
|
okButtonProps?: IButtonProps;
|
|
23
24
|
okType?: ButtonType;
|
|
25
|
+
subTitle?: React.ReactNode;
|
|
26
|
+
icon?: React.ReactElement;
|
|
24
27
|
}
|
|
25
28
|
declare const OriginModal: IModalInterface;
|
|
26
29
|
export declare type ModalFunc = (props: ModalFuncProps) => {
|
package/dist/Modal/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var _excluded = ["className", "type", "loading", "size", "disabled", "shape"],
|
|
2
|
-
_excluded2 = ["className", "children", "okType", "width", "closeIcon", "subTitle", "okButtonProps", "cancelButtonProps", "okText", "cancelText", "icon", "title"],
|
|
3
|
-
_excluded3 = ["
|
|
4
|
-
_excluded4 = ["
|
|
5
|
-
_excluded5 = ["
|
|
6
|
-
_excluded6 = ["
|
|
7
|
-
_excluded7 = ["
|
|
2
|
+
_excluded2 = ["className", "children", "okType", "width", "closeIcon", "subTitle", "okButtonProps", "cancelButtonProps", "okText", "cancelText", "icon", "title", "paddingLess"],
|
|
3
|
+
_excluded3 = ["okButtonProps", "cancelButtonProps", "okType", "width", "title", "subTitle", "okText", "cancelText", "className"],
|
|
4
|
+
_excluded4 = ["okButtonProps", "cancelButtonProps", "okType", "width", "title", "subTitle", "okText", "cancelText", "className"],
|
|
5
|
+
_excluded5 = ["okButtonProps", "cancelButtonProps", "okType", "width", "title", "subTitle", "okText", "cancelText", "className"],
|
|
6
|
+
_excluded6 = ["okButtonProps", "cancelButtonProps", "okType", "width", "title", "subTitle", "okText", "cancelText", "className"],
|
|
7
|
+
_excluded7 = ["okButtonProps", "cancelButtonProps", "okType", "width", "title", "subTitle", "className", "okText", "cancelText"];
|
|
8
8
|
|
|
9
9
|
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); }
|
|
10
10
|
|
|
@@ -25,6 +25,7 @@ import useModal from 'antd/lib/modal/useModal/index';
|
|
|
25
25
|
import classNames from 'classnames';
|
|
26
26
|
import React from 'react';
|
|
27
27
|
import { btnPrefix, getButtonSizeClass, getButtonType, getDangerStatus, getShape } from "../Button";
|
|
28
|
+
import DoubleCircleIcon from "../DoubleCircleIcon";
|
|
28
29
|
import theme from "../style/themes/default/themeColor.module.less"; // export type { ModalProps, ModalFuncProps };
|
|
29
30
|
|
|
30
31
|
export var destroyFns = [];
|
|
@@ -54,6 +55,21 @@ function getButtonProps(buttonProps, defaultBtnType, okType) {
|
|
|
54
55
|
});
|
|
55
56
|
}
|
|
56
57
|
|
|
58
|
+
var ModalTitle = function ModalTitle(_ref) {
|
|
59
|
+
var icon = _ref.icon,
|
|
60
|
+
title = _ref.title,
|
|
61
|
+
subTitle = _ref.subTitle;
|
|
62
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
63
|
+
className: 'ald-modal-title-container'
|
|
64
|
+
}, icon, /*#__PURE__*/React.createElement("div", {
|
|
65
|
+
className: 'ald-modal-text-container'
|
|
66
|
+
}, title && /*#__PURE__*/React.createElement("div", {
|
|
67
|
+
className: 'title'
|
|
68
|
+
}, title), subTitle && /*#__PURE__*/React.createElement("div", {
|
|
69
|
+
className: 'subTitle'
|
|
70
|
+
}, subTitle)));
|
|
71
|
+
};
|
|
72
|
+
|
|
57
73
|
var OriginModal = function OriginModal(props) {
|
|
58
74
|
var className = props.className,
|
|
59
75
|
children = props.children,
|
|
@@ -66,24 +82,32 @@ var OriginModal = function OriginModal(props) {
|
|
|
66
82
|
_props$cancelButtonPr = props.cancelButtonProps,
|
|
67
83
|
cancelButtonProps = _props$cancelButtonPr === void 0 ? {} : _props$cancelButtonPr,
|
|
68
84
|
_props$okText = props.okText,
|
|
69
|
-
okText = _props$okText === void 0 ?
|
|
85
|
+
okText = _props$okText === void 0 ? '确定' : _props$okText,
|
|
70
86
|
_props$cancelText = props.cancelText,
|
|
71
|
-
cancelText = _props$cancelText === void 0 ?
|
|
87
|
+
cancelText = _props$cancelText === void 0 ? '取消' : _props$cancelText,
|
|
72
88
|
icon = props.icon,
|
|
73
89
|
title = props.title,
|
|
90
|
+
paddingLess = props.paddingLess,
|
|
74
91
|
restProps = _objectWithoutProperties(props, _excluded2);
|
|
75
92
|
|
|
76
93
|
return /*#__PURE__*/React.createElement(AntdModal, _extends({}, restProps, {
|
|
77
|
-
title:
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
className
|
|
94
|
+
title: ModalTitle({
|
|
95
|
+
icon: icon,
|
|
96
|
+
title: title,
|
|
97
|
+
subTitle: subTitle
|
|
98
|
+
}) // title={
|
|
99
|
+
// <div className={'ald-modal-title-container'}>
|
|
100
|
+
// {icon}
|
|
101
|
+
// <div className={'ald-modal-text-container'}>
|
|
102
|
+
// {title && <div className={'title'}>{title}</div>}
|
|
103
|
+
// {subTitle && <div className={'subTitle'}>{subTitle}</div>}
|
|
104
|
+
// </div>
|
|
105
|
+
// </div>
|
|
106
|
+
// }
|
|
107
|
+
,
|
|
108
|
+
className: classNames('ald-modal', className, {
|
|
109
|
+
'ald-modal-padding-less': paddingLess
|
|
110
|
+
}),
|
|
87
111
|
okButtonProps: getButtonProps(okButtonProps, 'primary', okType),
|
|
88
112
|
cancelButtonProps: getButtonProps(cancelButtonProps, 'secondary'),
|
|
89
113
|
okText: okText,
|
|
@@ -101,114 +125,188 @@ OriginModal.useModal = useModal;
|
|
|
101
125
|
var Modal = OriginModal;
|
|
102
126
|
|
|
103
127
|
Modal.info = function infoFn(props) {
|
|
104
|
-
var
|
|
105
|
-
_props$okButtonProps2 = props.okButtonProps,
|
|
128
|
+
var _props$okButtonProps2 = props.okButtonProps,
|
|
106
129
|
okButtonProps = _props$okButtonProps2 === void 0 ? {} : _props$okButtonProps2,
|
|
107
130
|
_props$cancelButtonPr2 = props.cancelButtonProps,
|
|
108
131
|
cancelButtonProps = _props$cancelButtonPr2 === void 0 ? {} : _props$cancelButtonPr2,
|
|
109
132
|
okType = props.okType,
|
|
110
133
|
width = props.width,
|
|
134
|
+
title = props.title,
|
|
135
|
+
subTitle = props.subTitle,
|
|
136
|
+
_props$okText2 = props.okText,
|
|
137
|
+
okText = _props$okText2 === void 0 ? '确定' : _props$okText2,
|
|
138
|
+
_props$cancelText2 = props.cancelText,
|
|
139
|
+
cancelText = _props$cancelText2 === void 0 ? '取消' : _props$cancelText2,
|
|
140
|
+
className = props.className,
|
|
111
141
|
restProps = _objectWithoutProperties(props, _excluded3);
|
|
112
142
|
|
|
113
|
-
return AntdModal.
|
|
143
|
+
return AntdModal.info(_objectSpread({
|
|
114
144
|
okButtonProps: getButtonProps(okButtonProps, 'primary', okType),
|
|
115
145
|
cancelButtonProps: getButtonProps(cancelButtonProps, 'secondary', okType),
|
|
116
146
|
width: width || DEFAULT_WIDTH,
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
147
|
+
className: classNames('ald-modal', className),
|
|
148
|
+
title: ModalTitle({
|
|
149
|
+
icon: /*#__PURE__*/React.createElement(DoubleCircleIcon, {
|
|
150
|
+
type: "info"
|
|
151
|
+
}, /*#__PURE__*/React.createElement(InfoCircleLine, {
|
|
152
|
+
size: 16,
|
|
153
|
+
fill: theme.B40,
|
|
154
|
+
className: "ald-modal-close"
|
|
155
|
+
})),
|
|
156
|
+
title: title,
|
|
157
|
+
subTitle: subTitle
|
|
158
|
+
}),
|
|
159
|
+
okText: okText,
|
|
160
|
+
cancelText: cancelText
|
|
122
161
|
}, restProps));
|
|
123
162
|
};
|
|
124
163
|
|
|
125
164
|
Modal.success = function successFn(props) {
|
|
126
|
-
var
|
|
127
|
-
_props$okButtonProps3 = props.okButtonProps,
|
|
165
|
+
var _props$okButtonProps3 = props.okButtonProps,
|
|
128
166
|
okButtonProps = _props$okButtonProps3 === void 0 ? {} : _props$okButtonProps3,
|
|
129
167
|
_props$cancelButtonPr3 = props.cancelButtonProps,
|
|
130
168
|
cancelButtonProps = _props$cancelButtonPr3 === void 0 ? {} : _props$cancelButtonPr3,
|
|
131
169
|
okType = props.okType,
|
|
132
170
|
width = props.width,
|
|
171
|
+
title = props.title,
|
|
172
|
+
subTitle = props.subTitle,
|
|
173
|
+
_props$okText3 = props.okText,
|
|
174
|
+
okText = _props$okText3 === void 0 ? '确定' : _props$okText3,
|
|
175
|
+
_props$cancelText3 = props.cancelText,
|
|
176
|
+
cancelText = _props$cancelText3 === void 0 ? '取消' : _props$cancelText3,
|
|
177
|
+
className = props.className,
|
|
133
178
|
restProps = _objectWithoutProperties(props, _excluded4);
|
|
134
179
|
|
|
135
180
|
return AntdModal.success(_objectSpread({
|
|
136
181
|
okButtonProps: getButtonProps(okButtonProps, 'primary', okType),
|
|
137
182
|
cancelButtonProps: getButtonProps(cancelButtonProps, 'secondary', okType),
|
|
138
183
|
width: width || DEFAULT_WIDTH,
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
184
|
+
className: classNames('ald-modal', className),
|
|
185
|
+
title: ModalTitle({
|
|
186
|
+
icon: /*#__PURE__*/React.createElement(DoubleCircleIcon, {
|
|
187
|
+
type: "success"
|
|
188
|
+
}, /*#__PURE__*/React.createElement(CheckCircleDuotone, {
|
|
189
|
+
fill: [theme.SA40, theme.ND0],
|
|
190
|
+
size: 16,
|
|
191
|
+
theme: "multi-color"
|
|
192
|
+
})),
|
|
193
|
+
title: title,
|
|
194
|
+
subTitle: subTitle
|
|
195
|
+
}),
|
|
196
|
+
okText: okText,
|
|
197
|
+
cancelText: cancelText
|
|
144
198
|
}, restProps));
|
|
145
199
|
};
|
|
146
200
|
|
|
147
201
|
Modal.error = function errorFn(props) {
|
|
148
|
-
var
|
|
149
|
-
_props$okButtonProps4 = props.okButtonProps,
|
|
202
|
+
var _props$okButtonProps4 = props.okButtonProps,
|
|
150
203
|
okButtonProps = _props$okButtonProps4 === void 0 ? {} : _props$okButtonProps4,
|
|
151
204
|
_props$cancelButtonPr4 = props.cancelButtonProps,
|
|
152
205
|
cancelButtonProps = _props$cancelButtonPr4 === void 0 ? {} : _props$cancelButtonPr4,
|
|
153
206
|
okType = props.okType,
|
|
154
207
|
width = props.width,
|
|
208
|
+
title = props.title,
|
|
209
|
+
subTitle = props.subTitle,
|
|
210
|
+
_props$okText4 = props.okText,
|
|
211
|
+
okText = _props$okText4 === void 0 ? '确定' : _props$okText4,
|
|
212
|
+
_props$cancelText4 = props.cancelText,
|
|
213
|
+
cancelText = _props$cancelText4 === void 0 ? '取消' : _props$cancelText4,
|
|
214
|
+
className = props.className,
|
|
155
215
|
restProps = _objectWithoutProperties(props, _excluded5);
|
|
156
216
|
|
|
157
|
-
return AntdModal.
|
|
217
|
+
return AntdModal.error(_objectSpread({
|
|
158
218
|
okButtonProps: getButtonProps(okButtonProps, 'dangerous', okType),
|
|
159
219
|
cancelButtonProps: getButtonProps(cancelButtonProps, 'secondary', okType),
|
|
160
220
|
width: width || DEFAULT_WIDTH,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
221
|
+
className: classNames('ald-modal', className),
|
|
222
|
+
title: ModalTitle({
|
|
223
|
+
icon: /*#__PURE__*/React.createElement(DoubleCircleIcon, {
|
|
224
|
+
type: "error"
|
|
225
|
+
}, /*#__PURE__*/React.createElement(AlertTriangleDuotone, {
|
|
226
|
+
fill: [theme.SC40, theme.ND0],
|
|
227
|
+
size: 16,
|
|
228
|
+
theme: "multi-color"
|
|
229
|
+
})),
|
|
230
|
+
title: title,
|
|
231
|
+
subTitle: subTitle
|
|
232
|
+
}),
|
|
233
|
+
okText: okText,
|
|
234
|
+
cancelText: cancelText
|
|
166
235
|
}, restProps));
|
|
167
236
|
};
|
|
168
237
|
|
|
169
238
|
Modal.warning = function modalWarn(props) {
|
|
170
|
-
var
|
|
171
|
-
_props$okButtonProps5 = props.okButtonProps,
|
|
239
|
+
var _props$okButtonProps5 = props.okButtonProps,
|
|
172
240
|
okButtonProps = _props$okButtonProps5 === void 0 ? {} : _props$okButtonProps5,
|
|
173
241
|
_props$cancelButtonPr5 = props.cancelButtonProps,
|
|
174
242
|
cancelButtonProps = _props$cancelButtonPr5 === void 0 ? {} : _props$cancelButtonPr5,
|
|
175
243
|
okType = props.okType,
|
|
176
|
-
className = props.className,
|
|
177
244
|
width = props.width,
|
|
245
|
+
title = props.title,
|
|
246
|
+
subTitle = props.subTitle,
|
|
247
|
+
_props$okText5 = props.okText,
|
|
248
|
+
okText = _props$okText5 === void 0 ? '确定' : _props$okText5,
|
|
249
|
+
_props$cancelText5 = props.cancelText,
|
|
250
|
+
cancelText = _props$cancelText5 === void 0 ? '取消' : _props$cancelText5,
|
|
251
|
+
className = props.className,
|
|
178
252
|
restProps = _objectWithoutProperties(props, _excluded6);
|
|
179
253
|
|
|
180
|
-
return AntdModal.
|
|
254
|
+
return AntdModal.warning(_objectSpread({
|
|
181
255
|
okButtonProps: getButtonProps(okButtonProps, 'dangerous', okType),
|
|
182
256
|
cancelButtonProps: getButtonProps(cancelButtonProps, 'secondary', okType),
|
|
183
257
|
width: width || DEFAULT_WIDTH,
|
|
184
|
-
className: classNames('ald-modal-warning', className),
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
258
|
+
// className: classNames('ald-modal-warning', className),
|
|
259
|
+
className: classNames('ald-modal ald-modal-warning', className),
|
|
260
|
+
title: ModalTitle({
|
|
261
|
+
icon: /*#__PURE__*/React.createElement(DoubleCircleIcon, {
|
|
262
|
+
type: "warning"
|
|
263
|
+
}, /*#__PURE__*/React.createElement(AlertTriangleDuotone, {
|
|
264
|
+
fill: [theme.SB40, theme.ND0],
|
|
265
|
+
theme: "multi-color",
|
|
266
|
+
size: 16
|
|
267
|
+
})),
|
|
268
|
+
title: title,
|
|
269
|
+
subTitle: subTitle
|
|
270
|
+
}),
|
|
271
|
+
okText: okText,
|
|
272
|
+
cancelText: cancelText
|
|
190
273
|
}, restProps));
|
|
191
274
|
};
|
|
192
275
|
|
|
193
276
|
Modal.confirm = function confirmFn(props) {
|
|
194
|
-
var
|
|
195
|
-
_props$okButtonProps6 = props.okButtonProps,
|
|
277
|
+
var _props$okButtonProps6 = props.okButtonProps,
|
|
196
278
|
okButtonProps = _props$okButtonProps6 === void 0 ? {} : _props$okButtonProps6,
|
|
197
279
|
_props$cancelButtonPr6 = props.cancelButtonProps,
|
|
198
280
|
cancelButtonProps = _props$cancelButtonPr6 === void 0 ? {} : _props$cancelButtonPr6,
|
|
199
281
|
okType = props.okType,
|
|
200
282
|
width = props.width,
|
|
283
|
+
title = props.title,
|
|
284
|
+
subTitle = props.subTitle,
|
|
285
|
+
className = props.className,
|
|
286
|
+
_props$okText6 = props.okText,
|
|
287
|
+
okText = _props$okText6 === void 0 ? '确定' : _props$okText6,
|
|
288
|
+
_props$cancelText6 = props.cancelText,
|
|
289
|
+
cancelText = _props$cancelText6 === void 0 ? '取消' : _props$cancelText6,
|
|
201
290
|
restProps = _objectWithoutProperties(props, _excluded7);
|
|
202
291
|
|
|
203
|
-
return AntdModal.
|
|
292
|
+
return AntdModal.confirm(_objectSpread({
|
|
204
293
|
okButtonProps: getButtonProps(okButtonProps, 'primary', okType),
|
|
205
294
|
cancelButtonProps: getButtonProps(cancelButtonProps, 'secondary', okType),
|
|
206
295
|
width: width || DEFAULT_WIDTH,
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
296
|
+
className: classNames('ald-modal', className),
|
|
297
|
+
title: ModalTitle({
|
|
298
|
+
icon: /*#__PURE__*/React.createElement(DoubleCircleIcon, {
|
|
299
|
+
type: "info"
|
|
300
|
+
}, /*#__PURE__*/React.createElement(InfoCircleLine, {
|
|
301
|
+
size: 16,
|
|
302
|
+
fill: theme.B40,
|
|
303
|
+
className: "ald-modal-close"
|
|
304
|
+
})),
|
|
305
|
+
title: title,
|
|
306
|
+
subTitle: subTitle
|
|
307
|
+
}),
|
|
308
|
+
okText: okText,
|
|
309
|
+
cancelText: cancelText
|
|
212
310
|
}, restProps));
|
|
213
311
|
};
|
|
214
312
|
|
|
@@ -68,6 +68,15 @@
|
|
|
68
68
|
margin-inline-start: 12px;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
+
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.ald-modal-padding-less{
|
|
75
|
+
.ant-modal-content {
|
|
76
|
+
.ant-modal-body{
|
|
77
|
+
margin: 0 -24px;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
71
80
|
}
|
|
72
81
|
|
|
73
82
|
.ant-modal-confirm {
|
|
@@ -82,8 +91,22 @@
|
|
|
82
91
|
margin-left: 28px;
|
|
83
92
|
}
|
|
84
93
|
}
|
|
94
|
+
|
|
85
95
|
}
|
|
86
96
|
|
|
97
|
+
.ant-modal-confirm-body{
|
|
98
|
+
display: block;
|
|
99
|
+
|
|
100
|
+
> span.anticon{
|
|
101
|
+
display: none;
|
|
102
|
+
|
|
103
|
+
+.ant-modal-confirm-title+.ant-modal-confirm-content{
|
|
104
|
+
margin-left: 0;
|
|
105
|
+
margin-top: 16px;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
87
110
|
.ant-modal-confirm-btns {
|
|
88
111
|
margin-block-start: 16px;
|
|
89
112
|
}
|