feat: 项目进展评论修复html样式

This commit is contained in:
caiyuchao
2025-09-11 17:16:56 +08:00
parent 8c5c7dde57
commit 30ef28adf8
2 changed files with 3 additions and 2 deletions

View File

@@ -83,14 +83,14 @@ const formatContent = computed(() => {
</a-avatar>
</template>
<template #datetime>
<a-tooltip :title="dayjs(data.updateTime)">
<a-tooltip :title="dayjs(data.updateTime).fromNow()">
<span>{{ dayjs(data.updateTime).format('YYYY-MM-DD HH:mm:ss') }}</span>
</a-tooltip>
</template>
<template #content>
<div>
<!-- eslint-disable-next-line vue/no-v-html -->
<span v-html="formatContent"></span>
<span class="rich-text-comment-content" v-html="formatContent"></span>
</div>
</template>
<template #actions>

View File

@@ -150,6 +150,7 @@ export function useProjectGridColumns(): VxeTableGridOptions<ProgressApi.Progres
field: 'content',
title: '进展记录',
type: 'html',
className: 'rich-text-comment-content-table',
showOverflow: false,
align: 'left',
// headerAlign: 'center',