@autobest-ui/components 1.3.0 → 2.0.0
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/esm/accordion/Item.d.ts +1 -1
- package/esm/accordion/Item.js +5 -3
- package/esm/accordion/index.d.ts +1 -1
- package/esm/accordion/index.js +5 -3
- package/esm/affix/PortalAffix.js +7 -7
- package/esm/affix/index.js +19 -17
- package/esm/carousel/index.js +16 -14
- package/esm/checkbox/index.js +19 -17
- package/esm/collapse/index.js +13 -11
- package/esm/confirm/index.d.ts +1 -1
- package/esm/confirm/index.js +14 -14
- package/esm/date-picker/calendar/Day.d.ts +1 -1
- package/esm/date-picker/calendar/Day.js +11 -11
- package/esm/date-picker/calendar/MonthYear.js +8 -8
- package/esm/date-picker/calendar/grid/index.js +18 -18
- package/esm/date-picker/calendar/index.js +7 -5
- package/esm/date-picker/calendar/types.js +1 -0
- package/esm/date-picker/index.js +15 -13
- package/esm/drawer/Child.js +6 -6
- package/esm/drawer/index.js +11 -9
- package/esm/ellipsis/index.js +4 -4
- package/esm/guide/index.d.ts +4 -5
- package/esm/guide/index.js +19 -19
- package/esm/index.d.ts +0 -1
- package/esm/index.js +0 -1
- package/esm/input-number/index.d.ts +4 -4
- package/esm/input-number/index.js +27 -25
- package/esm/lazy-image/index.d.ts +3 -3
- package/esm/lazy-image/index.js +6 -4
- package/esm/link-list/index.js +24 -22
- package/esm/link-list/style/index.css +1 -1
- package/esm/loading/index.d.ts +7 -2
- package/esm/loading/index.js +20 -26
- package/esm/loading/style/index.css +1 -1
- package/esm/loading/style/index.scss +0 -10
- package/esm/loading-bar/index.d.ts +1 -0
- package/esm/loading-bar/index.js +3 -3
- package/esm/loading-container/index.js +6 -6
- package/esm/loading-icon/index.js +12 -12
- package/esm/mask/index.js +4 -4
- package/esm/message/index.js +14 -14
- package/esm/modal/Affix.d.ts +1 -0
- package/esm/modal/Affix.js +1 -1
- package/esm/modal/Title.js +9 -9
- package/esm/modal/getPopupLocation.js +1 -1
- package/esm/modal/index.d.ts +1 -1
- package/esm/modal/index.js +21 -19
- package/esm/modal/style/index.css +1 -1
- package/esm/move/index.d.ts +1 -1
- package/esm/move/index.js +14 -12
- package/esm/popover/index.js +9 -9
- package/esm/portal/index.js +5 -3
- package/esm/script/index.js +8 -6
- package/esm/select/index.d.ts +3 -3
- package/esm/select/index.js +34 -36
- package/esm/show-more/index.js +14 -12
- package/esm/skeleton/Item.js +3 -3
- package/esm/skeleton/index.js +11 -15
- package/esm/style.css +9 -10
- package/esm/table/body/BodyRow.js +8 -8
- package/esm/table/body/CheckIcon.js +7 -7
- package/esm/table/body/index.d.ts +1 -1
- package/esm/table/body/index.js +6 -6
- package/esm/table/header/CheckIcon.js +6 -6
- package/esm/table/header/HeaderCell.d.ts +1 -1
- package/esm/table/header/HeaderCell.js +10 -8
- package/esm/table/header/HeaderRow.d.ts +1 -0
- package/esm/table/header/HeaderRow.js +2 -2
- package/esm/table/index.d.ts +3 -7
- package/esm/table/index.js +20 -18
- package/esm/table/interface.js +1 -0
- package/esm/tabs/index.d.ts +1 -1
- package/esm/tabs/index.js +14 -12
- package/esm/tooltip/index.d.ts +1 -0
- package/esm/tooltip/index.js +1 -1
- package/esm/trigger/bottomAlign.js +2 -2
- package/esm/trigger/getPopupLocation.js +2 -1
- package/esm/trigger/index.d.ts +4 -4
- package/esm/trigger/index.js +24 -22
- package/esm/trigger/leftAlign.js +2 -2
- package/esm/trigger/rightAlign.js +2 -2
- package/esm/trigger/topAlign.js +2 -2
- package/esm/trigger/utils.js +2 -2
- package/lib/accordion/Item.d.ts +1 -1
- package/lib/accordion/Item.js +5 -3
- package/lib/accordion/index.d.ts +1 -1
- package/lib/accordion/index.js +5 -3
- package/lib/affix/PortalAffix.js +7 -7
- package/lib/affix/index.js +19 -17
- package/lib/carousel/index.js +16 -14
- package/lib/checkbox/index.js +19 -17
- package/lib/collapse/index.js +13 -11
- package/lib/confirm/index.d.ts +1 -1
- package/lib/confirm/index.js +14 -14
- package/lib/date-picker/calendar/Day.d.ts +1 -1
- package/lib/date-picker/calendar/Day.js +12 -12
- package/lib/date-picker/calendar/MonthYear.js +9 -9
- package/lib/date-picker/calendar/grid/index.js +18 -18
- package/lib/date-picker/calendar/index.js +8 -6
- package/lib/date-picker/calendar/types.js +5 -1
- package/lib/date-picker/index.js +15 -13
- package/lib/date-picker/utils.js +8 -8
- package/lib/drawer/Child.js +6 -6
- package/lib/drawer/index.js +11 -9
- package/lib/ellipsis/index.js +4 -4
- package/lib/guide/index.d.ts +4 -5
- package/lib/guide/index.js +19 -20
- package/lib/index.d.ts +0 -1
- package/lib/index.js +54 -62
- package/lib/input-number/index.d.ts +4 -4
- package/lib/input-number/index.js +27 -25
- package/lib/lazy-image/index.d.ts +3 -3
- package/lib/lazy-image/index.js +6 -4
- package/lib/link-list/index.js +24 -22
- package/lib/link-list/style/index.css +1 -1
- package/lib/loading/index.d.ts +7 -2
- package/lib/loading/index.js +20 -27
- package/lib/loading/style/index.css +1 -1
- package/lib/loading/style/index.scss +0 -10
- package/lib/loading-bar/index.d.ts +1 -0
- package/lib/loading-bar/index.js +3 -3
- package/lib/loading-container/index.js +6 -6
- package/lib/loading-icon/index.js +12 -12
- package/lib/mask/index.js +4 -4
- package/lib/message/index.js +14 -14
- package/lib/modal/Affix.d.ts +1 -0
- package/lib/modal/Affix.js +1 -1
- package/lib/modal/Title.js +9 -9
- package/lib/modal/getPopupLocation.js +1 -1
- package/lib/modal/index.d.ts +1 -1
- package/lib/modal/index.js +22 -20
- package/lib/modal/style/index.css +1 -1
- package/lib/move/index.d.ts +1 -1
- package/lib/move/index.js +14 -12
- package/lib/popover/index.js +9 -9
- package/lib/portal/index.js +5 -3
- package/lib/script/index.js +8 -6
- package/lib/select/index.d.ts +3 -3
- package/lib/select/index.js +34 -36
- package/lib/show-more/index.js +14 -12
- package/lib/skeleton/Item.js +3 -3
- package/lib/skeleton/index.js +11 -15
- package/lib/style.css +9 -10
- package/lib/table/body/BodyRow.js +8 -8
- package/lib/table/body/CheckIcon.js +7 -7
- package/lib/table/body/index.d.ts +1 -1
- package/lib/table/body/index.js +6 -6
- package/lib/table/header/CheckIcon.js +6 -6
- package/lib/table/header/HeaderCell.d.ts +1 -1
- package/lib/table/header/HeaderCell.js +10 -8
- package/lib/table/header/HeaderRow.d.ts +1 -0
- package/lib/table/header/HeaderRow.js +2 -2
- package/lib/table/index.d.ts +3 -7
- package/lib/table/index.js +20 -18
- package/lib/table/interface.js +5 -1
- package/lib/tabs/index.d.ts +1 -1
- package/lib/tabs/index.js +14 -12
- package/lib/tooltip/index.d.ts +1 -0
- package/lib/tooltip/index.js +1 -1
- package/lib/trigger/align.js +24 -24
- package/lib/trigger/bottomAlign.js +3 -3
- package/lib/trigger/constants.js +1 -1
- package/lib/trigger/getPopupLocation.js +2 -1
- package/lib/trigger/index.d.ts +4 -4
- package/lib/trigger/index.js +25 -23
- package/lib/trigger/leftAlign.js +3 -3
- package/lib/trigger/ref.js +1 -1
- package/lib/trigger/rightAlign.js +3 -3
- package/lib/trigger/topAlign.js +3 -3
- package/lib/trigger/utils.js +4 -4
- package/package.json +1 -1
- package/esm/use-config/index.d.ts +0 -5
- package/esm/use-config/index.js +0 -13
- package/esm/use-config/style/index.css +0 -0
- package/esm/use-config/style/index.d.ts +0 -1
- package/esm/use-config/style/index.js +0 -1
- package/esm/use-config/style/index.scss +0 -0
- package/lib/use-config/index.d.ts +0 -5
- package/lib/use-config/index.js +0 -21
- package/lib/use-config/style/index.css +0 -0
- package/lib/use-config/style/index.d.ts +0 -1
- package/lib/use-config/style/index.js +0 -1
- package/lib/use-config/style/index.scss +0 -0
|
@@ -21,7 +21,7 @@ var __extends = void 0 && (void 0).__extends || function () {
|
|
|
21
21
|
d.__proto__ = b;
|
|
22
22
|
} || function (d, b) {
|
|
23
23
|
for (var p in b) {
|
|
24
|
-
if (
|
|
24
|
+
if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
|
|
@@ -29,6 +29,8 @@ var __extends = void 0 && (void 0).__extends || function () {
|
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
return function (d, b) {
|
|
32
|
+
if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
33
|
+
|
|
32
34
|
_extendStatics(d, b);
|
|
33
35
|
|
|
34
36
|
function __() {
|
|
@@ -65,7 +67,7 @@ function (_super) {
|
|
|
65
67
|
function InputNumber(props) {
|
|
66
68
|
var _this = _super.call(this, props) || this;
|
|
67
69
|
|
|
68
|
-
_this.currentRef = _react.default.createRef();
|
|
70
|
+
_this.currentRef = /*#__PURE__*/_react.default.createRef();
|
|
69
71
|
|
|
70
72
|
_this.onFocus = function (e) {
|
|
71
73
|
var _a = _this.props,
|
|
@@ -145,19 +147,19 @@ function (_super) {
|
|
|
145
147
|
|
|
146
148
|
if (isAdd) {
|
|
147
149
|
inputEl.style.cursor = 'default';
|
|
148
|
-
addBtnEl.setAttribute('class', cls
|
|
150
|
+
addBtnEl.setAttribute('class', "".concat(cls, "-button ").concat(cls, "-hover"));
|
|
149
151
|
return;
|
|
150
152
|
}
|
|
151
153
|
|
|
152
154
|
if (isSub) {
|
|
153
155
|
inputEl.style.cursor = 'default';
|
|
154
|
-
subBtnEl.setAttribute('class', cls
|
|
156
|
+
subBtnEl.setAttribute('class', "".concat(cls, "-button ").concat(cls, "-hover"));
|
|
155
157
|
return;
|
|
156
158
|
}
|
|
157
159
|
|
|
158
160
|
inputEl.style.cursor = 'text';
|
|
159
|
-
addBtnEl.setAttribute('class', cls
|
|
160
|
-
subBtnEl.setAttribute('class', cls
|
|
161
|
+
addBtnEl.setAttribute('class', "".concat(cls, "-button"));
|
|
162
|
+
subBtnEl.setAttribute('class', "".concat(cls, "-button"));
|
|
161
163
|
};
|
|
162
164
|
|
|
163
165
|
_this.onMouseDown = function (ev) {
|
|
@@ -185,13 +187,13 @@ function (_super) {
|
|
|
185
187
|
isSub = _b.isSub;
|
|
186
188
|
|
|
187
189
|
if (isAdd) {
|
|
188
|
-
addBtnEl.setAttribute('class', cls
|
|
190
|
+
addBtnEl.setAttribute('class', "".concat(cls, "-button ").concat(cls, "-active"));
|
|
189
191
|
|
|
190
192
|
_this.onAdd();
|
|
191
193
|
}
|
|
192
194
|
|
|
193
195
|
if (isSub) {
|
|
194
|
-
subBtnEl.setAttribute('class', cls
|
|
196
|
+
subBtnEl.setAttribute('class', "".concat(cls, "-button ").concat(cls, "-active"));
|
|
195
197
|
|
|
196
198
|
_this.onSub();
|
|
197
199
|
}
|
|
@@ -211,8 +213,8 @@ function (_super) {
|
|
|
211
213
|
subBtnEl = _a.subBtnEl;
|
|
212
214
|
|
|
213
215
|
if (addBtnEl && subBtnEl) {
|
|
214
|
-
addBtnEl.setAttribute('class', cls
|
|
215
|
-
subBtnEl.setAttribute('class', cls
|
|
216
|
+
addBtnEl.setAttribute('class', "".concat(cls, "-button"));
|
|
217
|
+
subBtnEl.setAttribute('class', "".concat(cls, "-button"));
|
|
216
218
|
} // 重新添加move事件
|
|
217
219
|
|
|
218
220
|
|
|
@@ -327,7 +329,7 @@ function (_super) {
|
|
|
327
329
|
}
|
|
328
330
|
|
|
329
331
|
var resultArr = value.split('.');
|
|
330
|
-
return resultArr[0]
|
|
332
|
+
return "".concat(resultArr[0], ".").concat((resultArr[1] || '').padEnd(digital, '0'));
|
|
331
333
|
};
|
|
332
334
|
|
|
333
335
|
_this.onChangePackMultipleValue = function (value) {
|
|
@@ -450,7 +452,7 @@ function (_super) {
|
|
|
450
452
|
|
|
451
453
|
|
|
452
454
|
if (digital) {
|
|
453
|
-
currentValue = new RegExp("[^.]+([.](\\d{0,"
|
|
455
|
+
currentValue = new RegExp("[^.]+([.](\\d{0,".concat(digital, "}))?")).exec(currentValue)[0].toString();
|
|
454
456
|
}
|
|
455
457
|
|
|
456
458
|
var valueNumber = parseFloat(currentValue);
|
|
@@ -529,18 +531,18 @@ function (_super) {
|
|
|
529
531
|
|
|
530
532
|
|
|
531
533
|
_this.renderButton = function () {
|
|
532
|
-
return _react.default.createElement("div", {
|
|
533
|
-
className: cls
|
|
534
|
-
}, _react.default.createElement("div", {
|
|
535
|
-
className: cls
|
|
534
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
535
|
+
className: "".concat(cls, "-button-wrap")
|
|
536
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
537
|
+
className: "".concat(cls, "-button"),
|
|
536
538
|
onClick: _this.onAdd
|
|
537
|
-
}, _react.default.createElement("div", {
|
|
538
|
-
className: cls
|
|
539
|
-
})), _react.default.createElement("div", {
|
|
540
|
-
className: cls
|
|
539
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
540
|
+
className: "".concat(cls, "-add")
|
|
541
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
542
|
+
className: "".concat(cls, "-button"),
|
|
541
543
|
onClick: _this.onSub
|
|
542
|
-
}, _react.default.createElement("div", {
|
|
543
|
-
className: cls
|
|
544
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
545
|
+
className: "".concat(cls, "-sub")
|
|
544
546
|
})));
|
|
545
547
|
};
|
|
546
548
|
|
|
@@ -609,10 +611,10 @@ function (_super) {
|
|
|
609
611
|
var inputStyle = visibleButton ? {
|
|
610
612
|
paddingRight: '.2rem'
|
|
611
613
|
} : {};
|
|
612
|
-
return _react.default.createElement("label", {
|
|
613
|
-
className: cls
|
|
614
|
+
return /*#__PURE__*/_react.default.createElement("label", {
|
|
615
|
+
className: "".concat(cls, "-wrap"),
|
|
614
616
|
ref: this.currentRef
|
|
615
|
-
}, _react.default.createElement("input", __assign({}, copyProps, {
|
|
617
|
+
}, /*#__PURE__*/_react.default.createElement("input", __assign({}, copyProps, {
|
|
616
618
|
className: (0, _classnames.default)(cls, className),
|
|
617
619
|
type: "text",
|
|
618
620
|
onChange: this.onValueChange,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { MouseEventHandler } from 'react';
|
|
1
|
+
import React, { MouseEventHandler, MouseEvent } from 'react';
|
|
2
2
|
export interface LazyImageProps {
|
|
3
3
|
/**
|
|
4
4
|
* 需要显示的图片
|
|
@@ -71,8 +71,8 @@ declare class LazyImage extends React.Component<LazyImageProps, LazyImageStates>
|
|
|
71
71
|
* 监听原生lazy loading, 并回调不同的事件
|
|
72
72
|
*/
|
|
73
73
|
originalLazyLoad: () => void;
|
|
74
|
-
onMouseOut: (ev:
|
|
75
|
-
onMouseOver: (ev:
|
|
74
|
+
onMouseOut: (ev: MouseEvent<HTMLImageElement>) => void;
|
|
75
|
+
onMouseOver: (ev: MouseEvent<HTMLImageElement>) => void;
|
|
76
76
|
render(): JSX.Element;
|
|
77
77
|
}
|
|
78
78
|
export default LazyImage;
|
package/lib/lazy-image/index.js
CHANGED
|
@@ -19,7 +19,7 @@ var __extends = void 0 && (void 0).__extends || function () {
|
|
|
19
19
|
d.__proto__ = b;
|
|
20
20
|
} || function (d, b) {
|
|
21
21
|
for (var p in b) {
|
|
22
|
-
if (
|
|
22
|
+
if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
|
|
@@ -27,6 +27,8 @@ var __extends = void 0 && (void 0).__extends || function () {
|
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
return function (d, b) {
|
|
30
|
+
if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
31
|
+
|
|
30
32
|
_extendStatics(d, b);
|
|
31
33
|
|
|
32
34
|
function __() {
|
|
@@ -64,7 +66,7 @@ function (_super) {
|
|
|
64
66
|
var _this = _super.call(this, props) || this;
|
|
65
67
|
|
|
66
68
|
_this.prefixCls = 'ab-lazy-image';
|
|
67
|
-
_this.rootRef = _react.default.createRef();
|
|
69
|
+
_this.rootRef = /*#__PURE__*/_react.default.createRef();
|
|
68
70
|
_this.isUnmount = false;
|
|
69
71
|
/**
|
|
70
72
|
* 监听原生lazy loading, 并回调不同的事件
|
|
@@ -203,10 +205,10 @@ function (_super) {
|
|
|
203
205
|
delete props.active;
|
|
204
206
|
delete props.onLoading;
|
|
205
207
|
delete props.onLoaded;
|
|
206
|
-
return _react.default.createElement("img", __assign({
|
|
208
|
+
return /*#__PURE__*/_react.default.createElement("img", __assign({
|
|
207
209
|
alt: ""
|
|
208
210
|
}, props, {
|
|
209
|
-
className: (0, _classnames.default)(cls, className, (_a = {}, _a[cls
|
|
211
|
+
className: (0, _classnames.default)(cls, className, (_a = {}, _a["".concat(cls, "-loading")] = loading, _a["".concat(cls, "-active")] = loading && active, _a)),
|
|
210
212
|
onMouseOver: this.onMouseOver,
|
|
211
213
|
onMouseOut: this.onMouseOut,
|
|
212
214
|
onFocus: noop,
|
package/lib/link-list/index.js
CHANGED
|
@@ -23,7 +23,7 @@ var __extends = void 0 && (void 0).__extends || function () {
|
|
|
23
23
|
d.__proto__ = b;
|
|
24
24
|
} || function (d, b) {
|
|
25
25
|
for (var p in b) {
|
|
26
|
-
if (
|
|
26
|
+
if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
|
|
@@ -31,6 +31,8 @@ var __extends = void 0 && (void 0).__extends || function () {
|
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
return function (d, b) {
|
|
34
|
+
if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
35
|
+
|
|
34
36
|
_extendStatics(d, b);
|
|
35
37
|
|
|
36
38
|
function __() {
|
|
@@ -68,15 +70,15 @@ function (_super) {
|
|
|
68
70
|
|
|
69
71
|
var hrefTarget = this.props.hrefTarget;
|
|
70
72
|
var cls = this.prefixCls;
|
|
71
|
-
return item.url ? _react.default.createElement("a", {
|
|
73
|
+
return item.url ? /*#__PURE__*/_react.default.createElement("a", {
|
|
72
74
|
href: item.url,
|
|
73
|
-
className: item.isHidden ? cls
|
|
75
|
+
className: item.isHidden ? "".concat(cls, "-hidden") : undefined,
|
|
74
76
|
key: item.url,
|
|
75
77
|
target: hrefTarget
|
|
76
|
-
}, item.name
|
|
78
|
+
}, "".concat(item.name, " ")) : /*#__PURE__*/_react.default.createElement("span", {
|
|
77
79
|
key: item.name,
|
|
78
|
-
className: (0, _classnames.default)((_a = {}, _a[cls
|
|
79
|
-
}, item.name
|
|
80
|
+
className: (0, _classnames.default)((_a = {}, _a["".concat(cls, "-hidden")] = item.isHidden, _a))
|
|
81
|
+
}, "".concat(item.name, " "));
|
|
80
82
|
};
|
|
81
83
|
|
|
82
84
|
LinkList.prototype.renderItem = function (item) {
|
|
@@ -87,21 +89,21 @@ function (_super) {
|
|
|
87
89
|
|
|
88
90
|
var subInfo = item.subInfo;
|
|
89
91
|
var cls = this.prefixCls;
|
|
90
|
-
return _react.default.createElement(_popover.default, {
|
|
92
|
+
return /*#__PURE__*/_react.default.createElement(_popover.default, {
|
|
91
93
|
key: item.name,
|
|
92
|
-
tip: _react.default.createElement(_react.default.Fragment, null, _react.default.createElement("strong", {
|
|
93
|
-
className: cls
|
|
94
|
+
tip: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("strong", {
|
|
95
|
+
className: "".concat(cls, "-sub-title")
|
|
94
96
|
}, subInfo.title, ": "), subInfo.list.map(function (subItem, index) {
|
|
95
|
-
return _react.default.createElement("a", {
|
|
97
|
+
return /*#__PURE__*/_react.default.createElement("a", {
|
|
96
98
|
href: subItem.url,
|
|
97
99
|
key: index,
|
|
98
|
-
className: cls
|
|
99
|
-
}, subItem.name
|
|
100
|
+
className: "".concat(cls, "-sub-link")
|
|
101
|
+
}, "".concat(subItem.name, " "));
|
|
100
102
|
})),
|
|
101
103
|
isInsertNode: true,
|
|
102
104
|
placement: "BottomLeft",
|
|
103
105
|
trigger: "click",
|
|
104
|
-
wrapClassName: cls
|
|
106
|
+
wrapClassName: "".concat(cls, "-wrap-popover"),
|
|
105
107
|
mouseEnterDelay: 0.1
|
|
106
108
|
}, this.renderItemContent(item));
|
|
107
109
|
};
|
|
@@ -136,17 +138,17 @@ function (_super) {
|
|
|
136
138
|
extraTopElement = _c.extraTopElement,
|
|
137
139
|
extraBottomElement = _c.extraBottomElement,
|
|
138
140
|
columnCount = _c.columnCount;
|
|
139
|
-
return _react.default.createElement("div", {
|
|
141
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
140
142
|
className: (0, _classnames.default)(cls, className)
|
|
141
|
-
}, title ? _react.default.createElement("div", {
|
|
142
|
-
className: (0, _classnames.default)(cls
|
|
143
|
+
}, title ? /*#__PURE__*/_react.default.createElement("div", {
|
|
144
|
+
className: (0, _classnames.default)("".concat(cls, "-title"), (_a = {}, _a["".concat(cls, "-divider")] = !visible, _a)),
|
|
143
145
|
onClick: this.onVisibleChange
|
|
144
|
-
}, title, _react.default.createElement("span", {
|
|
145
|
-
className: cls
|
|
146
|
-
}, visible ? '-' : '+')) : null, _react.default.createElement("div", {
|
|
147
|
-
className: (0, _classnames.default)(cls
|
|
148
|
-
}, extraTopElement, _react.default.createElement("div", {
|
|
149
|
-
className: (0, _classnames.default)(cls
|
|
146
|
+
}, title, /*#__PURE__*/_react.default.createElement("span", {
|
|
147
|
+
className: "".concat(cls, "-icon")
|
|
148
|
+
}, visible ? '-' : '+')) : null, /*#__PURE__*/_react.default.createElement("div", {
|
|
149
|
+
className: (0, _classnames.default)("".concat(cls, "-body"), (_b = {}, _b["".concat(cls, "-active")] = visible, _b))
|
|
150
|
+
}, extraTopElement, /*#__PURE__*/_react.default.createElement("div", {
|
|
151
|
+
className: (0, _classnames.default)("".concat(cls, "-content"), "".concat(cls, "-col").concat(columnCount))
|
|
150
152
|
}, this.renderContent()), extraBottomElement));
|
|
151
153
|
};
|
|
152
154
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ab-link-list-title{font-size:.16rem;margin:0 0;padding:0 0 .12rem 0;display:flex;justify-content:space-between;align-items:center}.ab-link-list-icon{display:none}.ab-link-list-content{flex-wrap:wrap;width:auto;margin-right:-.15rem}.ab-link-list-content.ab-link-list-col2>a,.ab-link-list-content.ab-link-list-col2>span{min-width:calc(100% / 2 - .15rem);max-width:calc(100% / 2 - .15rem)}.ab-link-list-content.ab-link-list-col4>a,.ab-link-list-content.ab-link-list-col4>span{min-width:calc(100% / 4 - .15rem);max-width:calc(100% / 4 - .15rem)}.ab-link-list-content.ab-link-list-col5>a,.ab-link-list-content.ab-link-list-col5>span{min-width:calc(100% / 5 - .15rem);max-width:calc(100% / 5 - .15rem)}.ab-link-list-content.ab-link-list-col6>a,.ab-link-list-content.ab-link-list-col6>span{min-width:calc(100% / 6 - .15rem);max-width:calc(100% / 6 - .15rem)}.ab-link-list-content.ab-link-list-col8>a,.ab-link-list-content.ab-link-list-col8>span{min-width:calc(100% / 8 - .15rem);max-width:calc(100% / 8 - .15rem)}.ab-link-list-content>a,.ab-link-list-content>span{cursor:pointer;border:.5px solid #d0d0d0;margin-bottom:8px;display:inline-block;justify-content:space-between;align-items:center;width:100%;position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.085rem .15rem .085rem .12rem;color:#333;margin-right:.15rem}.ab-link-list-content>a:after,.ab-link-list-content>span:after{content:
|
|
1
|
+
.ab-link-list-title{font-size:.16rem;margin:0 0;padding:0 0 .12rem 0;display:flex;justify-content:space-between;align-items:center}.ab-link-list-icon{display:none}.ab-link-list-content{flex-wrap:wrap;width:auto;margin-right:-.15rem}.ab-link-list-content.ab-link-list-col2>a,.ab-link-list-content.ab-link-list-col2>span{min-width:calc(100% / 2 - .15rem);max-width:calc(100% / 2 - .15rem)}.ab-link-list-content.ab-link-list-col4>a,.ab-link-list-content.ab-link-list-col4>span{min-width:calc(100% / 4 - .15rem);max-width:calc(100% / 4 - .15rem)}.ab-link-list-content.ab-link-list-col5>a,.ab-link-list-content.ab-link-list-col5>span{min-width:calc(100% / 5 - .15rem);max-width:calc(100% / 5 - .15rem)}.ab-link-list-content.ab-link-list-col6>a,.ab-link-list-content.ab-link-list-col6>span{min-width:calc(100% / 6 - .15rem);max-width:calc(100% / 6 - .15rem)}.ab-link-list-content.ab-link-list-col8>a,.ab-link-list-content.ab-link-list-col8>span{min-width:calc(100% / 8 - .15rem);max-width:calc(100% / 8 - .15rem)}.ab-link-list-content>a,.ab-link-list-content>span{cursor:pointer;border:.5px solid #d0d0d0;margin-bottom:8px;display:inline-block;justify-content:space-between;align-items:center;width:100%;position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.085rem .15rem .085rem .12rem;color:#333;margin-right:.15rem}.ab-link-list-content>a:after,.ab-link-list-content>span:after{content:">";position:absolute;right:.1rem;top:50%;transform:translateY(-50%);color:grey;font-size:.12rem}.ab-link-list-content>a:hover,.ab-link-list-content>span:hover{text-decoration:underline;color:#f97601}.ab-link-list-content>.ab-link-list-hidden{display:none}.ab-link-list-wrap-popover.ab-popover-wrap{max-width:3.5rem;min-width:3rem}.ab-link-list-sub-title{display:block;padding-bottom:.06rem;font-size:.12rem}.ab-link-list-sub-link{text-decoration:underline;color:#333;font-size:.12rem;padding:0 .05rem .05rem 0;display:inline-block}@media only screen and (max-width:767px){.ab-link-list-divider{border-bottom:1px solid #d0d0d0}.ab-link-list-body{height:0;width:0;overflow:hidden}.ab-link-list-body.ab-link-list-active{height:auto;width:auto}.ab-link-list-content>a,.ab-link-list-content>span{min-width:calc(50% - .15rem)!important;max-width:calc(50% - .15rem)!important}.ab-link-list-icon{font-weight:700;font-size:.22rem;cursor:pointer;width:.2rem;height:.2rem;display:flex;align-items:center;justify-content:center}}
|
package/lib/loading/index.d.ts
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
export interface LoadingProps {
|
|
2
3
|
/**
|
|
3
|
-
* loading
|
|
4
|
+
* loading 样式
|
|
4
5
|
*/
|
|
5
|
-
|
|
6
|
+
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* 自定义loading, 需要补全自定义元素样式
|
|
9
|
+
*/
|
|
10
|
+
customIcon?: React.ReactElement;
|
|
6
11
|
/**
|
|
7
12
|
* loading开始后自动隐藏的时间,单位:毫秒
|
|
8
13
|
*/
|
package/lib/loading/index.js
CHANGED
|
@@ -15,8 +15,6 @@ var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
|
15
15
|
|
|
16
16
|
var _utils = require("@autobest-ui/utils");
|
|
17
17
|
|
|
18
|
-
var _useConfig = _interopRequireDefault(require("../use-config"));
|
|
19
|
-
|
|
20
18
|
var _loadingIcon = _interopRequireDefault(require("../loading-icon"));
|
|
21
19
|
|
|
22
20
|
var __assign = void 0 && (void 0).__assign || function () {
|
|
@@ -39,19 +37,14 @@ var __assign = void 0 && (void 0).__assign || function () {
|
|
|
39
37
|
var loadingElement = null;
|
|
40
38
|
var loadingTimer = null;
|
|
41
39
|
var closeTimer = null;
|
|
40
|
+
var prevCustomIcon = null;
|
|
42
41
|
var cls = 'ab-loading';
|
|
43
42
|
|
|
44
|
-
function getLoadingContainer(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
className:
|
|
49
|
-
}, isRectLoading ? _react.default.createElement("img", {
|
|
50
|
-
className: cls + "-content",
|
|
51
|
-
src: _useConfig.default.assetCommonUiUrl + "/images/p_loading_rect.gif",
|
|
52
|
-
alt: "loading..."
|
|
53
|
-
}) : _react.default.createElement(_loadingIcon.default, {
|
|
54
|
-
className: cls + "-content"
|
|
43
|
+
function getLoadingContainer(customIcon, className) {
|
|
44
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
45
|
+
className: (0, _classnames.default)("".concat(cls, "-wrap"), className)
|
|
46
|
+
}, customIcon || /*#__PURE__*/_react.default.createElement(_loadingIcon.default, {
|
|
47
|
+
className: "".concat(cls, "-content")
|
|
55
48
|
}));
|
|
56
49
|
} // openIds 容器
|
|
57
50
|
|
|
@@ -59,13 +52,12 @@ function getLoadingContainer(isRectLoading) {
|
|
|
59
52
|
var openIds = []; // closeIds 容器
|
|
60
53
|
|
|
61
54
|
var closeIds = [];
|
|
62
|
-
var prevIsRectLoading = false;
|
|
63
55
|
|
|
64
|
-
function createLoading(
|
|
56
|
+
function createLoading(customIcon, className) {
|
|
65
57
|
loadingElement = document.createElement('div');
|
|
66
58
|
document.body.appendChild(loadingElement);
|
|
67
59
|
|
|
68
|
-
_reactDom.default.render(getLoadingContainer(
|
|
60
|
+
_reactDom.default.render(getLoadingContainer(customIcon, className), loadingElement);
|
|
69
61
|
}
|
|
70
62
|
|
|
71
63
|
var Loading =
|
|
@@ -79,24 +71,25 @@ function () {
|
|
|
79
71
|
}
|
|
80
72
|
|
|
81
73
|
config = __assign({
|
|
82
|
-
isRectLoading: false,
|
|
83
74
|
expire: 0
|
|
84
|
-
}, config); //
|
|
75
|
+
}, config); // 防止重复创建或自定义loading icon,重新创建
|
|
85
76
|
|
|
86
77
|
if (!loadingElement) {
|
|
87
|
-
createLoading(config.
|
|
88
|
-
} else if (
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
78
|
+
createLoading(config.customIcon, config.className);
|
|
79
|
+
} else if (config.customIcon || config.customIcon !== prevCustomIcon) {
|
|
80
|
+
if (loadingElement) {
|
|
81
|
+
try {
|
|
82
|
+
document.body.removeChild(loadingElement);
|
|
83
|
+
loadingElement = null;
|
|
84
|
+
} catch (e) {}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
createLoading(config.customIcon, config.className);
|
|
95
88
|
} else {
|
|
96
89
|
loadingElement.style.display = 'block';
|
|
97
90
|
}
|
|
98
91
|
|
|
99
|
-
|
|
92
|
+
prevCustomIcon = config.customIcon; // 如果配置中有expire且大于0
|
|
100
93
|
// 将会在到达时间后自动关闭,不用手动再关闭(不需要再close())
|
|
101
94
|
|
|
102
95
|
if (config.expire > 0) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ab-loading-wrap{position:fixed;top:0;left:0;z-index:9999;background-color:rgba(255,255,255,.7);height:100%;width:100%}.ab-loading-wrap .ab-loading-content{position:absolute;left:50%;top:50%;display:block;width:.31rem;height:.31rem;transform:translate3d(-50%,-50%,0)}
|
|
1
|
+
.ab-loading-wrap{position:fixed;top:0;left:0;z-index:9999;background-color:rgba(255,255,255,.7);height:100%;width:100%}.ab-loading-wrap .ab-loading-content{position:absolute;left:50%;top:50%;display:block;width:.31rem;height:.31rem;transform:translate3d(-50%,-50%,0)}
|
|
@@ -18,14 +18,4 @@ $namespace: ab-loading;
|
|
|
18
18
|
height: .31rem;
|
|
19
19
|
transform: translate3d(-50%, -50%, 0);
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
&.#{$namespace}-rect-loading {
|
|
23
|
-
background-color: rgba(#000, .7);
|
|
24
|
-
|
|
25
|
-
.#{$namespace}-content {
|
|
26
|
-
top: 10%;
|
|
27
|
-
width: 1.6rem;
|
|
28
|
-
height: .24rem;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
21
|
}
|
package/lib/loading-bar/index.js
CHANGED
|
@@ -14,9 +14,9 @@ var _portal = _interopRequireDefault(require("../portal"));
|
|
|
14
14
|
var cls = 'ab-loading-bar';
|
|
15
15
|
|
|
16
16
|
function LoadingBar() {
|
|
17
|
-
return _react.default.createElement(_portal.default, null, _react.default.createElement("div", {
|
|
17
|
+
return /*#__PURE__*/_react.default.createElement(_portal.default, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
18
18
|
className: cls
|
|
19
|
-
}, _react.default.createElement("span", {
|
|
20
|
-
className: cls
|
|
19
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
20
|
+
className: "".concat(cls, "-bar")
|
|
21
21
|
})));
|
|
22
22
|
}
|
|
@@ -22,12 +22,12 @@ function LoadingContainer(props) {
|
|
|
22
22
|
loading = _b === void 0 ? false : _b,
|
|
23
23
|
className = props.className,
|
|
24
24
|
children = props.children;
|
|
25
|
-
return _react.default.createElement("div", {
|
|
26
|
-
className: (0, _classnames.default)(className, cls, (_a = {}, _a[cls
|
|
27
|
-
}, children, loading && _react.default.createElement("div", {
|
|
28
|
-
className: cls
|
|
29
|
-
}, _react.default.createElement(_loadingIcon.default, {
|
|
30
|
-
className: cls
|
|
25
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
26
|
+
className: (0, _classnames.default)(className, cls, (_a = {}, _a["".concat(cls, "-active")] = loading, _a))
|
|
27
|
+
}, children, loading && /*#__PURE__*/_react.default.createElement("div", {
|
|
28
|
+
className: "".concat(cls, "-icon-box")
|
|
29
|
+
}, /*#__PURE__*/_react.default.createElement(_loadingIcon.default, {
|
|
30
|
+
className: "".concat(cls, "-icon")
|
|
31
31
|
})));
|
|
32
32
|
}
|
|
33
33
|
|
|
@@ -15,50 +15,50 @@ var cls = 'ab-svg-loading';
|
|
|
15
15
|
|
|
16
16
|
var LoadingIcon = function LoadingIcon(props) {
|
|
17
17
|
var className = props.className;
|
|
18
|
-
return _react.default.createElement("span", {
|
|
18
|
+
return /*#__PURE__*/_react.default.createElement("span", {
|
|
19
19
|
className: (0, _classnames.default)(className, cls)
|
|
20
|
-
}, _react.default.createElement("svg", {
|
|
20
|
+
}, /*#__PURE__*/_react.default.createElement("svg", {
|
|
21
21
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22
22
|
width: "24",
|
|
23
23
|
height: "24",
|
|
24
24
|
viewBox: "0 0 24 24",
|
|
25
|
-
className: cls
|
|
26
|
-
}, _react.default.createElement("circle", {
|
|
25
|
+
className: "".concat(cls, "-icon")
|
|
26
|
+
}, /*#__PURE__*/_react.default.createElement("circle", {
|
|
27
27
|
cx: "12",
|
|
28
28
|
cy: "2",
|
|
29
29
|
r: "2",
|
|
30
30
|
fill: "#202020"
|
|
31
|
-
}), _react.default.createElement("circle", {
|
|
31
|
+
}), /*#__PURE__*/_react.default.createElement("circle", {
|
|
32
32
|
cx: "19",
|
|
33
33
|
cy: "5",
|
|
34
34
|
r: "2",
|
|
35
35
|
fill: "#404040"
|
|
36
|
-
}), _react.default.createElement("circle", {
|
|
36
|
+
}), /*#__PURE__*/_react.default.createElement("circle", {
|
|
37
37
|
cx: "22",
|
|
38
38
|
cy: "12",
|
|
39
39
|
r: "2",
|
|
40
40
|
fill: "#606060"
|
|
41
|
-
}), _react.default.createElement("circle", {
|
|
41
|
+
}), /*#__PURE__*/_react.default.createElement("circle", {
|
|
42
42
|
cx: "19",
|
|
43
43
|
cy: "19",
|
|
44
44
|
r: "2",
|
|
45
45
|
fill: "gray"
|
|
46
|
-
}), _react.default.createElement("circle", {
|
|
46
|
+
}), /*#__PURE__*/_react.default.createElement("circle", {
|
|
47
47
|
cx: "12",
|
|
48
48
|
cy: "22",
|
|
49
49
|
r: "2",
|
|
50
50
|
fill: "#b0b0b0"
|
|
51
|
-
}), _react.default.createElement("circle", {
|
|
51
|
+
}), /*#__PURE__*/_react.default.createElement("circle", {
|
|
52
52
|
cx: "5",
|
|
53
53
|
cy: "19",
|
|
54
54
|
r: "2",
|
|
55
55
|
fill: "#d0d0d0"
|
|
56
|
-
}), _react.default.createElement("circle", {
|
|
56
|
+
}), /*#__PURE__*/_react.default.createElement("circle", {
|
|
57
57
|
cx: "2",
|
|
58
58
|
cy: "12",
|
|
59
59
|
r: "2",
|
|
60
60
|
fill: "#f0f0f0"
|
|
61
|
-
}), _react.default.createElement("circle", {
|
|
61
|
+
}), /*#__PURE__*/_react.default.createElement("circle", {
|
|
62
62
|
cx: "5",
|
|
63
63
|
cy: "5",
|
|
64
64
|
r: "2",
|
|
@@ -66,6 +66,6 @@ var LoadingIcon = function LoadingIcon(props) {
|
|
|
66
66
|
})));
|
|
67
67
|
};
|
|
68
68
|
|
|
69
|
-
var _default = _react.default.memo(LoadingIcon);
|
|
69
|
+
var _default = /*#__PURE__*/_react.default.memo(LoadingIcon);
|
|
70
70
|
|
|
71
71
|
exports.default = _default;
|
package/lib/mask/index.js
CHANGED
|
@@ -33,12 +33,12 @@ function Mask(_a, ref) {
|
|
|
33
33
|
}
|
|
34
34
|
}, [onClose]);
|
|
35
35
|
|
|
36
|
-
return _react.default.createElement(_reactTransitionGroup.CSSTransition, {
|
|
36
|
+
return /*#__PURE__*/_react.default.createElement(_reactTransitionGroup.CSSTransition, {
|
|
37
37
|
in: visible,
|
|
38
38
|
timeout: timeout,
|
|
39
|
-
classNames: prefixCls
|
|
39
|
+
classNames: "".concat(prefixCls, "-fade"),
|
|
40
40
|
appear: true
|
|
41
|
-
}, _react.default.createElement("div", {
|
|
41
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
42
42
|
className: (0, _classnames.default)(prefixCls, className),
|
|
43
43
|
onMouseDown: onChangeVisible,
|
|
44
44
|
onTouchStart: onChangeVisible,
|
|
@@ -46,6 +46,6 @@ function Mask(_a, ref) {
|
|
|
46
46
|
}));
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
var _default = _react.default.memo(_react.default.forwardRef(Mask));
|
|
49
|
+
var _default = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef(Mask));
|
|
50
50
|
|
|
51
51
|
exports.default = _default;
|
package/lib/message/index.js
CHANGED
|
@@ -56,7 +56,7 @@ function Message(config) {
|
|
|
56
56
|
|
|
57
57
|
if (!container) {
|
|
58
58
|
container = document.createElement('div');
|
|
59
|
-
container.setAttribute('class', (0, _classnames.default)(currentConfig.className, prefixCls
|
|
59
|
+
container.setAttribute('class', (0, _classnames.default)(currentConfig.className, "".concat(prefixCls, "-container")));
|
|
60
60
|
document.body.appendChild(container);
|
|
61
61
|
}
|
|
62
62
|
|
|
@@ -64,9 +64,9 @@ function Message(config) {
|
|
|
64
64
|
close(items[0].id);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
function close(
|
|
67
|
+
function close(currentId) {
|
|
68
68
|
var index = items.findIndex(function (item) {
|
|
69
|
-
return item.id ===
|
|
69
|
+
return item.id === currentId;
|
|
70
70
|
});
|
|
71
71
|
|
|
72
72
|
if (index >= 0) {
|
|
@@ -78,15 +78,15 @@ function Message(config) {
|
|
|
78
78
|
render();
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
function _onExited(
|
|
82
|
-
currentConfig.onDestroy(
|
|
81
|
+
function _onExited(currentId) {
|
|
82
|
+
currentConfig.onDestroy(currentId);
|
|
83
83
|
} // 渲染组件
|
|
84
84
|
|
|
85
85
|
|
|
86
86
|
function render() {
|
|
87
87
|
var cls = prefixCls;
|
|
88
88
|
|
|
89
|
-
_reactDom.default.render(_react.default.createElement(_reactTransitionGroup.TransitionGroup, {
|
|
89
|
+
_reactDom.default.render( /*#__PURE__*/_react.default.createElement(_reactTransitionGroup.TransitionGroup, {
|
|
90
90
|
component: null
|
|
91
91
|
}, items.map(function (item) {
|
|
92
92
|
var _a = item.currentConfig,
|
|
@@ -98,19 +98,19 @@ function Message(config) {
|
|
|
98
98
|
width: width,
|
|
99
99
|
height: height
|
|
100
100
|
};
|
|
101
|
-
return _react.default.createElement(_reactTransitionGroup.CSSTransition, {
|
|
101
|
+
return /*#__PURE__*/_react.default.createElement(_reactTransitionGroup.CSSTransition, {
|
|
102
102
|
key: item.id,
|
|
103
103
|
timeout: 300,
|
|
104
|
-
classNames: cls
|
|
104
|
+
classNames: "".concat(cls, "-fade"),
|
|
105
105
|
onExited: function onExited() {
|
|
106
106
|
_onExited(item.id);
|
|
107
107
|
},
|
|
108
108
|
appear: true
|
|
109
|
-
}, _react.default.createElement("div", {
|
|
110
|
-
className: (0, _classnames.default)(cls
|
|
109
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
110
|
+
className: (0, _classnames.default)("".concat(cls, "-content"), contentClassName),
|
|
111
111
|
style: style
|
|
112
|
-
}, content, _react.default.createElement("div", {
|
|
113
|
-
className: cls
|
|
112
|
+
}, content, /*#__PURE__*/_react.default.createElement("div", {
|
|
113
|
+
className: "".concat(cls, "-close"),
|
|
114
114
|
onClick: function onClick() {
|
|
115
115
|
close(item.id);
|
|
116
116
|
}
|
|
@@ -131,8 +131,8 @@ function Message(config) {
|
|
|
131
131
|
}, currentConfig.expires);
|
|
132
132
|
|
|
133
133
|
function destroy() {
|
|
134
|
-
items.forEach(function (
|
|
135
|
-
clearTimeout(
|
|
134
|
+
items.forEach(function (child) {
|
|
135
|
+
clearTimeout(child.timer);
|
|
136
136
|
});
|
|
137
137
|
items = [];
|
|
138
138
|
render();
|
package/lib/modal/Affix.d.ts
CHANGED
package/lib/modal/Affix.js
CHANGED
|
@@ -12,7 +12,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
12
12
|
var _portal = _interopRequireDefault(require("../portal"));
|
|
13
13
|
|
|
14
14
|
function Affix(props) {
|
|
15
|
-
return _react.default.createElement(_portal.default, {
|
|
15
|
+
return /*#__PURE__*/_react.default.createElement(_portal.default, {
|
|
16
16
|
getContainer: props.getContainer
|
|
17
17
|
}, props.children);
|
|
18
18
|
}
|