mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2026-07-11 21:31:26 +08:00
fix(form): radio group disabled不生效
This commit is contained in:
parent
de7a4f73ad
commit
42d45bed18
@ -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);
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user