@douyinfe/semi-ui 2.43.1-alpha.1 → 2.43.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.
@@ -19750,10 +19750,7 @@ class Portal extends external_root_React_commonjs2_react_commonjs_react_amd_reac
19750
19750
  var _a, _b;
19751
19751
  try {
19752
19752
  let container = undefined;
19753
- if (!_this.el) {
19754
- _this.el = document.createElement('div');
19755
- }
19756
- if (!((_a = _this.state) === null || _a === void 0 ? void 0 : _a.container)) {
19753
+ if (!_this.el || !((_a = _this.state) === null || _a === void 0 ? void 0 : _a.container) || !Array.from(_this.state.container.childNodes).includes(_this.el)) {
19757
19754
  _this.el = document.createElement('div');
19758
19755
  const getContainer = _this.props.getPopupContainer || context.getPopupContainer || defaultGetContainer;
19759
19756
  const portalContainer = getContainer();
@@ -72376,6 +72373,11 @@ class Popconfirm extends BaseComponent {
72376
72373
  });
72377
72374
  const showTitle = title !== null && typeof title !== 'undefined';
72378
72375
  const showContent = !(content === null || typeof content === 'undefined');
72376
+ const hasIcon = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(icon);
72377
+ const bodyCls = classnames_default()({
72378
+ [`${prefixCls}-body`]: true,
72379
+ [`${prefixCls}-body-withIcon`]: hasIcon
72380
+ });
72379
72381
  return (
72380
72382
  /*#__PURE__*/
72381
72383
  /* eslint-disable-next-line jsx-a11y/no-static-element-interactions */
@@ -72387,10 +72389,10 @@ class Popconfirm extends BaseComponent {
72387
72389
  className: `${prefixCls}-inner`
72388
72390
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
72389
72391
  className: `${prefixCls}-header`
72390
- }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("i", {
72392
+ }, hasIcon ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("i", {
72391
72393
  className: `${prefixCls}-header-icon`,
72392
72394
  "x-semi-prop": "icon"
72393
- }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(icon) ? icon : null), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
72395
+ }, icon) : null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
72394
72396
  className: `${prefixCls}-header-body`
72395
72397
  }, showTitle ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
72396
72398
  className: `${prefixCls}-header-title`,
@@ -72403,7 +72405,7 @@ class Popconfirm extends BaseComponent {
72403
72405
  type: cancelType,
72404
72406
  onClick: this.handleCancel
72405
72407
  })), showContent ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
72406
- className: `${prefixCls}-body`,
72408
+ className: bodyCls,
72407
72409
  "x-semi-prop": "content"
72408
72410
  }, isFunction_default()(content) ? content({
72409
72411
  initialFocusRef
@@ -79633,7 +79635,8 @@ function renderDropdown() {
79633
79635
  dropdownProps.visible = filterDropdownVisible;
79634
79636
  }
79635
79637
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(dropdown_0, Object.assign({}, dropdownProps, {
79636
- key: `Dropdown_level_${level}`
79638
+ key: `Dropdown_level_${level}`,
79639
+ className: `${table_constants_cssClasses.PREFIX}-column-filter-dropdown`
79637
79640
  }), nestedElem);
79638
79641
  }
79639
79642
  function ColumnFilter() {