@@ -11,7 +11,6 @@ import {
1111import {
1212 IPublicTypeNodeData ,
1313 IPublicTypeNodeSchema ,
14- IPublicTypeRootSchema ,
1514 IPublicTypePageSchema ,
1615 IPublicTypeComponentsMap ,
1716 IPublicTypeDragNodeObject ,
@@ -21,7 +20,10 @@ import {
2120 IPublicTypeOnChangeOptions ,
2221 IPublicTypeDisposable ,
2322} from '@alilc/lowcode-types' ;
24- import {
23+ import type {
24+ IPublicTypeRootSchema ,
25+ } from '@alilc/lowcode-types' ;
26+ import type {
2527 IDropLocation ,
2628} from '@alilc/lowcode-designer' ;
2729import {
@@ -37,9 +39,10 @@ import {
3739} from '@alilc/lowcode-utils' ;
3840import { IProject } from '../project' ;
3941import { ISimulatorHost } from '../simulator' ;
40- import { IComponentMeta } from '../component-meta' ;
42+ import type { IComponentMeta } from '../component-meta' ;
4143import { IDesigner , IHistory } from '../designer' ;
42- import { insertChildren , insertChild , IRootNode , INode } from './node/node' ;
44+ import { insertChildren , insertChild , IRootNode } from './node/node' ;
45+ import type { INode } from './node/node' ;
4346import { Selection , ISelection } from './selection' ;
4447import { History } from './history' ;
4548import { IModalNodesManager , ModalNodesManager , Node } from './node' ;
@@ -49,11 +52,11 @@ export type GetDataType<T, NodeType> = T extends undefined
4952 ? NodeType extends {
5053 schema : infer R ;
5154 }
52- ? R
53- : any
55+ ? R
56+ : any
5457 : T ;
5558
56- export interface IDocumentModel extends Omit < IPublicModelDocumentModel <
59+ export interface IDocumentModel extends Omit < IPublicModelDocumentModel <
5760 ISelection ,
5861 IHistory ,
5962 INode ,
@@ -656,9 +659,9 @@ export class DocumentModel implements IDocumentModel {
656659 }
657660
658661 checkNesting (
659- dropTarget : INode ,
660- dragObject : IPublicTypeDragNodeObject | IPublicTypeNodeSchema | INode | IPublicTypeDragNodeDataObject ,
661- ) : boolean {
662+ dropTarget : INode ,
663+ dragObject : IPublicTypeDragNodeObject | IPublicTypeNodeSchema | INode | IPublicTypeDragNodeDataObject ,
664+ ) : boolean {
662665 let items : Array < INode | IPublicTypeNodeSchema > ;
663666 if ( isDragNodeDataObject ( dragObject ) ) {
664667 items = Array . isArray ( dragObject . data ) ? dragObject . data : [ dragObject . data ] ;
0 commit comments