10个字符

This commit is contained in:
Euni4U 2025-03-28 21:50:25 +08:00
parent 04749318a9
commit 6004d64e1b

View File

@ -66,7 +66,19 @@
<el-table-column prop="type" label="检查项" width="180" />
<el-table-column prop="category" label="部位" width="180" />
<el-table-column prop="contentName" label="模板名称" />
<el-table-column prop="content" label="模板内容" />
<el-table-column label="模板内容">
<template #default="scope">
<el-tooltip
effect="dark"
:content="scope.row.content"
placement="top"
:show-after="200"
max-width="300"
>
<span>{{ scope.row.content ? (scope.row.content.length > 10 ? scope.row.content.substring(0, 10) + '...' : scope.row.content) : '' }}</span>
</el-tooltip>
</template>
</el-table-column>
</el-table>
</el-card>
<!-- 分页 -->