Fix reversi settings bot switch (#3609)

This commit is contained in:
MeiMei 2018-12-13 13:40:10 +09:00 committed by syuilo
parent a78eebc43f
commit 8bd17703c3
2 changed files with 2 additions and 2 deletions

View file

@ -60,7 +60,7 @@
<div>
<template v-for="item in form">
<ui-switch v-if="item.type == 'switch'" v-model="item.value" :key="item.id" :text="item.label" @change="onChangeForm(item)">{{ item.desc || '' }}</ui-switch>
<ui-switch v-if="item.type == 'switch'" v-model="item.value" :key="item.id" @change="onChangeForm(item)">{{ item.label || item.desc || '' }}</ui-switch>
<div class="card" v-if="item.type == 'radio'" :key="item.id">
<header>

View file

@ -124,7 +124,7 @@ type: `switch`
スイッチを表示します。何かの機能をオン/オフさせたい場合に有用です。
##### プロパティ
`desc` ... スイッチの詳細な説明
`label` ... スイッチに表記するテキスト
#### ラジオボタン
type: `radio`