mirror of
https://github.com/nocobase/nocobase.git
synced 2026-09-19 02:23:00 +08:00
chore: fix build error
This commit is contained in:
@@ -66,6 +66,7 @@ export const InternalActionDrawer: React.FC<ActionDrawerProps> = observer(
|
||||
return (
|
||||
<TabsContextProvider {...tabContext} tabBarExtraContent={null}>
|
||||
<Drawer
|
||||
// @ts-ignore
|
||||
zIndex={antdZIndex + (props.level || 0)}
|
||||
width={openSizeWidthMap.get(openSize)}
|
||||
title={field.title}
|
||||
|
||||
@@ -74,6 +74,7 @@ export const InternalActionModal: React.FC<ActionDrawerProps<ModalProps>> = obse
|
||||
return (
|
||||
<TabsContextProvider {...tabContext} tabBarExtraContent={null}>
|
||||
<Modal
|
||||
// @ts-ignore
|
||||
zIndex={antdZIndex + (props.level || 0)}
|
||||
width={actualWidth}
|
||||
title={field.title}
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
*/
|
||||
|
||||
import { RecursionField, observer, useFieldSchema } from '@formily/react';
|
||||
import zIndexContext from 'antd/es/_util/zIndexContext';
|
||||
import React, { useMemo } from 'react';
|
||||
import { createPortal } from 'react-dom';
|
||||
import { useActionContext } from '.';
|
||||
@@ -18,6 +17,9 @@ import { useActionPageStyle } from './Action.Page.style';
|
||||
import { usePopupOrSubpagesContainerDOM } from './hooks/usePopupSlotDOM';
|
||||
import { useAntdZIndex } from './utils';
|
||||
|
||||
// @ts-ignore
|
||||
import zIndexContext from 'antd/es/_util/zIndexContext';
|
||||
|
||||
export function ActionPage({ level }) {
|
||||
const filedSchema = useFieldSchema();
|
||||
const ctx = useActionContext();
|
||||
|
||||
@@ -8,13 +8,15 @@
|
||||
*/
|
||||
|
||||
import type { ISchema } from '@formily/react';
|
||||
import zIndexContext from 'antd/es/_util/zIndexContext';
|
||||
import { last } from 'lodash';
|
||||
import { useContext } from 'react';
|
||||
import { ActionType } from '../../../schema-settings/LinkageRules/type';
|
||||
import { VariableOption, VariablesContextType } from '../../../variables/types';
|
||||
import { conditionAnalyses } from '../../common/utils/uitls';
|
||||
|
||||
// @ts-ignore
|
||||
import zIndexContext from 'antd/es/_util/zIndexContext';
|
||||
|
||||
const validateJSON = {
|
||||
validator: `{{(value, rule)=> {
|
||||
if (!value) {
|
||||
@@ -159,5 +161,5 @@ export const setInitialActionState = (field) => {
|
||||
|
||||
export const useAntdZIndex = () => {
|
||||
const contextZIndex = useContext(zIndexContext);
|
||||
return contextZIndex || 100;
|
||||
return (contextZIndex || 100) as number;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user