diff --git a/packages/core/client/src/schema-component/antd/action/Action.Drawer.tsx b/packages/core/client/src/schema-component/antd/action/Action.Drawer.tsx index 9847e5c9c2..f4dea72fd9 100644 --- a/packages/core/client/src/schema-component/antd/action/Action.Drawer.tsx +++ b/packages/core/client/src/schema-component/antd/action/Action.Drawer.tsx @@ -20,7 +20,7 @@ import { useActionContext } from './hooks'; import { useSetAriaLabelForDrawer } from './hooks/useSetAriaLabelForDrawer'; import { ActionDrawerProps, ComposedActionDrawer, OpenSize } from './types'; import { useZIndexContext, zIndexContext } from './zIndexContext'; - +import { FlagProvider } from '../../../flag-provider'; const DrawerErrorFallback: React.FC = (props) => { const { visible, setVisible } = useActionContext(); return ( @@ -112,7 +112,9 @@ export const InternalActionDrawer: React.FC = observer( export const ActionDrawer: ComposedActionDrawer = (props) => ( console.log(err)}> - + + + ); diff --git a/packages/core/client/src/schema-component/antd/action/Action.Modal.tsx b/packages/core/client/src/schema-component/antd/action/Action.Modal.tsx index 5478cc0317..4eda2ce4e5 100644 --- a/packages/core/client/src/schema-component/antd/action/Action.Modal.tsx +++ b/packages/core/client/src/schema-component/antd/action/Action.Modal.tsx @@ -21,6 +21,7 @@ import { useActionContext } from './hooks'; import { useSetAriaLabelForModal } from './hooks/useSetAriaLabelForModal'; import { ActionDrawerProps, ComposedActionDrawer, OpenSize } from './types'; import { useZIndexContext, zIndexContext } from './zIndexContext'; +import { FlagProvider } from '../../../flag-provider'; const ModalErrorFallback: React.FC = (props) => { const { visible, setVisible } = useActionContext(); @@ -155,7 +156,9 @@ export const InternalActionModal: React.FC> = obse export const ActionModal: ComposedActionDrawer = (props) => ( console.log(err)}> - + + + ); diff --git a/packages/core/client/src/schema-component/antd/action/Action.Page.tsx b/packages/core/client/src/schema-component/antd/action/Action.Page.tsx index 427accb25c..fa04031daa 100644 --- a/packages/core/client/src/schema-component/antd/action/Action.Page.tsx +++ b/packages/core/client/src/schema-component/antd/action/Action.Page.tsx @@ -16,6 +16,7 @@ import { TabsContextProvider, useTabsContext } from '../tabs/context'; import { useActionPageStyle } from './Action.Page.style'; import { usePopupOrSubpagesContainerDOM } from './hooks/usePopupSlotDOM'; import { useZIndexContext, zIndexContext } from './zIndexContext'; +import { FlagProvider } from '../../../flag-provider'; export function ActionPage({ level }) { const filedSchema = useFieldSchema(); @@ -36,13 +37,15 @@ export function ActionPage({ level }) { } const actionPageNode = ( -
- }> - - - - -
+ +
+ }> + + + + +
+
); const container = getContainerDOM();