This commit is contained in:
syuilo 2022-02-25 18:53:08 +09:00
parent c1c71c2e79
commit 2cd25c6f3a

View file

@ -38,16 +38,14 @@
<template #label>{{ i18n.ts._profile.metadataEdit }}</template> <template #label>{{ i18n.ts._profile.metadataEdit }}</template>
<div class="_formRoot"> <div class="_formRoot">
<div v-for="record in fields" class="_formBlock"> <FormSplit v-for="(record, i) in fields" :min-width="250" class="_formBlock">
<FormSplit :min-width="250"> <FormInput v-model="record.name">
<FormInput v-model="record.name" class="_formBlock"> <template #label>{{ i18n.ts._profile.metadataLabel }} #{{ i + 1 }}</template>
<template #label>{{ i18n.ts._profile.metadataLabel }}</template>
</FormInput> </FormInput>
<FormInput v-model="record.value" class="_formBlock"> <FormInput v-model="record.value">
<template #label>{{ i18n.ts._profile.metadataContent }}</template> <template #label>{{ i18n.ts._profile.metadataContent }} #{{ i + 1 }}</template>
</FormInput> </FormInput>
</FormSplit> </FormSplit>
</div>
<MkButton :disabled="fields.length >= 16" inline style="margin-right: 8px;" @click="addField"><i class="fas fa-plus"></i> {{ i18n.ts.add }}</MkButton> <MkButton :disabled="fields.length >= 16" inline style="margin-right: 8px;" @click="addField"><i class="fas fa-plus"></i> {{ i18n.ts.add }}</MkButton>
<MkButton inline primary @click="saveFields"><i class="fas fa-check"></i> {{ i18n.ts.save }}</MkButton> <MkButton inline primary @click="saveFields"><i class="fas fa-check"></i> {{ i18n.ts.save }}</MkButton>
</div> </div>