Revert "fix: linkage rules in subtable/subform affecting blocks in association field popups"

This reverts commit 9417ccc295.
This commit is contained in:
Zeke Zhang 2024-11-07 16:59:17 +08:00
parent c0caf63b97
commit 9243085ab4
3 changed files with 10 additions and 18 deletions

View File

@ -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<FallbackProps> = (props) => {
const { visible, setVisible } = useActionContext();
return (
@ -112,9 +112,7 @@ export const InternalActionDrawer: React.FC<ActionDrawerProps> = observer(
export const ActionDrawer: ComposedActionDrawer = (props) => (
<ErrorBoundary FallbackComponent={DrawerErrorFallback} onError={(err) => console.log(err)}>
<FlagProvider isInSubTable={false} isInSubForm={false}>
<InternalActionDrawer {...props} />
</FlagProvider>
</ErrorBoundary>
);

View File

@ -21,7 +21,6 @@ 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<FallbackProps> = (props) => {
const { visible, setVisible } = useActionContext();
@ -156,9 +155,7 @@ export const InternalActionModal: React.FC<ActionDrawerProps<ModalProps>> = obse
export const ActionModal: ComposedActionDrawer<ModalProps> = (props) => (
<ErrorBoundary FallbackComponent={ModalErrorFallback} onError={(err) => console.log(err)}>
<FlagProvider isInSubTable={false} isInSubForm={false}>
<InternalActionModal {...props} />
</FlagProvider>
</ErrorBoundary>
);

View File

@ -16,7 +16,6 @@ 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();
@ -37,7 +36,6 @@ export function ActionPage({ level }) {
}
const actionPageNode = (
<FlagProvider isInSubTable={false} isInSubForm={false}>
<div className={styles.container} style={style}>
<TabsContextProvider {...tabContext} tabBarExtraContent={<BackButtonUsedInSubPage />}>
<zIndexContext.Provider value={style.zIndex}>
@ -45,7 +43,6 @@ export function ActionPage({ level }) {
</zIndexContext.Provider>
</TabsContextProvider>
</div>
</FlagProvider>
);
const container = getContainerDOM();