fix(用例管理): 修复用例管理关联缺陷预览格式不对问题

--bug=1037257 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001037257
This commit is contained in:
guoyuqi 2024-03-15 19:39:05 +08:00 committed by Craftsman
parent bca7225a92
commit 4bf2e46a5f
2 changed files with 4 additions and 8 deletions

View File

@ -30,12 +30,10 @@
<ms-base-table ref="tableRef" v-bind="propsRes" v-on="propsEvent">
<template #name="{ record }">
<span class="one-line-text max-w-[300px]"> {{ record.name }}</span>
<a-popover title="" position="right">
<a-popover title="" position="right" style="width: 480px">
<span class="ml-1 text-[rgb(var(--primary-5))]">{{ t('caseManagement.featureCase.preview') }}</span>
<template #content>
<div class="max-w-[600px] text-[14px] text-[var(--color-text-1)]">
{{ record.content }}
</div>
<div class="markdown-body" style="margin-left: 48px" v-html="record.content"> </div>
</template>
</a-popover>
</template>

View File

@ -58,12 +58,10 @@
<ms-base-table v-if="showType === 'link'" ref="tableRef" v-bind="linkPropsRes" v-on="linkTableEvent">
<template #name="{ record }">
<span class="one-line-text max-w-[300px]"> {{ record.name }}</span>
<a-popover title="" position="right">
<a-popover title="" position="right" style="width: 480px">
<span class="ml-1 text-[rgb(var(--primary-5))]">{{ t('caseManagement.featureCase.preview') }}</span>
<template #content>
<div class="max-w-[600px] text-[14px] text-[var(--color-text-1)]">
{{ record.content }}
</div>
<div class="markdown-body" style="margin-left: 48px" v-html="record.content"> </div>
</template>
</a-popover>
</template>