食谱计划页面弹窗样式优化、按天提成列表增加一列

This commit is contained in:
xiezhijun
2021-01-20 18:41:14 +08:00
parent 8c4dea035e
commit 8d725bed34
8 changed files with 209 additions and 197 deletions

View File

@ -0,0 +1,48 @@
<template>
<div class="autohideinfo_wrapper">
<div>
{{ data.substring(0,maxLength) }}<span v-if="data.length > maxLength">...</span>
</div>
<div v-if="data.length > maxLength">
<!--<div>...</div>-->
<el-popover placement="top-start" width="300" height="400px" popper-class="autohideinfo_detial" trigger="hover">
<div>{{ data }}</div>
<el-button type="text" slot="reference">详情</el-button>
</el-popover>
</div>
</div>
</template>
<script>
export default {
name: "AutoHideMessage",
data() {
return {
};
},
props: {
data: {
type: String,
default: ''
},
maxLength: {
type: Number,
default: 10
}
},
computed: {
}
};
</script>
<style>
.autohideinfo_wrapper {
}
.autohideinfo_detial {
max-height: 340px;
//overflow: auto;
}
</style>