Skip to content

Commit

Permalink
细节调整
Browse files Browse the repository at this point in the history
  • Loading branch information
umodoc committed Sep 22, 2024
1 parent 59c5b00 commit 37847a3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 21 deletions.
3 changes: 2 additions & 1 deletion TODO
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
[ ] 添加用户信息,头像可使用昵称
[ ] 修复:粘贴一段内容后,再 insertContent 会出错,如插入特殊符号,表情等
[ ] 默认不修改文档内容时,设置页面大小、方向等会报错
[ ] 处理:自定义节点选中时的样式,比如 Ctrl+A 全选
[ ] 处理:自定义节点选中时的样式,比如 Ctrl+A 全选
[ ] 使用 extension-unique-id 简化节点 id
36 changes: 16 additions & 20 deletions src/components/menus/bubble/index.vue
Original file line number Diff line number Diff line change
@@ -1,25 +1,21 @@
<template>
<div class="umo-editor-bubble-menu-container">
<bubble-menu
v-show="!blockMenu && !painter.enabled && !editor!.isEmpty"
class="umo-editor-bubble-menu"
:class="{ assistant: assistantBox }"
:editor="editor!"
:tippy-options="tippyOpitons"
<bubble-menu
v-show="!blockMenu && !painter.enabled && !editor!.isEmpty"
class="umo-editor-bubble-menu"
:class="{ assistant: assistantBox }"
:editor="editor!"
:tippy-options="tippyOpitons"
>
<menus-bubble-menus
v-if="options?.document?.enableBubbleMenu && !assistantBox && !commentBox"
>
<menus-bubble-menus
v-if="
options?.document?.enableBubbleMenu && !assistantBox && !commentBox
"
>
<template #bubble_menu="props">
<slot name="bubble_menu" v-bind="props" />
</template>
</menus-bubble-menus>
<assistant-input v-if="options?.assistant?.enabled && assistantBox" />
<comment-input v-if="options?.document?.enableComment && commentBox" />
</bubble-menu>
</div>
<template #bubble_menu="props">
<slot name="bubble_menu" v-bind="props" />
</template>
</menus-bubble-menus>
<assistant-input v-if="options?.assistant?.enabled && assistantBox" />
<comment-input v-if="options?.document?.enableComment && commentBox" />
</bubble-menu>
</template>

<script setup lang="ts">
Expand Down
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const buildConfig = {
fileName: 'umo-editor',
},
outDir: 'dist',
copyPublicDir: false,
minify: 'esbuild' as const,
cssMinify: true,
rollupOptions: {
Expand Down

0 comments on commit 37847a3

Please sign in to comment.