1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-14 22:45:40 +02:00
This commit is contained in:
syuilo
2026-02-20 11:39:42 +09:00
parent 41d40f53cf
commit cdc9b47b78
8 changed files with 94 additions and 7 deletions

View File

@@ -33,6 +33,9 @@ SPDX-License-Identifier: AGPL-3.0-only
<div v-if="s.type === 'color'">
<MkInput :modelValue="getHex(engine.selected.value.objectState.options[k])" type="color" @update:modelValue="v => { const c = getRgb(v); if (c != null) engine.updateObjectOption(engine.selected.value.objectId, k, c); }"></MkInput>
</div>
<div v-else-if="s.type === 'enum'">
<MkSelect :items="s.enum.map(e => ({ label: e, value: e }))" :modelValue="engine.selected.value.objectState.options[k]" @update:modelValue="v => engine.updateObjectOption(engine.selected.value.objectId, k, v)"></MkSelect>
</div>
</div>
</div>
</template>
@@ -602,5 +605,7 @@ definePage(() => ({
right: 16px;
z-index: 1;
padding: 16px;
box-sizing: border-box;
width: 300px;
}
</style>