This commit is contained in:
oneao committed 2025-09-16 17:28:52 +08:00
1 parent 5834738700
commit df704b3056
8 files changed
+344 -121

No files matched your search

@@ -34,7 +34,7 @@ export default defineComponent({
type: {
type: String as PropType<'default' | 'filled' | 'primaryFilled' | 'card' | 'pureCard' | 'outline'>,
default: 'default',
}
},
},
emits: ['update:modelValue', 'change'],
setup(props, { slots, emit }) {
@@ -49,7 +49,7 @@ export default defineComponent({
const isChecked = computed(() => {
if (inGroup.value)
return props.value === radioGroupCtx!.value
return _checked.value
return props.modelValue ?? _checked.value
})
const handleClick = (e: Event) => {