style(editor): 相对路径改成alias
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { InstallOptions } from '../type';
|
||||
import { InstallOptions } from '@editor/type';
|
||||
|
||||
let $TMAGIC_EDITOR: InstallOptions = {} as any;
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@ import { isEmpty } from 'lodash-es';
|
||||
|
||||
import { CodeBlockContent, HookType, Id } from '@tmagic/schema';
|
||||
|
||||
import { Target } from '../services/dep';
|
||||
import { HookData } from '../type';
|
||||
import { Target } from '@editor/services/dep';
|
||||
import type { HookData } from '@editor/type';
|
||||
|
||||
export const createCodeBlockTarget = (id: Id, codeBlock: CodeBlockContent) =>
|
||||
new Target({
|
||||
|
||||
@@ -23,7 +23,7 @@ import { NodeType } from '@tmagic/schema';
|
||||
import type StageCore from '@tmagic/stage';
|
||||
import { getNodePath, isNumber, isPage, isPop } from '@tmagic/utils';
|
||||
|
||||
import { Layout } from '../type';
|
||||
import { Layout } from '@editor/type';
|
||||
export const COPY_STORAGE_KEY = '$MagicEditorCopyData';
|
||||
|
||||
/**
|
||||
|
||||
@@ -4,10 +4,10 @@ import { isEmpty } from 'lodash-es';
|
||||
import { Id, MContainer, MNode } from '@tmagic/schema';
|
||||
import { isPage } from '@tmagic/utils';
|
||||
|
||||
import editorService from '../services/editor';
|
||||
import propsService from '../services/props';
|
||||
import { AddMNode, PastePosition } from '../type';
|
||||
import { generatePageNameByApp, getInitPositionStyle } from '../utils/editor';
|
||||
import editorService from '@editor/services/editor';
|
||||
import propsService from '@editor/services/props';
|
||||
import type { AddMNode, PastePosition } from '@editor/type';
|
||||
import { generatePageNameByApp, getInitPositionStyle } from '@editor/utils/editor';
|
||||
|
||||
/**
|
||||
* 粘贴前置操作:返回分配了新id以及校准了坐标的配置
|
||||
|
||||
@@ -2,9 +2,9 @@ import { computed } from 'vue';
|
||||
|
||||
import StageCore, { GuidesType, RemoveEventData, SortEventData, UpdateEventData } from '@tmagic/stage';
|
||||
|
||||
import editorService from '../services/editor';
|
||||
import uiService from '../services/ui';
|
||||
import { H_GUIDE_LINE_STORAGE_KEY, StageOptions, V_GUIDE_LINE_STORAGE_KEY } from '../type';
|
||||
import editorService from '@editor/services/editor';
|
||||
import uiService from '@editor/services/ui';
|
||||
import { H_GUIDE_LINE_STORAGE_KEY, StageOptions, V_GUIDE_LINE_STORAGE_KEY } from '@editor/type';
|
||||
|
||||
import { getGuideLineFromCache } from './editor';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user