Update value.object.vue

This commit is contained in:
syuilo 2021-01-10 11:25:31 +09:00
parent 10c1e8161f
commit 0ff714d11e

View file

@ -1,9 +1,14 @@
<template>
<div class="jhpkzgfz">
<div class="empty" v-if="kvs.length === 0">
No fields
</div>
<div class="kvs" v-else>
<div class="kv" v-for="kv in kvs" :key="kv[0]">
<div class="k _monospace">{{ kv[0] }}</div>
<XValue class="v" :value="kv[1]" :schemas="schemas"/>
</div>
</div>
</div>
</template>
@ -48,6 +53,7 @@ export default defineComponent({
border-radius: 4px;
padding: 16px;
> .kvs {
> .kv {
display: flex;
@ -67,5 +73,6 @@ export default defineComponent({
flex: 1;
}
}
}
}
</style>