fix(缺陷管理): 修复缺陷管理自定义字段内容展示预览
This commit is contained in:
parent
ab15e8f449
commit
74d43836d7
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<a-popover position="br" content-class="bug-count-popover">
|
<a-popover position="left" content-class="bug-count-popover">
|
||||||
<div class="one-line-text cursor-pointer px-0 text-[rgb(var(--primary-5))]">{{ props.bugCount ?? 0 }}</div>
|
<div class="one-line-text cursor-pointer px-0 text-[rgb(var(--primary-5))]">{{ props.bugCount ?? 0 }}</div>
|
||||||
<template #content>
|
<template #content>
|
||||||
<div class="w-[500px]">
|
<div class="w-[500px]">
|
||||||
|
@ -76,7 +76,7 @@
|
||||||
columns: columns.value,
|
columns: columns.value,
|
||||||
size: 'mini',
|
size: 'mini',
|
||||||
tableKey: TableKeyEnum.TEST_PLAN_DETAIL_CASE_TABLE_BUG_COUNT,
|
tableKey: TableKeyEnum.TEST_PLAN_DETAIL_CASE_TABLE_BUG_COUNT,
|
||||||
scroll: { x: '100%', y: 400 },
|
scroll: { x: '100%', y: 320 },
|
||||||
showSelectorAll: false,
|
showSelectorAll: false,
|
||||||
showPagination: false,
|
showPagination: false,
|
||||||
});
|
});
|
||||||
|
@ -108,12 +108,10 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="less">
|
<style lang="less">
|
||||||
.bug-count-popover {
|
.bug-count-popover {
|
||||||
width: 540px;
|
width: 540px;
|
||||||
height: 500px;
|
height: 400px;
|
||||||
@apply overflow-y-auto overflow-x-hidden;
|
|
||||||
.ms-scroll-bar();
|
|
||||||
.arco-popover-content {
|
.arco-popover-content {
|
||||||
@apply h-full;
|
@apply h-full;
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,12 +80,7 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #description="{ record }">
|
<template #description="{ record }">
|
||||||
<a-tooltip :disabled="!record.description" position="tl" class="ms-tooltip-white">
|
<BugNamePopover :name="record.title" :content="record.description" />
|
||||||
<div v-dompurify-html="record.description || '-'"></div>
|
|
||||||
<template #content>
|
|
||||||
<div v-dompurify-html="record.description || '-'"></div>
|
|
||||||
</template>
|
|
||||||
</a-tooltip>
|
|
||||||
</template>
|
</template>
|
||||||
</MsBaseTable>
|
</MsBaseTable>
|
||||||
</div>
|
</div>
|
||||||
|
@ -182,6 +177,7 @@
|
||||||
import MsTableMoreAction from '@/components/pure/ms-table-more-action/index.vue';
|
import MsTableMoreAction from '@/components/pure/ms-table-more-action/index.vue';
|
||||||
import { ActionsItem } from '@/components/pure/ms-table-more-action/types';
|
import { ActionsItem } from '@/components/pure/ms-table-more-action/types';
|
||||||
import BugDetailDrawer from './components/bug-detail-drawer.vue';
|
import BugDetailDrawer from './components/bug-detail-drawer.vue';
|
||||||
|
import BugNamePopover from '@/views/case-management/caseManagementFeature/components/tabContent/tabBug/bugNamePopover.vue';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
checkBugExist,
|
checkBugExist,
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
unmount-on-close
|
unmount-on-close
|
||||||
:show-continue="true"
|
:show-continue="true"
|
||||||
no-content-padding
|
no-content-padding
|
||||||
|
:save-continue-text="t('case.saveContinueText')"
|
||||||
@continue="handleDrawerConfirm(true)"
|
@continue="handleDrawerConfirm(true)"
|
||||||
@confirm="handleDrawerConfirm"
|
@confirm="handleDrawerConfirm"
|
||||||
@cancel="handleDrawerCancel"
|
@cancel="handleDrawerCancel"
|
||||||
|
|
Loading…
Reference in New Issue