diff --git a/package/component/src/component/radio/index.vue b/package/component/src/component/radio/index.vue index 47bb29a9..a9b1ffa2 100644 --- a/package/component/src/component/radio/index.vue +++ b/package/component/src/component/radio/index.vue @@ -25,6 +25,14 @@ const isGroup = computed(() => { return radioGroup != undefined && radioGroup?.name === "LayRadioGroup"; }); +const naiveName = computed(() => { + if(radioGroup.naiveName) { + return radioGroup.naiveName; + } else { + return props.name; + } +}) + const isChecked = computed({ get() { if (isGroup.value) { @@ -54,7 +62,7 @@ const handleClick = function () {