1
0
mirror of synced 2026-04-05 07:48:35 +08:00

style(editor): 相对路径改成alias

This commit is contained in:
roymondchen
2023-04-10 15:16:32 +08:00
parent a60e067d4e
commit 40adc77978
45 changed files with 130 additions and 86 deletions

View File

@@ -16,7 +16,7 @@
* limitations under the License.
*/
import { InstallOptions } from '../type';
import { InstallOptions } from '@editor/type';
let $TMAGIC_EDITOR: InstallOptions = {} as any;

View File

@@ -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({

View File

@@ -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';
/**

View File

@@ -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以及校准了坐标的配置

View File

@@ -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';