1

parent 5fdcac5e
......@@ -39,7 +39,7 @@ const props = defineProps({
default: () => []
}
});
const emit = defineEmits(["update:modelValue"]);
const emit = defineEmits(["update:modelValue", "update"]);
// 激活类名
const isActive = e => {
if (props.multiple) {
......@@ -61,6 +61,8 @@ const onClickItem = e => {
} else {
emit("update:modelValue", value);
}
emit("update");
};
</script>
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment