@4399ywkf/core 5.0.23 → 5.0.24
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.js +8 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3677,6 +3677,7 @@ function buildImports(opts) {
|
|
|
3677
3677
|
];
|
|
3678
3678
|
return `
|
|
3679
3679
|
import React, { ${reactImports.join(", ")} } from "react";
|
|
3680
|
+
import { ConfigProvider } from "antd";
|
|
3680
3681
|
import { ${antdStyleImports.join(", ")} } from "antd-style";
|
|
3681
3682
|
import { createWithEqualityFn } from "zustand/traditional";
|
|
3682
3683
|
import { shallow } from "zustand/shallow";
|
|
@@ -3921,15 +3922,18 @@ function buildWrapperCode(opts) {
|
|
|
3921
3922
|
const childrenSlot = cssVar ? `<div ref={containerRef} style={{ display: "contents" }}>
|
|
3922
3923
|
{children}
|
|
3923
3924
|
</div>` : "{children}";
|
|
3924
|
-
const
|
|
3925
|
+
const innerContent = scopePopupContainer ? `<ConfigProvider getPopupContainer={getPopupContainer}>
|
|
3926
|
+
${globalReset ? "<GlobalReset />" : ""}
|
|
3927
|
+
${childrenSlot}
|
|
3928
|
+
</ConfigProvider>` : `${globalReset ? "<GlobalReset />" : ""}
|
|
3929
|
+
${childrenSlot}`;
|
|
3925
3930
|
const antdProvider = `<AntdThemeProvider
|
|
3926
3931
|
prefixCls={RUNTIME_PREFIX_CLS}
|
|
3927
3932
|
appearance={resolvedAppearance}
|
|
3928
3933
|
themeMode={appearance}
|
|
3929
|
-
theme={theme}${cssVar ? "\n customToken={{ cssVar: true }}" : ""}
|
|
3934
|
+
theme={theme}${cssVar ? "\n customToken={{ cssVar: true }}" : ""}
|
|
3930
3935
|
>
|
|
3931
|
-
${
|
|
3932
|
-
${childrenSlot}
|
|
3936
|
+
${innerContent}
|
|
3933
3937
|
</AntdThemeProvider>`;
|
|
3934
3938
|
const wrapperOpen = scopePopupContainer ? `<div
|
|
3935
3939
|
ref={popupContainerRef}
|