refactor: TinyMCE组件重构 移除冗余代码/功能 增加loading

This commit is contained in:
dap
2025-04-04 22:55:07 +08:00
parent 104039cdfb
commit a2ed3fa48b
5 changed files with 90 additions and 468 deletions

View File

@@ -15,10 +15,10 @@ const content = ref('');
<Page title="Tinymce富文本">
<div class="flex flex-col gap-[16px]">
<div class="flex items-center gap-[16px]">
<span>只读</span>
<span>禁用</span>
<Switch v-model:checked="readonly" />
</div>
<Tinymce v-model="content" :height="800" :options="{ readonly }" />
<Tinymce v-model="content" :height="800" :disabled="readonly" />
</div>
</Page>
</template>