bi-components-library 1.3.2-next.75 → 1.3.2-next.76

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/index.es.js CHANGED
@@ -40209,9 +40209,11 @@ const u_ = (e) => e < 1024 ? `${e}B` : e < 1024 * 1024 ? `${Math.round(e / 1024)
40209
40209
  const n = c_(e), r = zp(n ? e : null);
40210
40210
  return /* @__PURE__ */ W("div", { className: "rte-footer-file-chip", children: [
40211
40211
  n ? (
40212
- // 预览遮罩走 antd 默认 document.body,不挂 popupHost——host 是编辑器后代,
40213
- // 业务祖先链上的 transform/filter 会困住其 fixed+inset:0,导致遮罩缩水盖不住视口
40214
- // (Qiankun 外壳常踩此坑)。antd Image preview 自己 portal 到 body,跳出业务包含块。
40212
+ // 预览遮罩必须走 document.body 而非 popupHost——host 是编辑器后代,业务祖先链上的
40213
+ // transform/filter 会困住它的 fixed+inset:0,导致遮罩缩水盖不住视口。
40214
+ // 这里 getContainer 显式传 document.body:外层 ConfigProvider 把全编辑器的
40215
+ // antd 浮层 getPopupContainer 收口到了 popupHost,Image preview 默认会继承该容器,
40216
+ // 不显式覆盖会跟技能面板挤在同一棵 host 子树里。
40215
40217
  /* @__PURE__ */ v(
40216
40218
  Zf,
40217
40219
  {
@@ -40220,7 +40222,7 @@ const u_ = (e) => e < 1024 ? `${e}B` : e < 1024 * 1024 ? `${Math.round(e / 1024)
40220
40222
  height: 32,
40221
40223
  src: r,
40222
40224
  alt: e.name,
40223
- preview: { mask: null }
40225
+ preview: { mask: null, getContainer: () => document.body }
40224
40226
  }
40225
40227
  )
40226
40228
  ) : /* @__PURE__ */ v("div", { className: "rte-footer-file-icon", children: /* @__PURE__ */ v("svg", { style: { width: "18px", height: "18px" }, "aria-hidden": "true", children: /* @__PURE__ */ v("use", { xlinkHref: `#${d_(e.name)}` }) }) }),