diff --git a/src/modules/base/components/editor-quill/index.vue b/src/modules/base/components/editor/quill.vue similarity index 95% rename from src/modules/base/components/editor-quill/index.vue rename to src/modules/base/components/editor/quill.vue index 9b74622..c3a2f10 100644 --- a/src/modules/base/components/editor-quill/index.vue +++ b/src/modules/base/components/editor/quill.vue @@ -1,7 +1,7 @@ @@ -26,14 +26,14 @@ export default defineComponent({ setup(props, { emit }) { let quill: any = null; - const Editor = ref(); - const Upload = ref(); + const Editor = ref(); + const Upload = ref(); // 文本内容 - const content = ref(""); + const content = ref(""); // 光标位置 - const cursorIndex = ref(0); + const cursorIndex = ref(0); // 上传处理 function uploadFileHandler() { @@ -47,7 +47,7 @@ export default defineComponent({ } // 文件确认 - function onUploadConfirm(files: any[]) { + function onSpaceConfirm(files: any[]) { if (files.length > 0) { // 批量插入图片 files.forEach((file, i) => { @@ -146,7 +146,7 @@ export default defineComponent({ cursorIndex, style, setContent, - onUploadConfirm + onSpaceConfirm }; } }); diff --git a/src/modules/base/components/editor/wang.vue b/src/modules/base/components/editor/wang.vue new file mode 100644 index 0000000..cd763c4 --- /dev/null +++ b/src/modules/base/components/editor/wang.vue @@ -0,0 +1,140 @@ + + + + +