This commit is contained in:
kakkokari-gtyih 2026-01-07 22:28:06 +09:00
parent 4987547efb
commit 2c80d33862
1 changed files with 13 additions and 2 deletions

View File

@ -323,9 +323,20 @@ async function showRadioOptions(item: MenuRadio, ev: Event) {
type: 'radioOption',
text: key,
action: () => {
item.ref = value;
if ('value' in item.ref) {
item.ref.value = value;
} else {
// @ts-expect-error
item.ref = value;
}
},
active: computed(() => item.ref === value),
active: computed(() => {
if ('value' in item.ref) {
return item.ref.value === value;
} else {
return item.ref === value;
}
}),
};
});