forked from github/dataease
feat(视图): 支持标题备注
This commit is contained in:
parent
9e69155606
commit
35f99a2cbe
44
frontend/src/views/chart/view/TitleRemark.vue
Normal file
44
frontend/src/views/chart/view/TitleRemark.vue
Normal file
@ -0,0 +1,44 @@
|
||||
<template>
|
||||
<span>
|
||||
<el-popover
|
||||
placement="bottom"
|
||||
trigger="hover"
|
||||
width="300"
|
||||
popper-class="remark-pop"
|
||||
:visible-arrow="false"
|
||||
>
|
||||
<div class="remark-style" :style="{backgroundColor:remarkCfg.bgFill}" v-html="remarkCfg.content" />
|
||||
<i slot="reference" class="el-icon-info" style="cursor: pointer;color: gray;font-size: 12px;" />
|
||||
</el-popover>
|
||||
</span>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'TitleRemark',
|
||||
props: {
|
||||
remarkCfg: {
|
||||
type: Object,
|
||||
required: true
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.remark-style{
|
||||
min-height: 100px;
|
||||
max-height: 200px;
|
||||
overflow-y: auto;
|
||||
padding: 10px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.el-popover.remark-pop{
|
||||
padding: 0;
|
||||
border: none;
|
||||
margin-top: 8px!important;
|
||||
background: transparent;
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue
Block a user