From 5bbb65e4c45183cd7e0757550d32d992de7daffa Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Thu, 18 Jul 2024 15:18:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=85=B3=E8=81=94=E7=9F=A5=E8=AF=86?= =?UTF-8?q?=E5=BA=93=E5=A2=9E=E5=8A=A0=E6=A0=A1=E9=AA=8C=E5=90=91=E9=87=8F?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/components/card-checkbox/index.vue | 9 ++- .../component/AddDatasetDialog.vue | 79 +++++++++++++++---- ui/src/views/log/component/EditMarkDialog.vue | 11 ++- 3 files changed, 79 insertions(+), 20 deletions(-) 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 }) - +