@aloudata/aloudata-design 2.13.6 → 2.13.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/dist/MemberPicker/components/SingleOption.js +3 -1
- package/dist/MemberPicker/style/index.less +4 -0
- package/dist/Modal/index.js +4 -1
- package/dist/Tag/index.d.ts +5 -1
- package/dist/Tag/index.js +4 -1
- package/dist/Tag/style/index.less +6 -0
- package/dist/ald.min.css +1 -1
- package/dist/style/index.less +11 -0
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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)),
|
package/dist/Modal/index.js
CHANGED
|
@@ -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
|
package/dist/Tag/index.d.ts
CHANGED
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),
|
|
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, {
|