feat: 项目进展评论修复html样式
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user