From b74caebb38a263011e2647b5f7d7723f6762ab2b Mon Sep 17 00:00:00 2001 From: kewcoder Date: Tue, 14 Nov 2023 14:25:26 +0700 Subject: [PATCH] rename to update --- packages/@orchidui-vue/package.json | 2 +- packages/@orchidui-vue/src/Form/TextEditor/OcTextEditor.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/@orchidui-vue/package.json b/packages/@orchidui-vue/package.json index c456f28f2..4572a3843 100644 --- a/packages/@orchidui-vue/package.json +++ b/packages/@orchidui-vue/package.json @@ -1,6 +1,6 @@ { "name": "@orchidui/vue", - "version": "0.1.132", + "version": "0.1.133", "type": "module", "scripts": { "build": "vite build", diff --git a/packages/@orchidui-vue/src/Form/TextEditor/OcTextEditor.vue b/packages/@orchidui-vue/src/Form/TextEditor/OcTextEditor.vue index 5557af548..091a8185a 100644 --- a/packages/@orchidui-vue/src/Form/TextEditor/OcTextEditor.vue +++ b/packages/@orchidui-vue/src/Form/TextEditor/OcTextEditor.vue @@ -17,7 +17,7 @@ const props = defineProps({ modelValue: String, image: String }); -const emit = defineEmits(["update:modelValue","upload:image"]); +const emit = defineEmits(["update:modelValue","update:image"]); const Size = Quill.import("attributors/style/size"); Size.whitelist = props.fontSizes.map((f) => f.value); @@ -98,7 +98,7 @@ const readImage = (base64) => { .getQuill() .clipboard.dangerouslyPasteHTML(range.index, ``); base64Images.value = base64 - emit('upload:image',base64Images.value) + emit('update:image',base64Images.value) }; const uploadImage = () => { if (!quill.value.getQuill().getSelection())