fix(form): radio group disabled不生效

This commit is contained in:
roymondchen 2026-07-10 16:40:42 +08:00
parent de7a4f73ad
commit 42d45bed18

View File

@ -36,6 +36,9 @@ const itemComponent = computed(() => (props.config.childType === 'button' ? TMag
const emit = defineEmits(['change']);
const clickHandler = (item: string | number | boolean) => {
if (props.disabled) {
return;
}
//
emit('change', props.model[props.name] === item ? '' : item);
};