diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-08-04 11:24:15 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-08-04 11:24:15 +0900 |
| commit | 33d3d5c5705474ffbaef86399a9dfd44c7f5cfe5 (patch) | |
| tree | 8e93543f89d293621e7d922b2aade1709a04b3df /src/client/app | |
| parent | :v: (diff) | |
| download | misskey-33d3d5c5705474ffbaef86399a9dfd44c7f5cfe5.tar.gz misskey-33d3d5c5705474ffbaef86399a9dfd44c7f5cfe5.tar.bz2 misskey-33d3d5c5705474ffbaef86399a9dfd44c7f5cfe5.zip | |
スライダーコントロールを追加するなど
Diffstat (limited to 'src/client/app')
| -rw-r--r-- | src/client/app/common/views/components/games/reversi/reversi.room.vue | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/src/client/app/common/views/components/games/reversi/reversi.room.vue b/src/client/app/common/views/components/games/reversi/reversi.room.vue index 2f5c3cf816..d482f70765 100644 --- a/src/client/app/common/views/components/games/reversi/reversi.room.vue +++ b/src/client/app/common/views/components/games/reversi/reversi.room.vue @@ -53,7 +53,7 @@ </div> </div> - <div class="card" v-if="form"> + <div class="card form" v-if="form"> <header> <span>%i18n:@settings-of-the-bot%</span> </header> @@ -65,7 +65,7 @@ :key="message.id"/> <template v-for="item in form"> - <mk-switch v-if="item.type == 'button'" v-model="item.value" :key="item.id" :text="item.label" @change="onChangeForm($event, item)">{{ item.desc || '' }}</mk-switch> + <mk-switch v-if="item.type == 'switch'" v-model="item.value" :key="item.id" :text="item.label" @change="onChangeForm($event, item)">{{ item.desc || '' }}</mk-switch> <div class="card" v-if="item.type == 'radio'" :key="item.id"> <header> @@ -77,6 +77,16 @@ </div> </div> + <div class="card" v-if="item.type == 'slider'" :key="item.id"> + <header> + <span>{{ item.label }}</span> + </header> + + <div> + <input type="range" :min="item.min" :max="item.max" :step="item.step || 1" v-model="item.value" @change="onChangeForm($event, item)"/> + </div> + </div> + <div class="card" v-if="item.type == 'textbox'" :key="item.id"> <header> <span>{{ item.label }}</span> @@ -214,7 +224,7 @@ export default Vue.extend({ this.connection.send({ type: 'update-form', id: item.id, - value: v + value: item.value }); }, @@ -312,6 +322,14 @@ root(isDark) &[data-none] border-color transparent + &.form + > div + > .card + .card + margin-top 16px + + input[type='range'] + width 100% + .card max-width 400px border-radius 4px |