Commit 3d6c98b7 by 前端

ui改版

1 parent 05bf7292
...@@ -64,3 +64,29 @@ html { ...@@ -64,3 +64,29 @@ html {
.line-20{ .line-20{
line-height: 20px; line-height: 20px;
} }
.el-tooltip__popper {
position: absolute;
background: #fff;
min-width: 150px;
border-radius: 4px;
border: 1px solid #ebeef5!important;
padding: 12px;
z-index: 2000;
color: #606266;
line-height: 1.4;
text-align: justify;
font-size: 14px;
// box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%);
word-break: break-all;
}
.base-popper,
.el-tooltip__popper {
max-width: 380px;
}
.el-tooltip__popper[x-placement^="top"] .popper__arrow {
border-top-color: #ffffff !important;
}
.el-tooltip__popper[x-placement^="top"] .popper__arrow:after {
border-top-color: #ffffff !important;
}
\ No newline at end of file \ No newline at end of file
...@@ -41,8 +41,11 @@ ...@@ -41,8 +41,11 @@
</div> </div>
</template> </template>
<template slot="excelName" slot-scope="scope"> <template slot="excelName" slot-scope="scope">
<div> <div class="flex">
{{ scope.scope.excelName }} <el-tooltip v-if="scope.scope.excelName.length >= Math.ceil((320 - 36) / 14)" effect="light" placement="top" popper-class="base-popper" :content="scope.scope.excelName">
<div class="excelName">{{ scope.scope.excelName }}</div>
</el-tooltip>
<div v-else>{{ scope.scope.excelName }}</div>
<span class="color58 font-14" style="cursor: pointer" @click="downloadFile(scope.scope.excelUrl, scope.scope.excelName)">下载</span> <span class="color58 font-14" style="cursor: pointer" @click="downloadFile(scope.scope.excelUrl, scope.scope.excelName)">下载</span>
</div> </div>
</template> </template>
...@@ -950,6 +953,14 @@ export default { ...@@ -950,6 +953,14 @@ export default {
} }
} }
} }
.excelName {
max-width: 240px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: inline-block;
}
} }
} }
.marked { .marked {
...@@ -995,4 +1006,5 @@ export default { ...@@ -995,4 +1006,5 @@ export default {
visibility: hidden; visibility: hidden;
} }
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!