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