diff --git a/test-track/frontend/src/business/case/components/TestCaseList.vue b/test-track/frontend/src/business/case/components/TestCaseList.vue index baa9458cf9..f7978d0791 100644 --- a/test-track/frontend/src/business/case/components/TestCaseList.vue +++ b/test-track/frontend/src/business/case/components/TestCaseList.vue @@ -122,13 +122,24 @@ prop="tags" :field="item" :fields-width="fieldsWidth" - :label="$t('commons.tag')" - min-width="80"> + min-width="80px" + :show-overflow-tooltip="false" + :label="$t('commons.tag')"> @@ -553,6 +564,17 @@ export default { }); }); }, + getTagToolTips(tags) { + try { + let showTips = ''; + tags.forEach((item) => { + showTips += item + ','; + }); + return showTips.substr(0, showTips.length - 1); + } catch (e) { + return ''; + } + }, initConditionComponents() { this.condition.components = initTestCaseConditionComponents(this.condition, this.testCaseTemplate.customFields, this.trashEnable); }, @@ -1072,6 +1094,12 @@ export default { margin-left: 10px; } +.oneLine { + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; +} + :deep(.el-table) { overflow: auto; }