Use labels insted of keys

This commit is contained in:
Angelina Filippova 2019-11-08 21:30:44 +09:00
parent a14b74f975
commit 7aba783351
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
<template>
<el-form-item :label="setting.key">
<el-form-item :label="setting.label">
<el-input
v-if="setting.type === 'string'"
:value="data[setting.key]"

View file

@ -8,7 +8,7 @@
<inputs :settings-group="settingsGroup" :setting="setting" :data="data"/>
</div>
<div v-if="compound(setting.type)">
<el-form-item :label="`${setting.key}:`"/>
<el-form-item :label="`${setting.label}:`"/>
<div v-for="subSetting in setting.children" :key="subSetting.key">
<inputs :settings-group="setting" :setting="subSetting" :data="data[setting]"/>
</div>