1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-22 08:14:07 +02:00
This commit is contained in:
syuilo
2026-04-30 16:01:11 +09:00
parent c7c785ad2a
commit 6cf90fd714
9 changed files with 136 additions and 2 deletions

View File

@@ -17,6 +17,9 @@ SPDX-License-Identifier: AGPL-3.0-only
<div v-else-if="s.type === 'enum'">
<MkSelect :items="s.enum.map(e => ({ label: e, value: e }))" :modelValue="options[k]" @update:modelValue="v => emit('update', k, v)"></MkSelect>
</div>
<div v-else-if="s.type === 'string'">
<MkInput type="text" :modelValue="options[k]" @update:modelValue="v => emit('update', k, v)"></MkInput>
</div>
<div v-else-if="s.type === 'range'">
<MkRange :continuousUpdate="true" :min="s.min" :max="s.max" :step="s.step" :modelValue="options[k]" @update:modelValue="v => emit('update', k, v)"></MkRange>
</div>