@aloudata/aloudata-design 2.13.6 → 2.13.8

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.
@@ -25,7 +25,9 @@ export default function SingleOption(params) {
25
25
  showUserId = params.showUserId;
26
26
  var onClick = function onClick() {
27
27
  if (disabled) return;
28
- onChange === null || onChange === void 0 ? void 0 : onChange(!selected, user);
28
+ if (selected) {
29
+ onChange === null || onChange === void 0 ? void 0 : onChange(selected, user);
30
+ } else onChange === null || onChange === void 0 ? void 0 : onChange(!selected, user);
29
31
  };
30
32
  return /*#__PURE__*/React.createElement("div", {
31
33
  className: classnames('ald-member-picker-option', className, _defineProperty({}, 'ald-member-picker-option-disabled', disabled)),
@@ -79,6 +79,10 @@
79
79
  }
80
80
  }
81
81
 
82
+ .ald-member-picker-breadcrumb-scroll + .ald-member-picker-member-list {
83
+ height: 260px;
84
+ }
85
+
82
86
  .ald-member-picker-selected-member-tags-wrap {
83
87
  width: 50%;
84
88
  max-height: 377px;
@@ -1,6 +1,6 @@
1
1
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
2
  var _excluded = ["className", "type", "loading", "size", "disabled", "shape"],
3
- _excluded2 = ["className", "children", "okType", "width", "closeIcon", "subTitle", "okButtonProps", "cancelButtonProps", "okText", "cancelText", "icon", "title", "paddingLess", "responsiveBounds", "hideHeaderBottomBorder", "virtualScrollBar", "style"],
3
+ _excluded2 = ["className", "children", "okType", "width", "closeIcon", "subTitle", "okButtonProps", "cancelButtonProps", "okText", "cancelText", "icon", "title", "paddingLess", "responsiveBounds", "hideHeaderBottomBorder", "virtualScrollBar", "style", "maskClosable"],
4
4
  _excluded3 = ["okButtonProps", "cancelButtonProps", "okType", "width", "title", "subTitle", "okText", "cancelText", "className"],
5
5
  _excluded4 = ["okButtonProps", "cancelButtonProps", "okType", "width", "title", "subTitle", "okText", "cancelText", "className"],
6
6
  _excluded5 = ["okButtonProps", "cancelButtonProps", "okType", "width", "title", "subTitle", "okText", "cancelText", "className"],
@@ -114,6 +114,8 @@ var OriginModal = function OriginModal(props) {
114
114
  hideHeaderBottomBorder = props.hideHeaderBottomBorder,
115
115
  virtualScrollBar = props.virtualScrollBar,
116
116
  style = props.style,
117
+ _props$maskClosable = props.maskClosable,
118
+ maskClosable = _props$maskClosable === void 0 ? false : _props$maskClosable,
117
119
  restProps = _objectWithoutProperties(props, _excluded2);
118
120
  var responsiveBoundsStyle = useMemo(function () {
119
121
  if (!responsiveBounds) {
@@ -158,6 +160,7 @@ var OriginModal = function OriginModal(props) {
158
160
  cancelButtonProps: getButtonProps(cancelButtonProps, 'secondary'),
159
161
  okText: okText,
160
162
  cancelText: cancelText,
163
+ maskClosable: maskClosable,
161
164
  closeIcon: closeIcon || /*#__PURE__*/React.createElement(IconButton, {
162
165
  icon: /*#__PURE__*/React.createElement(CloseLLine, {
163
166
  size: 20
@@ -165,12 +165,9 @@
165
165
  }
166
166
  // 禁用的样式
167
167
  .ald-radio-label.ald-radio-wrapper-disabled {
168
- cursor: default;
169
-
170
- &.ald-radio-button-wrapper-filled {
171
- .ald-radio-desc {
172
- color: var(--alias-colors-text-disabled, rgba(0, 0, 0, 0.25));
173
- }
168
+ .ald-radio-desc {
169
+ opacity: 0.4;
170
+ cursor: default;
174
171
  }
175
172
  }
176
173
 
@@ -27,7 +27,9 @@
27
27
  display: flex;
28
28
  flex-direction: column;
29
29
  align-items: center;
30
+ justify-content: center;
30
31
  gap: 16px;
32
+ height: 100%;
31
33
 
32
34
  &.spinner-horizontal {
33
35
  flex-direction: row;
@@ -16,9 +16,13 @@ export interface TagProps {
16
16
  */
17
17
  color?: string;
18
18
  /**
19
- * icon 图标
19
+ * 前置 icon 图标
20
20
  */
21
21
  icon?: React.ReactNode;
22
+ /**
23
+ * 后置 icon 图标
24
+ */
25
+ suffixIcon?: React.ReactNode;
22
26
  /**
23
27
  * 大小
24
28
  */
package/dist/Tag/index.js CHANGED
@@ -13,6 +13,7 @@ export default function Tag(props) {
13
13
  onClose = props.onClose,
14
14
  color = props.color,
15
15
  icon = props.icon,
16
+ suffixIcon = props.suffixIcon,
16
17
  _props$size = props.size,
17
18
  size = _props$size === void 0 ? 'middle' : _props$size,
18
19
  status = props.status,
@@ -49,7 +50,9 @@ export default function Tag(props) {
49
50
  }, icon), /*#__PURE__*/React.createElement("span", {
50
51
  className: prefixCls('content'),
51
52
  title: typeof children === 'string' ? children : ''
52
- }, children), closable ? /*#__PURE__*/React.createElement("span", {
53
+ }, children), suffixIcon && /*#__PURE__*/React.createElement("span", {
54
+ className: prefixCls('suffix-icon')
55
+ }, suffixIcon), closable ? /*#__PURE__*/React.createElement("span", {
53
56
  className: prefixCls('close-btn'),
54
57
  onClick: onCloseBtnClick
55
58
  }, /*#__PURE__*/React.createElement(CloseLightLine, {
@@ -54,6 +54,12 @@
54
54
  align-items: center;
55
55
  }
56
56
 
57
+ .ald-tag-suffix-icon {
58
+ flex: 0 0 auto;
59
+ display: inline-flex;
60
+ align-items: center;
61
+ }
62
+
57
63
  /** 禁用 **/
58
64
  &.ald-tag-disabled {
59
65
  cursor: initial;