fix(测试跟踪): 测试用例关联的需求过长时缩略显示
--bug=1012847 --user=李玉号 【测试跟踪】功能用例 关联需求 名称过长时 点击下拉 显示不全 https://www.tapd.cn/55049933/s/1166836
This commit is contained in:
parent
6923bac805
commit
54809d4297
|
@ -13,9 +13,12 @@
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item :label="$t('test_track.related_requirements')" :label-width="labelWidth"
|
<el-form-item :label="$t('test_track.related_requirements')" :label-width="labelWidth"
|
||||||
prop="demandId">
|
prop="demandId">
|
||||||
|
<el-cascader v-model="demandValue" :show-all-levels="false" :options="demandOptions"
|
||||||
<el-cascader v-model="demandValue" :show-all-levels="false" :options="demandOptions" style="width: 100%"
|
clearable filterable :filter-method="filterDemand">
|
||||||
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-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8" :offset="2">
|
<el-col :span="8" :offset="2">
|
||||||
|
@ -404,4 +407,14 @@ export default {
|
||||||
font-size: xx-small;
|
font-size: xx-small;
|
||||||
border-radius: 50%;
|
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>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue