chore: replace to manual import component

This commit is contained in:
dap 2024-09-20 14:52:38 +08:00
parent 42ead07555
commit 631e4a414f

View File

@ -3,6 +3,8 @@ import { ref } from 'vue';
import { Page } from '@vben/common-ui';
import { Switch } from 'ant-design-vue';
import { Tinymce } from '#/components/tinymce';
const readonly = ref(false);
@ -14,7 +16,7 @@ const content = ref('');
<div class="flex flex-col gap-[16px]">
<div class="flex items-center gap-[16px]">
<span>只读</span>
<a-switch v-model:checked="readonly" />
<Switch v-model:checked="readonly" />
</div>
<Tinymce v-model="content" :height="800" :options="{ readonly }" />
</div>