@douyinfe/semi-ui 2.42.0 → 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.
@@ -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
  };