Commit 3d6c98b7 by 前端

ui改版

1 parent 05bf7292
......@@ -63,4 +63,30 @@ html {
}
.line-20{
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
......@@ -41,8 +41,11 @@
</div>
</template>
<template slot="excelName" slot-scope="scope">
<div>
{{ scope.scope.excelName }}
<div class="flex">
<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>
</div>
</template>
......@@ -950,6 +953,14 @@ export default {
}
}
}
.excelName {
max-width: 240px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: inline-block;
}
}
}
.marked {
......@@ -995,4 +1006,5 @@ export default {
visibility: hidden;
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!