Skip to content

Commit

Permalink
rename to update
Browse files Browse the repository at this point in the history
  • Loading branch information
kewcoder committed Nov 14, 2023
1 parent 81052cb commit b74caeb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/@orchidui-vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@orchidui/vue",
"version": "0.1.132",
"version": "0.1.133",
"type": "module",
"scripts": {
"build": "vite build",
Expand Down
4 changes: 2 additions & 2 deletions packages/@orchidui-vue/src/Form/TextEditor/OcTextEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -98,7 +98,7 @@ const readImage = (base64) => {
.getQuill()
.clipboard.dangerouslyPasteHTML(range.index, `<img src="${base64}" />`);
base64Images.value = base64
emit('upload:image',base64Images.value)
emit('update:image',base64Images.value)
};
const uploadImage = () => {
if (!quill.value.getQuill().getSelection())
Expand Down

0 comments on commit b74caeb

Please sign in to comment.