fix: 🐛 移除无用的emit事件

This commit is contained in:
ray
2025-02-12 12:39:00 +08:00
parent ff432684c2
commit e865b33bd9

View File

@@ -37,7 +37,7 @@ import { IToolbarConfig, IEditorConfig } from "@wangeditor-next/editor";
import FileAPI from "@/api/file"; import FileAPI from "@/api/file";
// 上传图片回调函数类型 // 上传图片回调函数类型
type InsertFnType = (url: string, alt: string, href: string) => void; type InsertFnType = (_url: string, _alt: string, _href: string) => void;
defineProps({ defineProps({
height: { height: {
@@ -45,9 +45,6 @@ defineProps({
default: "500px", default: "500px",
}, },
}); });
const emit = defineEmits(["update:modelValue"]);
// 双向绑定 // 双向绑定
const modelValue = defineModel("modelValue", { const modelValue = defineModel("modelValue", {
type: String, type: String,