mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-03 12:39:12 +08:00
refactor(测试跟踪): 用例评审标签显示问题
--bug=1021788 --user=李玉号 【测试跟踪】用例评审-标签长度较长时-多个标签会被合成一个显示 https://www.tapd.cn/55049933/s/1325929
This commit is contained in:
parent
7b18e7ddf8
commit
cab2ca1314
@ -1,15 +1,37 @@
|
|||||||
<template>
|
<template>
|
||||||
<ms-table-column
|
<ms-table-column
|
||||||
prop="tags"
|
prop="tags"
|
||||||
|
sortable
|
||||||
:field="field"
|
:field="field"
|
||||||
:fields-width="fieldsWidth"
|
:fields-width="fieldsWidth"
|
||||||
sortable
|
:show-overflow-tooltip="false"
|
||||||
:label="$t('api_test.automation.tag')"
|
:label="$t('api_test.automation.tag')"
|
||||||
min-width="200px">
|
min-width="200px">
|
||||||
<template v-slot:default="scope">
|
<template v-slot:default="scope">
|
||||||
<ms-tag v-for="(name, index) in scope.row.tags" :key="index" type="success" effect="plain"
|
<span v-if="scope.row.tags.length === 1">
|
||||||
:content="name" style="margin-left: 0px; margin-right: 2px"/>
|
<ms-tag
|
||||||
<span/>
|
v-for="(name, index) in scope.row.tags"
|
||||||
|
:key="index"
|
||||||
|
type="success"
|
||||||
|
effect="plain"
|
||||||
|
:content="name"
|
||||||
|
style="margin-left: 0; margin-right: 2px"
|
||||||
|
/>
|
||||||
|
</span>
|
||||||
|
<el-tooltip class="item" effect="dark" placement="top" :enterable="false" v-else>
|
||||||
|
<div v-html="scope.row.tags.join(',')" slot="content"></div>
|
||||||
|
<div class="oneLine">
|
||||||
|
<ms-tag
|
||||||
|
v-for="(name, index) in scope.row.tags"
|
||||||
|
:key="index"
|
||||||
|
type="success"
|
||||||
|
effect="plain"
|
||||||
|
:content="name"
|
||||||
|
style="margin-left: 0; margin-right: 2px"
|
||||||
|
/>
|
||||||
|
<span/>
|
||||||
|
</div>
|
||||||
|
</el-tooltip>
|
||||||
</template>
|
</template>
|
||||||
</ms-table-column>
|
</ms-table-column>
|
||||||
</template>
|
</template>
|
||||||
@ -28,5 +50,9 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
.oneLine {
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
Reference in New Issue
Block a user