Commit 681fbe3f authored by xiaoman's avatar xiaoman

修改tooltip组件span的宽度

parent b96e7f87
<template>
<el-tooltip :placement="placement" trigger="click">
<template slot="content">
{{ text ? text : "" }}
<span class="tooltip-span">{{ text ? text : "" }}</span>
</template>
<div class="line2Hidden">
{{ text ? text : "" }}
......@@ -33,4 +33,9 @@ export default {
-webkit-line-clamp: 2;
overflow: hidden;
}
.tooltip-span{
display: inline-block;
width: 100%;
max-width: 300px;
}
</style>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment