Skip to content

Commit 010f9ca

Browse files
committed
refactor: clean up imports in MarkdownEditor.vue
1 parent a7a5a17 commit 010f9ca

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

custom/MarkdownEditor.vue

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,11 @@
99
</template>
1010

1111
<script setup lang="ts">
12-
import { ref, watch, onMounted, onBeforeUnmount } from 'vue';
12+
import { ref, onMounted, onBeforeUnmount } from 'vue';
1313
import { callAdminForthApi } from '@/utils';
14-
import { Editor, rootCtx, defaultValueCtx } from '@milkdown/core';
15-
import { gfm } from '@milkdown/kit/preset/gfm';
16-
import { commonmark } from '@milkdown/preset-commonmark';
17-
import { listener, listenerCtx } from '@milkdown/plugin-listener';
14+
import { Editor } from '@milkdown/core';
1815
import { Crepe } from '@milkdown/crepe';
19-
import { insert } from '@milkdown/kit/utils';
20-
import { AdminForthColumnCommon } from '@/types/Common';
16+
import type { AdminForthColumn } from '@/types/Common';
2117
import '@milkdown/crepe/theme/common/style.css';
2218
import '@milkdown/crepe/theme/frame-dark.css';
2319

0 commit comments

Comments
 (0)