This commit is contained in:
qsh
2024-06-25 19:31:55 +08:00
parent 93d7f2b43d
commit f63104591b
5 changed files with 273 additions and 24 deletions

View File

@@ -87,7 +87,22 @@
:prop="item.field"
:label="item.label"
min-width="120px"
/>
>
<template #default="{ row }">
<el-popover
placement="top"
width="500px"
trigger="click"
v-if="item.form?.component == 'Editor' && row[item.field]"
>
<template #reference>
<el-button type="primary" style="padding: 0" text>点击查看</el-button>
</template>
<div v-dompurify-html="row.remark"></div>
</el-popover>
<span v-else>{{ row[item.field] }}</span>
</template>
</el-table-column>
<el-table-column label="操作" width="240px" fixed="right">
<template #default="scope">
<el-button