style: import action modal formlayout (#2809)

This commit is contained in:
katherinehhh 2023-10-12 11:11:07 +08:00 committed by GitHub
parent 843677c183
commit 9311b4730a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,6 @@
import { SchemaComponentOptions } from '@nocobase/client'; import { SchemaComponentOptions } from '@nocobase/client';
import React, { useState } from 'react'; import React, { useState } from 'react';
import { createPortal } from 'react-dom'; import { createPortal } from 'react-dom';
import { FormLayout } from '@formily/antd-v5';
import { ImportActionInitializer, ImportDesigner, ImportInitializerProvider } from '.'; import { ImportActionInitializer, ImportDesigner, ImportInitializerProvider } from '.';
import { ImportContext } from './context'; import { ImportContext } from './context';
import { ImportModal, ImportStatus } from './ImportModal'; import { ImportModal, ImportStatus } from './ImportModal';
@ -12,7 +11,7 @@ export const ImportPluginProvider = (props: any) => {
const { uploadValidator, beforeUploadHandler, validateUpload } = useShared(); const { uploadValidator, beforeUploadHandler, validateUpload } = useShared();
return ( return (
<SchemaComponentOptions <SchemaComponentOptions
components={{ ImportActionInitializer, ImportDesigner, FormLayout }} components={{ ImportActionInitializer, ImportDesigner }}
scope={{ scope={{
uploadValidator, uploadValidator,
validateUpload, validateUpload,