fix
This commit is contained in:
parent
4987547efb
commit
2c80d33862
|
|
@ -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;
|
||||
}
|
||||
}),
|
||||
};
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue