--demand 面授课

This commit is contained in:
yuping
2023-03-17 03:08:28 +08:00
parent fa431338c8
commit e68aeb246b
20 changed files with 3670 additions and 3599 deletions

View File

@@ -0,0 +1,24 @@
<template>
<a-checkbox @change="change">
<slot></slot>
</a-checkbox>
</template>
<script setup>
import {defineEmits, defineProps} from "vue";
const props = defineProps({
checkValue: {
type: Boolean,
default: true
},
unCheckValue: {
type: Boolean,
default: false
},
});
const emit = defineEmits(['update:modelValue']);
function change({ target: { checked } }) {
emit("update:modelValue", checked ? props.checkValue : props.unCheckValue);
}
</script>