@douyinfe/semi-ui 2.42.1 → 2.42.2
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/umd/semi-ui.js +8 -4
- package/dist/umd/semi-ui.js.map +1 -1
- package/dist/umd/semi-ui.min.js +1 -1
- package/dist/umd/semi-ui.min.js.map +1 -1
- package/lib/cjs/anchor/index.d.ts +1 -1
- package/lib/cjs/autoComplete/index.d.ts +1 -1
- package/lib/cjs/button/Button.d.ts +1 -1
- package/lib/cjs/button/buttonGroup.d.ts +1 -1
- package/lib/cjs/button/index.d.ts +1 -1
- package/lib/cjs/datePicker/datePicker.d.ts +1 -1
- package/lib/cjs/form/baseForm.d.ts +2 -2
- package/lib/cjs/form/field.d.ts +2 -2
- package/lib/cjs/input/index.d.ts +1 -1
- package/lib/cjs/input/inputGroup.d.ts +1 -1
- package/lib/cjs/modal/confirm.d.ts +14 -14
- package/lib/cjs/overflowList/index.js +2 -2
- package/lib/cjs/rating/index.d.ts +1 -1
- package/lib/cjs/rating/item.d.ts +1 -1
- package/lib/cjs/switch/index.d.ts +1 -1
- package/lib/cjs/table/Table.d.ts +2 -2
- package/lib/cjs/table/index.d.ts +1 -1
- package/lib/cjs/tagInput/index.d.ts +1 -1
- package/lib/cjs/timePicker/TimePicker.d.ts +1 -1
- package/lib/cjs/timePicker/index.d.ts +1 -1
- package/lib/cjs/typography/base.js +1 -0
- package/lib/cjs/typography/title.d.ts +2 -2
- package/lib/es/anchor/index.d.ts +1 -1
- package/lib/es/autoComplete/index.d.ts +1 -1
- package/lib/es/button/Button.d.ts +1 -1
- package/lib/es/button/buttonGroup.d.ts +1 -1
- package/lib/es/button/index.d.ts +1 -1
- package/lib/es/datePicker/datePicker.d.ts +1 -1
- package/lib/es/form/baseForm.d.ts +2 -2
- package/lib/es/form/field.d.ts +2 -2
- package/lib/es/input/index.d.ts +1 -1
- package/lib/es/input/inputGroup.d.ts +1 -1
- package/lib/es/modal/confirm.d.ts +14 -14
- package/lib/es/overflowList/index.js +2 -2
- package/lib/es/rating/index.d.ts +1 -1
- package/lib/es/rating/item.d.ts +1 -1
- package/lib/es/switch/index.d.ts +1 -1
- package/lib/es/table/Table.d.ts +2 -2
- package/lib/es/table/index.d.ts +1 -1
- package/lib/es/tagInput/index.d.ts +1 -1
- package/lib/es/timePicker/TimePicker.d.ts +1 -1
- package/lib/es/timePicker/index.d.ts +1 -1
- package/lib/es/typography/base.js +1 -0
- package/lib/es/typography/title.d.ts +2 -2
- package/package.json +9 -9
package/dist/umd/semi-ui.js
CHANGED
|
@@ -18434,6 +18434,7 @@ class foundation_Tooltip extends foundation {
|
|
|
18434
18434
|
this._adapter.unregisterClickOutsideHandler();
|
|
18435
18435
|
this.unBindResizeEvent();
|
|
18436
18436
|
this.unBindScrollEvent();
|
|
18437
|
+
clearTimeout(this._timer);
|
|
18437
18438
|
}
|
|
18438
18439
|
_bindTriggerEvent(triggerEventSet) {
|
|
18439
18440
|
this._adapter.registerTriggerEvent(triggerEventSet);
|
|
@@ -24052,6 +24053,7 @@ class Base extends external_root_React_commonjs2_react_commonjs_react_amd_react_
|
|
|
24052
24053
|
// Perform type conversion on children to prevent component crash due to non-string type of children
|
|
24053
24054
|
String(children), extraNode, ELLIPSIS_STR, suffix, pos);
|
|
24054
24055
|
this.setState({
|
|
24056
|
+
isOverflowed: false,
|
|
24055
24057
|
ellipsisContent: content,
|
|
24056
24058
|
isTruncated: children !== content
|
|
24057
24059
|
});
|
|
@@ -63867,7 +63869,9 @@ class SubNavFoundation extends foundation {
|
|
|
63867
63869
|
// this.log('invoke SubNavFoundation init()');
|
|
63868
63870
|
this._timer = null;
|
|
63869
63871
|
}
|
|
63870
|
-
destroy() {
|
|
63872
|
+
destroy() {
|
|
63873
|
+
this.clearDelayTimer();
|
|
63874
|
+
}
|
|
63871
63875
|
clearDelayTimer() {
|
|
63872
63876
|
if (this._timer) {
|
|
63873
63877
|
clearTimeout(this._timer);
|
|
@@ -66291,13 +66295,13 @@ class OverflowList extends BaseComponent {
|
|
|
66291
66295
|
const element = visibleItemRenderer(item, idx);
|
|
66292
66296
|
const child = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(element);
|
|
66293
66297
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(ReactResizeObserver, {
|
|
66294
|
-
key: key,
|
|
66298
|
+
key: key !== null && key !== void 0 ? key : idx,
|
|
66295
66299
|
onResize: _ref2 => {
|
|
66296
66300
|
let [entry] = _ref2;
|
|
66297
66301
|
return this.onItemResize(entry, item, idx);
|
|
66298
66302
|
}
|
|
66299
66303
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
66300
|
-
key: key,
|
|
66304
|
+
key: key !== null && key !== void 0 ? key : idx,
|
|
66301
66305
|
className: `${overflowList_prefixCls}-item`
|
|
66302
66306
|
}, child));
|
|
66303
66307
|
}), collapseFrom === overflowList_Boundary.END ? overflow : null];
|
|
@@ -99742,7 +99746,7 @@ class PreviewInnerFoundation extends foundation {
|
|
|
99742
99746
|
} = this.getStates();
|
|
99743
99747
|
const setDownloadName = this._adapter.getSetDownloadFunc();
|
|
99744
99748
|
const downloadSrc = imgSrc[currentIndex];
|
|
99745
|
-
const downloadName = setDownloadName ? setDownloadName(downloadSrc) : downloadSrc.slice(downloadSrc.lastIndexOf("/") + 1);
|
|
99749
|
+
const downloadName = setDownloadName ? setDownloadName(downloadSrc) : downloadSrc.slice(downloadSrc.lastIndexOf("/") + 1).split('?')[0];
|
|
99746
99750
|
downloadImage(downloadSrc, downloadName);
|
|
99747
99751
|
this._adapter.notifyDownload(downloadSrc, currentIndex);
|
|
99748
99752
|
};
|