perf(table): 更新标签文本样式

This commit is contained in:
rd
2025-09-18 14:42:36 +08:00
parent 5d29789f65
commit c81dc8dd28

View File

@ -54,9 +54,9 @@
<div class="flex flex-wrap gap-4px"> <div class="flex flex-wrap gap-4px">
<Tag v-for="tag in record.tags" :key="tag.id" class="mr-0 rounded-4px bg-#F2F3F5 px-8px"> <Tag v-for="tag in record.tags" :key="tag.id" class="mr-0 rounded-4px bg-#F2F3F5 px-8px">
<Tooltip v-if="tag.name.length > 5" :title="tag.name"> <Tooltip v-if="tag.name.length > 5" :title="tag.name">
<span class="cts !color-#55585F !lh-20px"> {{ `${tag.name.slice(0, 5)}...` }} </span> <span class="cts !color-#55585F !lh-20px !text-12px"> {{ `${tag.name.slice(0, 5)}...` }} </span>
</Tooltip> </Tooltip>
<span v-else class="cts !color-#55585F !lh-20px"> {{ tag.name }} </span> <span v-else class="cts !color-#55585F !lh-20px !text-12px"> {{ tag.name }} </span>
</Tag> </Tag>
</div> </div>
</template> </template>