チェックボックスの状態をemitで親にバケツリレーするように

This commit is contained in:
rca 2024-07-22 05:59:36 +09:00
parent 7788508af5
commit 2eacb07ac6

View File

@ -16,9 +16,10 @@ interface Props {
} }
const props = defineProps<Props>(); const props = defineProps<Props>();
const emit = defineEmits(['containPaid:checked']);
const handleContainPaidCheckbox = (value: boolean) => { const handleContainPaidCheckbox = (value: boolean) => {
console.log(value); emit('containPaid:checked', value);
}; };
</script> </script>