mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-04 04:59:48 +08:00
fix(测试跟踪): 缺陷导出自定义字段名称过长展示优化
--bug=1019765 --user=宋昌昌 【测试跟踪】缺陷管理-导出-自定义字段显示不全 https://www.tapd.cn/55049933/s/1301020
This commit is contained in:
parent
00ec9e9820
commit
d1e17b93c1
@ -568,4 +568,8 @@ export default {
|
||||
:deep(.el-table) {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
span.operate-button button {
|
||||
margin-left: 10px;
|
||||
}
|
||||
</style>
|
||||
|
@ -3,15 +3,16 @@
|
||||
<el-row v-for="rowIndex in fieldRowCount" :key="rowIndex">
|
||||
<span v-for="(item, index) in fields"
|
||||
:key="item.id">
|
||||
<el-col :span="6"
|
||||
v-if="Math.floor(index / colCountEachRow) === rowIndex - 1">
|
||||
<el-checkbox
|
||||
v-model="item.enable"
|
||||
:disabled="item.disabled"
|
||||
@change="change">
|
||||
{{ item.name }}
|
||||
</el-checkbox>
|
||||
</el-col>
|
||||
<el-tooltip :content="item.name" :disabled="item.name.length < 6">
|
||||
<el-col :span="6" v-if="Math.floor(index / colCountEachRow) === rowIndex - 1">
|
||||
<el-checkbox
|
||||
v-model="item.enable"
|
||||
:disabled="item.disabled"
|
||||
@change="change">
|
||||
{{ item.name }}
|
||||
</el-checkbox>
|
||||
</el-col>
|
||||
</el-tooltip>
|
||||
</span>
|
||||
</el-row>
|
||||
</div>
|
||||
@ -46,4 +47,13 @@ export default {
|
||||
.el-row {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
:deep(.el-checkbox .el-checkbox__label) {
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
max-width: 100px;
|
||||
position: relative;
|
||||
top: 5px;
|
||||
}
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user