diff --git a/packages/core/client/src/block-provider/TableSelectorProvider.tsx b/packages/core/client/src/block-provider/TableSelectorProvider.tsx index 7be73ac31..4e8ef738a 100644 --- a/packages/core/client/src/block-provider/TableSelectorProvider.tsx +++ b/packages/core/client/src/block-provider/TableSelectorProvider.tsx @@ -2,7 +2,7 @@ import { ArrayField } from '@formily/core'; import { Schema, useField, useFieldSchema } from '@formily/react'; import React, { createContext, useContext, useEffect } from 'react'; import { useCollectionManager } from '../collection-manager'; -import { useRecord } from '../record-provider'; +import { RecordProvider, useRecord } from '../record-provider'; import { BlockProvider, useBlockRequestContext } from './BlockProvider'; import { useFormBlockContext } from './FormBlockProvider'; @@ -16,18 +16,20 @@ const InternalTableSelectorProvider = (props) => { // return ; // } return ( - - {props.children} - + + + {props.children} + + ); }; diff --git a/packages/core/client/src/schema-initializer/buttons/TabPaneInitializers.tsx b/packages/core/client/src/schema-initializer/buttons/TabPaneInitializers.tsx index e4c6f8194..36bbc27cf 100644 --- a/packages/core/client/src/schema-initializer/buttons/TabPaneInitializers.tsx +++ b/packages/core/client/src/schema-initializer/buttons/TabPaneInitializers.tsx @@ -120,10 +120,10 @@ export const TabPaneInitializers = (props?: any) => { ); }; -export const TabPaneInitializersForCreateFormBlock = () => { - return ; +export const TabPaneInitializersForCreateFormBlock = (props) => { + return ; }; -export const TabPaneInitializersForBulkEditFormBlock = () => { - return ; +export const TabPaneInitializersForBulkEditFormBlock = (props) => { + return ; }; diff --git a/packages/core/client/src/schema-initializer/buttons/TableSelectorInitializers.tsx b/packages/core/client/src/schema-initializer/buttons/TableSelectorInitializers.tsx index 2a2585074..0d08adfbb 100644 --- a/packages/core/client/src/schema-initializer/buttons/TableSelectorInitializers.tsx +++ b/packages/core/client/src/schema-initializer/buttons/TableSelectorInitializers.tsx @@ -5,11 +5,15 @@ import { gridRowColWrap } from '../utils'; export const TableSelectorInitializers = (props: any) => { const { t } = useTranslation(); + const { insertPosition, component } = props; + return (