Commit 52502543 by zhangxw

列表长度超出 显示省略号

1 parent dd6975e4
...@@ -130,7 +130,7 @@ export default { ...@@ -130,7 +130,7 @@ export default {
let textResult = [] let textResult = []
let label = ['措施', '备注'] let label = ['措施', '备注']
filedList.map((val, index) => { filedList.map((val, index) => {
textResult.push(hasLabel ? label[index] + ':' + (row[val] || '--') : (row[val] || '--')) textResult.push(hasLabel ? `<span style="overflow: hidden;text-overflow: ellipsis; white-space: nowrap;margin: 5px 0;">${label[index] + ':' + (row[val] || '--')}</span>` : `${(row[val] || '--')}`)
}) })
return textResult.join(` ${type} `) return textResult.join(` ${type} `)
}, },
...@@ -206,4 +206,7 @@ export default { ...@@ -206,4 +206,7 @@ export default {
} }
} }
} }
.el-tooltip__popper{
width: 30%;
}
</style> </style>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!