refactor: use setup refactor

This commit is contained in:
xiaoxian521
2021-09-18 12:44:31 +08:00
parent ff329b1e8e
commit 67db3cb1c3
10 changed files with 548 additions and 584 deletions

View File

@@ -9,8 +9,8 @@ import { onMounted, onBeforeUnmount, ref, unref } from "vue";
import WangEditor from "wangeditor";
// eslint-disable-next-line no-undef
const editor = ref<ComponentRef>(null);
const html = ref<HTMLElement>(null);
const editor = ref(null);
const html = ref(null);
let instance: WangEditor;
onMounted(() => {