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,10 +1,15 @@
<template> <template>
<div class="jhpkzgfz"> <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="kv" v-for="kv in kvs" :key="kv[0]">
<div class="k _monospace">{{ kv[0] }}</div> <div class="k _monospace">{{ kv[0] }}</div>
<XValue class="v" :value="kv[1]" :schemas="schemas"/> <XValue class="v" :value="kv[1]" :schemas="schemas"/>
</div> </div>
</div> </div>
</div>
</template> </template>
<script lang="ts"> <script lang="ts">
@ -48,6 +53,7 @@ export default defineComponent({
border-radius: 4px; border-radius: 4px;
padding: 16px; padding: 16px;
> .kvs {
> .kv { > .kv {
display: flex; display: flex;
@ -68,4 +74,5 @@ export default defineComponent({
} }
} }
} }
}
</style> </style>