替换游戏名修改属性

This commit is contained in:
yml2213
2026-08-16 18:55:26 +08:00
parent d2429618f4
commit 786d20e9cd
8 changed files with 26 additions and 20 deletions
@@ -119,7 +119,7 @@ function selectRadio<T extends string>(value: T, setter: (value: T) => void) {
setter(value)
}
const unlockSaidOptions = ['是', '否']
const canChangeGameNameOptions = ['是', '否']
const allHeroOptions = ['是', '否']
// 在线时间:通栏自定义块 + 底部时间选择,避免 van-field 窄列截断原生 time
@@ -405,16 +405,16 @@ const screenshotGuides: Record<string, string> = {
}}
</p>
<van-field label="解锁赛伊德" required class="publish-field">
<van-field label="是否可以修改游戏名" required class="publish-field">
<template #input>
<div class="radio-group">
<button
v-for="opt in unlockSaidOptions"
v-for="opt in canChangeGameNameOptions"
:key="opt"
type="button"
class="radio-btn"
:class="{ active: form.unlock_said === opt }"
@click="selectRadio(opt, value => (form.unlock_said = value))"
:class="{ active: form.can_change_game_name === opt }"
@click="selectRadio(opt, value => (form.can_change_game_name = value))"
>
{{ opt }}
</button>