improvement

This commit is contained in:
liangping 2022-10-06 09:30:54 +08:00
parent 9fc2328ab6
commit 2fca7644bf

View File

@ -37,14 +37,14 @@
<b-tabs <b-tabs
v-if="value" v-if="value"
small small
class="overflow-hidden"
> >
<b-tab <b-tab
v-for="key in Object.keys(value)" v-for="key in Object.keys(value)"
:key="key" :key="key"
:title="key" :title="key"
class="pl-0 pr-0" class="p-0 overflow-hidden"
title-item-class="bg-light-primary" title-item-class="bg-light-primary"
style="padding: 0px;"
> >
<array-field-component <array-field-component
v-if="Array.isArray(value[key])" v-if="Array.isArray(value[key])"
@ -58,7 +58,10 @@
v-else-if="isObjectText(value[key])" v-else-if="isObjectText(value[key])"
:tablefield="toObject(value[key])" :tablefield="toObject(value[key])"
/> />
<span v-else>{{ value[key] }}</span> <div
v-else
style="max-width: 800px; overflow: auto;"
>{{ value[key] }}</div>
</b-tab> </b-tab>
</b-tabs> </b-tabs>
</b-td> </b-td>
@ -66,7 +69,10 @@
<VueMarkdown v-if="name==='description'"> <VueMarkdown v-if="name==='description'">
{{ addNewLine(value) }} {{ addNewLine(value) }}
</VueMarkdown> </VueMarkdown>
<span v-else>{{ value }}</span> <div
v-else
style="max-width: 800px; word-wrap:normal"
>{{ value }}</div>
</b-td> </b-td>
</b-tr> </b-tr>
</b-tbody> </b-tbody>