@aloudata/aloudata-design 0.4.8-beta.9 → 0.4.9

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.
@@ -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 = ["icon", "okButtonProps", "cancelButtonProps", "okType", "width"],
4
- _excluded4 = ["icon", "okButtonProps", "cancelButtonProps", "okType", "width"],
5
- _excluded5 = ["icon", "okButtonProps", "cancelButtonProps", "okType", "width"],
6
- _excluded6 = ["icon", "okButtonProps", "cancelButtonProps", "okType", "className", "width"],
7
- _excluded7 = ["icon", "okButtonProps", "cancelButtonProps", "okType", "width"];
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 ? "确定" : _props$okText,
85
+ okText = _props$okText === void 0 ? '确定' : _props$okText,
70
86
  _props$cancelText = props.cancelText,
71
- cancelText = _props$cancelText === void 0 ? "取消" : _props$cancelText,
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: /*#__PURE__*/React.createElement("div", {
78
- className: 'ald-modal-title-container'
79
- }, icon, /*#__PURE__*/React.createElement("div", {
80
- className: 'ald-modal-text-container'
81
- }, title && /*#__PURE__*/React.createElement("div", {
82
- className: 'title'
83
- }, title), subTitle && /*#__PURE__*/React.createElement("div", {
84
- className: 'subTitle'
85
- }, subTitle))),
86
- className: classNames('ald-modal', 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 icon = props.icon,
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.success(_objectSpread({
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
- icon: icon || /*#__PURE__*/React.createElement(InfoCircleLine, {
118
- size: 16,
119
- fill: theme.B40,
120
- className: "ald-modal-close"
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 icon = props.icon,
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
- icon: icon || /*#__PURE__*/React.createElement(CheckCircleDuotone, {
140
- fill: [theme.SA40, theme.ND0],
141
- size: 16,
142
- theme: "multi-color"
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 icon = props.icon,
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.success(_objectSpread({
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
- icon: icon || /*#__PURE__*/React.createElement(AlertTriangleDuotone, {
162
- fill: [theme.SC40, theme.ND0],
163
- size: 16,
164
- theme: "multi-color"
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 icon = props.icon,
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.success(_objectSpread({
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
- icon: icon || /*#__PURE__*/React.createElement(AlertTriangleDuotone, {
186
- fill: [theme.SB40, theme.ND0],
187
- theme: "multi-color",
188
- size: 16
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 icon = props.icon,
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.success(_objectSpread({
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
- icon: icon || /*#__PURE__*/React.createElement(InfoCircleLine, {
208
- size: 16,
209
- fill: theme.SB40,
210
- className: "ald-modal-close"
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
 
@@ -2,10 +2,11 @@
2
2
 
3
3
  .ald-modal {
4
4
  .ant-modal-content {
5
- padding: 16px 24px;
5
+ padding: 15px 23px;
6
6
  box-shadow: 0 20px 24px -4px rgb(16 24 40 / 8%),
7
7
  0 8px 8px -4px rgb(16 24 40 / 3%);
8
8
  border-radius: 4px;
9
+ border:1px solid @BG60;
9
10
  }
10
11
 
11
12
  .ald-modal-close {
@@ -68,6 +69,15 @@
68
69
  margin-inline-start: 12px;
69
70
  }
70
71
  }
72
+
73
+ }
74
+
75
+ .ald-modal-padding-less{
76
+ .ant-modal-content {
77
+ .ant-modal-body{
78
+ margin: 0 -24px;
79
+ }
80
+ }
71
81
  }
72
82
 
73
83
  .ant-modal-confirm {
@@ -82,8 +92,22 @@
82
92
  margin-left: 28px;
83
93
  }
84
94
  }
95
+
85
96
  }
86
97
 
98
+ .ant-modal-confirm-body{
99
+ display: block;
100
+
101
+ > span.anticon{
102
+ display: none;
103
+
104
+ +.ant-modal-confirm-title+.ant-modal-confirm-content{
105
+ margin-left: 0;
106
+ margin-top: 16px;
107
+ }
108
+ }
109
+ }
110
+
87
111
  .ant-modal-confirm-btns {
88
112
  margin-block-start: 16px;
89
113
  }
@@ -70,8 +70,10 @@ export default function RadioGroup(props) {
70
70
  }
71
71
  }, /*#__PURE__*/React.createElement("div", {
72
72
  className: getWrapperClass()
73
- }, children, radioGroupStyle === 'filled' && type !== 'radio' ? /*#__PURE__*/React.createElement("div", {
74
- className: "ald-radio-filled-slider",
73
+ }, children, (radioGroupStyle === 'filled' || radioGroupStyle === 'filter') && type !== 'radio' ? /*#__PURE__*/React.createElement("div", {
74
+ className: classNames('ald-radio-filled-slider ', {
75
+ 'ald-radio-filled-slider-filter': radioGroupStyle === 'filter'
76
+ }),
75
77
  ref: sliderRef
76
78
  }) : null));
77
79
  }
@@ -37,6 +37,8 @@ export default function Radio(props) {
37
37
  otherClass = 'ald-radio-button-wrapper-filled';
38
38
  } else if (groupContext.radioGroupStyle === 'border') {
39
39
  otherClass = 'ald-radio-button-wrapper-border';
40
+ } else if (groupContext.radioGroupStyle === 'filter') {
41
+ otherClass = 'ald-radio-button-wrapper-filter';
40
42
  } else {
41
43
  otherClass = 'ald-radio-button-wrapper-border-primary';
42
44
  }
@@ -45,6 +47,8 @@ export default function Radio(props) {
45
47
  otherClass = 'ald-radio-icon-button-wrapper-filled';
46
48
  } else if (groupContext.radioGroupStyle === 'border') {
47
49
  otherClass = 'ald-radio-icon-button-wrapper-border';
50
+ } else if (groupContext.radioGroupStyle === 'filter') {
51
+ otherClass = 'ald-radio-icon-button-wrapper-filter';
48
52
  } else {
49
53
  otherClass = 'ald-radio-icon-button-wrapper-border-primary';
50
54
  }
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- export declare type TRadioGroupStyle = 'border' | 'filled' | 'borderPrimary';
2
+ export declare type TRadioGroupStyle = 'border' | 'filled' | 'borderPrimary' | 'filter';
3
3
  export declare type TRadioSize = 'large' | 'middle' | 'small' | 'default';
4
4
  export declare type TRadioType = 'radio' | 'button' | 'iconButton';
5
5
  export interface IRadioGroupProps {
@@ -12,7 +12,7 @@
12
12
  @radio-button-padding-middle: 12px;
13
13
 
14
14
  // Radio组件基础样式
15
- [class^="ald-radio"] {
15
+ [class^='ald-radio'] {
16
16
  box-sizing: border-box;
17
17
  }
18
18
 
@@ -120,7 +120,9 @@
120
120
  .ald-radio-button-wrapper-border-primary,
121
121
  .ald-radio-button-wrapper-border,
122
122
  .ald-radio-icon-button-wrapper-border,
123
- .ald-radio-icon-button-wrapper-border-primary {
123
+ .ald-radio-icon-button-wrapper-border-primary,
124
+ .ald-radio-button-wrapper-filter,
125
+ .ald-radio-icon-button-wrapper-filter {
124
126
  &.ald-radio-label.ald-radio-wrapper-disabled {
125
127
  opacity: 0.5;
126
128
 
@@ -167,6 +169,11 @@
167
169
  transition: width, left, height 0.3s, 0.3s, 0.3s ease;
168
170
  }
169
171
 
172
+ .ald-radio-filled-slider-filter {
173
+ background: @B90;
174
+ border: 0;
175
+ }
176
+
170
177
  // button状态下的样式
171
178
  .ald-radio-group-button,
172
179
  .ald-radio-group-icon-button {
@@ -241,34 +248,37 @@
241
248
  .ald-radio-wrapper-checked.ald-radio-icon-button-wrapper-border,
242
249
  .ald-radio-wrapper-checked.ald-radio-icon-button-wrapper-border-primary {
243
250
  background: @BG80;
244
- transition: background 0.5s ease;
251
+ transition: background 0.3s ease;
245
252
 
246
253
  .ald-radio-desc {
247
254
  position: relative;
248
255
  color: @NL0;
249
- transition: text-shadow 0.5s ease;
256
+ transition: text-shadow 0.3s ease, color 0.3s ease;
250
257
  }
251
258
  }
252
259
 
253
260
  .ald-radio-wrapper-checked.ald-radio-button-wrapper-border-primary,
254
261
  .ald-radio-wrapper-checked.ald-radio-icon-button-wrapper-border-primary {
255
262
  background: @B40;
256
- transition: background 0.5s ease;
263
+ transition: background 0.3s ease;
257
264
 
258
265
  .ald-radio-desc {
259
266
  position: relative;
260
267
  color: @ND0;
261
- transition: text-shadow 0.5s ease;
268
+ transition: text-shadow 0.3s ease, color 0.3s ease;
262
269
  }
263
270
  }
264
271
 
265
272
  // filled样式的button
266
- .ald-radio-button-wrapper-filled {
273
+ .ald-radio-button-wrapper-filled,
274
+ .ald-radio-button-wrapper-filter {
267
275
  padding: 0 @radio-button-padding;
268
276
  }
269
277
 
270
278
  .ald-radio-button-wrapper-filled,
271
- .ald-radio-icon-button-wrapper-filled {
279
+ .ald-radio-icon-button-wrapper-filled,
280
+ .ald-radio-button-wrapper-filter,
281
+ .ald-radio-icon-button-wrapper-filter {
272
282
  position: relative;
273
283
  display: flex;
274
284
  align-items: center;
@@ -300,21 +310,40 @@
300
310
  }
301
311
 
302
312
  .ald-radio-desc {
303
- font-weight: 400;
313
+ font-weight: 600;
304
314
  }
305
315
  }
306
316
 
317
+ .ald-radio-button-wrapper-filter,
318
+ .ald-radio-icon-button-wrapper-filter {
319
+ background-color: @BG100;
320
+ }
321
+
307
322
  .ald-radio-wrapper-checked.ald-radio-button-wrapper-filled,
308
323
  .ald-radio-wrapper-checked.ald-radio-icon-button-wrapper-filled {
309
324
  position: relative;
310
325
 
311
326
  .ald-radio-desc {
312
327
  position: relative;
313
- font-weight: 400;
328
+ font-weight: 600;
329
+ z-index: 2;
330
+ color: @NL0;
331
+ }
332
+ }
333
+
334
+ .ald-radio-wrapper-checked.ald-radio-button-wrapper-filter,
335
+ .ald-radio-wrapper-checked.ald-radio-icon-button-wrapper-filter {
336
+ position: relative;
337
+ border-radius: @border-radius-middle;
338
+
339
+ .ald-radio-desc {
340
+ position: relative;
341
+ font-weight: 600;
314
342
  z-index: 2;
315
343
  color: @NL0;
316
344
  }
317
345
  }
346
+
318
347
  // 各种大小
319
348
  &.ald-radio-group-middle {
320
349
  height: @radio-group-height-middle;
@@ -325,8 +354,15 @@
325
354
  }
326
355
  }
327
356
 
328
- .ald-radio-icon-button-wrapper-filled {
357
+ .ald-radio-icon-button-wrapper-filled,
358
+ .ald-radio-icon-button-wrapper-filter {
329
359
  padding: 0 @radio-icon-button-padding-middle;
360
+
361
+ &.ald-radio-label {
362
+ .ald-radio-desc {
363
+ font-size: @font-size-middle + 1;
364
+ }
365
+ }
330
366
  }
331
367
 
332
368
  .ald-radio-button-wrapper-border,
@@ -335,8 +371,9 @@
335
371
  }
336
372
 
337
373
  .ald-radio-icon-button-wrapper-border,
338
- .ald-radio-icon-button-wrapper-border-primary {
339
- padding: 0 @radio-icon-button-padding-middle - 1;
374
+ .ald-radio-icon-button-wrapper-border-primary,
375
+ .ald-radio-icon-button-wrapper-filter {
376
+ padding: 0 @radio-icon-button-padding-middle;
340
377
 
341
378
  &.ald-radio-label .ald-radio-desc {
342
379
  font-size: 14px;
@@ -358,8 +395,15 @@
358
395
  }
359
396
  }
360
397
 
361
- .ald-radio-icon-button-wrapper-filled {
398
+ .ald-radio-icon-button-wrapper-filled,
399
+ .ald-radio-icon-button-wrapper-filter {
362
400
  padding: 0 @radio-icon-button-padding-small;
401
+
402
+ &.ald-radio-label {
403
+ .ald-radio-desc {
404
+ font-size: 14px;
405
+ }
406
+ }
363
407
  }
364
408
 
365
409
  .ald-radio-button-wrapper-border,
@@ -369,7 +413,7 @@
369
413
 
370
414
  .ald-radio-icon-button-wrapper-border,
371
415
  .ald-radio-icon-button-wrapper-border-primary {
372
- padding: 0 @radio-icon-button-padding-small - 1;
416
+ padding: 0 @radio-icon-button-padding-small;
373
417
 
374
418
  &.ald-radio-label .ald-radio-desc {
375
419
  font-size: 14px;
@@ -396,6 +440,11 @@
396
440
  }
397
441
  }
398
442
 
443
+ .ald-radio-button-wrapper-filter,
444
+ .ald-radio-icon-button-wrapper-filter {
445
+ border-radius: @border-radius-small;
446
+ }
447
+
399
448
  .ald-radio-filled-slider {
400
449
  border-radius: @border-radius-small;
401
450
  }
@@ -410,8 +459,15 @@
410
459
  }
411
460
  }
412
461
 
413
- .ald-radio-icon-button-wrapper-filled {
462
+ .ald-radio-icon-button-wrapper-filled,
463
+ .ald-radio-icon-button-wrapper-filter {
414
464
  padding: 0 @radio-icon-button-padding-large;
465
+
466
+ &.ald-radio-label {
467
+ .ald-radio-desc {
468
+ font-size: 20px;
469
+ }
470
+ }
415
471
  }
416
472
 
417
473
  .ald-radio-button-wrapper-border,
@@ -448,6 +504,11 @@
448
504
  }
449
505
  }
450
506
 
507
+ .ald-radio-button-wrapper-filter,
508
+ .ald-radio-icon-button-wrapper-filter {
509
+ border-radius: @border-radius-large;
510
+ }
511
+
451
512
  .ald-radio-filled-slider {
452
513
  border-radius: @border-radius-large;
453
514
  }
@@ -1,4 +1,4 @@
1
- var _excluded = ["mode", "options", "dropdownRender", "onDropdownVisibleChange", "defaultValue", "onChange", "open", "defaultOpen", "prefix", "className", "popupClassName", "listHeight", "listItemHeight", "notFoundContent", "value", "style"];
1
+ var _excluded = ["mode", "options", "dropdownRender", "onDropdownVisibleChange", "defaultValue", "onChange", "open", "defaultOpen", "prefix", "className", "popupClassName", "listHeight", "listItemHeight", "notFoundContent", "value", "tagRender", "style"];
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
 
@@ -105,9 +105,10 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
105
105
  notFoundContent = _props$notFoundConten === void 0 ? /*#__PURE__*/React.createElement(Empty, {
106
106
  image: Empty.PRESENTED_IMAGE_SEARCH_SMALL,
107
107
  size: "small",
108
- title: "No data"
108
+ title: "\u65E0\u6570\u636E"
109
109
  }) : _props$notFoundConten,
110
110
  value = props.value,
111
+ tagRender = props.tagRender,
111
112
  _props$style = props.style,
112
113
  style = _props$style === void 0 ? {} : _props$style,
113
114
  restProps = _objectWithoutProperties(props, _excluded);
@@ -260,8 +261,7 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
260
261
  return /*#__PURE__*/React.createElement(React.Fragment, null, notFoundContent);
261
262
  };
262
263
  }
263
- }; // todo: tagRender
264
- // todo: 隐藏已选择项
264
+ }; // todo: 隐藏已选择项
265
265
  // todo: 分组
266
266
 
267
267
 
@@ -285,7 +285,7 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
285
285
  '--ald-select-prefix-width': "".concat(prefixWidth, "px")
286
286
  };
287
287
 
288
- var tagRender = function tagRender(props) {
288
+ var defaultTagRender = function defaultTagRender(props) {
289
289
  var label = props.label;
290
290
  return /*#__PURE__*/React.createElement("span", {
291
291
  className: "ald-select-multiple-tag-default"
@@ -329,7 +329,7 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
329
329
  open: typeof open === 'boolean' ? open : isOpen,
330
330
  maxTagCount: "responsive",
331
331
  ref: ref,
332
- tagRender: tagRender,
332
+ tagRender: tagRender || defaultTagRender,
333
333
  onChange: onChange,
334
334
  popupClassName: classNames('ald-select-popup', popupClassName),
335
335
  maxTagPlaceholder: maxTagPlaceholder,