style(接口测试): 修改接口定义详情中的样式

--bug=1037369 --user=宋天阳 https://www.tapd.cn/55049933/s/1483085
This commit is contained in:
Jianguo-Genius 2024-03-28 16:51:07 +08:00 committed by Craftsman
parent 967f2e7c2d
commit c06287bbbc
1 changed files with 7 additions and 2 deletions

View File

@ -20,14 +20,19 @@
class="flex w-[calc(100%/3)] items-center gap-[8px]"
:style="{ width: item.width }"
>
<div class="text-[var(--color-text-4)]">{{ t(item.locale) }}</div>
<div class="whitespace-nowrap text-[var(--color-text-4)]">
{{ t(item.locale) }}
</div>
<div v-if="Array.isArray(item.value)">
<MsTagGroup v-if="item.value.length > 0" :tag-list="item.value" size="small" is-string-tag />
<div v-else>-</div>
</div>
<slot v-else :name="item.key" :value="item.value">
<a-tooltip :content="item.value" :disabled="isEmpty(item.value)">
<div class="text-[var(--color-text-1)]">{{ item.value || '-' }}</div>
<div
class="text-ov overflow-hidden overflow-ellipsis whitespace-nowrap pr-[24px] text-[var(--color-text-1)]"
>{{ item.value || '-' }}</div
>
</a-tooltip>
</slot>
</div>