diff --git a/packages/client/src/schema-component/antd/dnd-context/index.md b/packages/client/src/schema-component/common/dnd-context/index.md similarity index 100% rename from packages/client/src/schema-component/antd/dnd-context/index.md rename to packages/client/src/schema-component/common/dnd-context/index.md diff --git a/packages/client/src/schema-component/antd/dnd-context/index.tsx b/packages/client/src/schema-component/common/dnd-context/index.tsx similarity index 91% rename from packages/client/src/schema-component/antd/dnd-context/index.tsx rename to packages/client/src/schema-component/common/dnd-context/index.tsx index 85c0472be..e83eaaa43 100644 --- a/packages/client/src/schema-component/antd/dnd-context/index.tsx +++ b/packages/client/src/schema-component/common/dnd-context/index.tsx @@ -1,7 +1,7 @@ import { DndContext as DndKitContext, DragEndEvent } from '@dnd-kit/core'; import { observer } from '@formily/react'; import React from 'react'; -import { createDesignable, useDesignable } from '../..'; +import { createDesignable, useDesignable } from '../../hooks'; const useDragEnd = () => { const { refresh } = useDesignable(); @@ -30,7 +30,7 @@ const useDragEnd = () => { } if (insertAdjacent) { - console.log('removeIfChildrenEmpty', activeSchema) + console.log('removeIfChildrenEmpty', activeSchema); dn.insertAdjacent(insertAdjacent, activeSchema, { wrap: wrapSchema, removeEmptyParents: true,