diff --git a/ui/src/components/card-checkbox/index.vue b/ui/src/components/card-checkbox/index.vue index fad15107c..fb5e2f296 100644 --- a/ui/src/components/card-checkbox/index.vue +++ b/ui/src/components/card-checkbox/index.vue @@ -18,7 +18,8 @@ - + + @@ -40,7 +41,7 @@ const toModelValue = computed(() => (props.valueField ? props.data[props.valueFi // set: (val) => val // }) -const emit = defineEmits(['update:modelValue']) +const emit = defineEmits(['update:modelValue', 'change']) const checked = () => { const value = props.modelValue ? props.modelValue : [] @@ -53,6 +54,10 @@ const checked = () => { emit('update:modelValue', [...value, toModelValue.value]) } } + +function checkboxChange() { + emit('change') +} + diff --git a/ui/src/views/log/component/EditMarkDialog.vue b/ui/src/views/log/component/EditMarkDialog.vue index cae7155c5..29adb9282 100644 --- a/ui/src/views/log/component/EditMarkDialog.vue +++ b/ui/src/views/log/component/EditMarkDialog.vue @@ -141,4 +141,13 @@ const submit = async (formEl: FormInstance) => { defineExpose({ open }) - +