chore: 需要阻止事件冒泡

This commit is contained in:
dap 2024-11-02 15:16:07 +08:00
parent 9467d400d2
commit b3d61c8903

View File

@ -46,7 +46,9 @@ export default defineComponent({
emits: ['update:modelValue'],
setup(props, { emit }) {
type CheckedType = boolean | number | string;
async function onChange(checked: CheckedType) {
async function onChange(checked: CheckedType, e: Event) {
//
e.stopPropagation();
const { checkedValue, unCheckedValue } = props;
//
const lastStatus =