diff --git a/packages/client/src/schema-component/antd/AntdSchemaComponentProvider.tsx b/packages/client/src/schema-component/antd/AntdSchemaComponentProvider.tsx index caa21e2c8..f334ffc99 100644 --- a/packages/client/src/schema-component/antd/AntdSchemaComponentProvider.tsx +++ b/packages/client/src/schema-component/antd/AntdSchemaComponentProvider.tsx @@ -1,6 +1,6 @@ import React from 'react'; import * as components from '.'; -import { SchemaComponentOptions } from '../components/SchemaComponentOptions'; +import { SchemaComponentOptions } from '../core/SchemaComponentOptions'; export const AntdSchemaComponentProvider = (props) => { const { children } = props; diff --git a/packages/client/src/schema-component/antd/filter/Filter.tsx b/packages/client/src/schema-component/antd/filter/Filter.tsx index 5f1a10128..00644b5b5 100644 --- a/packages/client/src/schema-component/antd/filter/Filter.tsx +++ b/packages/client/src/schema-component/antd/filter/Filter.tsx @@ -3,7 +3,7 @@ import { createForm, onFieldValueChange } from '@formily/core'; import { connect, FieldContext, FormContext, ISchema, mapProps, mapReadPretty, Schema } from '@formily/react'; import deepmerge from 'deepmerge'; import React, { useMemo } from 'react'; -import { SchemaComponent } from '../../components'; +import { SchemaComponent } from '../../core'; import { FilterGroup } from './FilterGroup'; import './style.less'; diff --git a/packages/client/src/schema-component/antd/filter/FilterItem.tsx b/packages/client/src/schema-component/antd/filter/FilterItem.tsx index afccf8780..6fc8465e9 100644 --- a/packages/client/src/schema-component/antd/filter/FilterItem.tsx +++ b/packages/client/src/schema-component/antd/filter/FilterItem.tsx @@ -15,7 +15,7 @@ import { import { isValid, uid } from '@formily/shared'; import { get } from 'lodash'; import React, { useContext, useMemo } from 'react'; -import { SchemaComponent } from '../../components'; +import { SchemaComponent } from '../../core'; function useFilterColumns(): Map { const schema = useFieldSchema(); diff --git a/packages/client/src/schema-component/antd/index.ts b/packages/client/src/schema-component/antd/index.ts index 0c2b8e2a7..90d28fc7a 100644 --- a/packages/client/src/schema-component/antd/index.ts +++ b/packages/client/src/schema-component/antd/index.ts @@ -8,7 +8,6 @@ export * from './chart'; export * from './checkbox'; export * from './color-select'; export * from './date-picker'; -export * from './dnd-context'; export * from './filter'; export * from './form'; export * from './form-item'; @@ -31,4 +30,3 @@ export * from './time-picker'; export * from './tree-select'; export * from './upload'; export * from './void-table'; - diff --git a/packages/client/src/schema-component/antd/sortable-item/index.tsx b/packages/client/src/schema-component/antd/sortable-item/SortableItem.tsx similarity index 100% rename from packages/client/src/schema-component/antd/sortable-item/index.tsx rename to packages/client/src/schema-component/antd/sortable-item/SortableItem.tsx diff --git a/packages/client/src/schema-component/antd/sortable-item/index.ts b/packages/client/src/schema-component/antd/sortable-item/index.ts new file mode 100644 index 000000000..5334ff109 --- /dev/null +++ b/packages/client/src/schema-component/antd/sortable-item/index.ts @@ -0,0 +1 @@ +export * from './SortableItem'; diff --git a/packages/client/src/schema-component/common/index.ts b/packages/client/src/schema-component/common/index.ts new file mode 100644 index 000000000..76c4e02c0 --- /dev/null +++ b/packages/client/src/schema-component/common/index.ts @@ -0,0 +1 @@ +export * from './dnd-context'; diff --git a/packages/client/src/schema-component/index.tsx b/packages/client/src/schema-component/index.tsx index ad105f1df..d9785b81c 100644 --- a/packages/client/src/schema-component/index.tsx +++ b/packages/client/src/schema-component/index.tsx @@ -1,6 +1,7 @@ export * from './antd'; export * from './antd/AntdSchemaComponentProvider'; -export * from './components'; +export * from './common'; export * from './context'; +export * from './core'; export * from './hooks'; export * from './types';