fix(测试跟踪): 测试用例关联的需求过长时缩略显示

--bug=1012847 --user=李玉号 【测试跟踪】功能用例 关联需求  名称过长时 点击下拉 显示不全
https://www.tapd.cn/55049933/s/1166836
This commit is contained in:
shiziyuan9527 2022-05-27 16:28:15 +08:00 committed by jianxing
parent 6923bac805
commit 54809d4297
1 changed files with 16 additions and 3 deletions

View File

@ -13,9 +13,12 @@
<el-col :span="8">
<el-form-item :label="$t('test_track.related_requirements')" :label-width="labelWidth"
prop="demandId">
<el-cascader v-model="demandValue" :show-all-levels="false" :options="demandOptions" style="width: 100%"
clearable filterable :filter-method="filterDemand"/>
<el-cascader v-model="demandValue" :show-all-levels="false" :options="demandOptions"
clearable filterable :filter-method="filterDemand">
<template slot-scope="{ node, data }">
<span class="demand-span" :title="data.label">{{ data.label }}</span>
</template>
</el-cascader>
</el-form-item>
</el-col>
<el-col :span="8" :offset="2">
@ -404,4 +407,14 @@ export default {
font-size: xx-small;
border-radius: 50%;
}
.demand-span {
display: inline-block;
max-width: 400px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
word-break: break-all;
margin-right: 5px;
}
</style>