style: 💄 代码格式调整,完善注释

This commit is contained in:
郝先瑞 2023-04-19 08:07:25 +08:00
parent 44aeaae6f5
commit fecca52be3
1 changed files with 4 additions and 8 deletions

View File

@ -20,7 +20,6 @@
</template>
<script setup lang="ts">
import { onBeforeUnmount, shallowRef, reactive, toRefs } from "vue";
import { Editor, Toolbar } from "@wangeditor/editor-for-vue";
// API
@ -37,11 +36,10 @@ const emit = defineEmits(["update:modelValue"]);
const defaultHtml = useVModel(props, "modelValue", emit);
// shallowRef
const editorRef = shallowRef();
const toolbarConfig = ref({});
const editorRef = shallowRef(); // shallowRef
const mode = ref("default"); //
const toolbarConfig = ref({}); //
//
const editorConfig = ref({
placeholder: "请输入内容...",
MENU_CONF: {
@ -57,8 +55,6 @@ const editorConfig = ref({
},
});
const mode = ref("default");
const handleCreated = (editor: any) => {
editorRef.value = editor; // editor
};