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> </a-avatar>
</template> </template>
<template #datetime> <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> <span>{{ dayjs(data.updateTime).format('YYYY-MM-DD HH:mm:ss') }}</span>
</a-tooltip> </a-tooltip>
</template> </template>
<template #content> <template #content>
<div> <div>
<!-- eslint-disable-next-line vue/no-v-html --> <!-- eslint-disable-next-line vue/no-v-html -->
<span v-html="formatContent"></span> <span class="rich-text-comment-content" v-html="formatContent"></span>
</div> </div>
</template> </template>
<template #actions> <template #actions>

View File

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