chore: 目录结构调整

This commit is contained in:
pipipi-pikachu 2021-06-04 17:19:09 +08:00
parent a10704c0ba
commit b86ff7dfd3
13 changed files with 404 additions and 405 deletions

View File

@ -142,7 +142,6 @@ A. 设置在线字体时会下载对应的字体文件,该文件较大,需
├── hooks // 供多个组件(模块)使用的 hooks 方法 ├── hooks // 供多个组件(模块)使用的 hooks 方法
├── mocks // mocks 数据 ├── mocks // mocks 数据
├── plugins // 自定义的 Vue 插件 ├── plugins // 自定义的 Vue 插件
├── prosemirror // ProseMirror 富文本编辑器相关的文件
├── types // 类型定义文件 ├── types // 类型定义文件
├── store // Vuex store参考https://vuex.vuejs.org/zh/guide/ ├── store // Vuex store参考https://vuex.vuejs.org/zh/guide/
├── utils // 通用的工具方法 ├── utils // 通用的工具方法

View File

@ -222,7 +222,7 @@ import { computed, defineComponent, onUnmounted, ref, watch } from 'vue'
import { MutationTypes, useStore } from '@/store' import { MutationTypes, useStore } from '@/store'
import { PPTTextElement } from '@/types/slides' import { PPTTextElement } from '@/types/slides'
import emitter, { EmitterEvents } from '@/utils/emitter' import emitter, { EmitterEvents } from '@/utils/emitter'
import { TextAttrs } from '@/prosemirror/utils' import { TextAttrs } from '@/utils/prosemirror/utils'
import { WEB_FONTS } from '@/configs/font' import { WEB_FONTS } from '@/configs/font'
import useHistorySnapshot from '@/hooks/useHistorySnapshot' import useHistorySnapshot from '@/hooks/useHistorySnapshot'

View File

@ -50,12 +50,12 @@ import { EditorView } from 'prosemirror-view'
import { toggleMark, wrapIn, selectAll } from 'prosemirror-commands' import { toggleMark, wrapIn, selectAll } from 'prosemirror-commands'
import { PPTTextElement } from '@/types/slides' import { PPTTextElement } from '@/types/slides'
import { ContextmenuItem } from '@/components/Contextmenu/types' import { ContextmenuItem } from '@/components/Contextmenu/types'
import { initProsemirrorEditor } from '@/prosemirror/' import { initProsemirrorEditor } from '@/utils/prosemirror/'
import { getTextAttrs } from '@/prosemirror/utils' import { getTextAttrs } from '@/utils/prosemirror/utils'
import emitter, { EmitterEvents } from '@/utils/emitter' import emitter, { EmitterEvents } from '@/utils/emitter'
import useElementShadow from '@/views/components/element/hooks/useElementShadow' import useElementShadow from '@/views/components/element/hooks/useElementShadow'
import { alignmentCommand } from '@/prosemirror/commands/setTextAlign' import { alignmentCommand } from '@/utils/prosemirror/commands/setTextAlign'
import { toggleList } from '@/prosemirror/commands/toggleList' import { toggleList } from '@/utils/prosemirror/commands/toggleList'
import useHistorySnapshot from '@/hooks/useHistorySnapshot' import useHistorySnapshot from '@/hooks/useHistorySnapshot'
import ElementOutline from '@/views/components/element/ElementOutline.vue' import ElementOutline from '@/views/components/element/ElementOutline.vue'