颜色标识固定在上面,不要跟随滚动条滚动
This commit is contained in:
parent
a4e284711c
commit
aec35ab1e2
|
@ -74,6 +74,6 @@ export default {
|
||||||
</script>
|
</script>
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.custom-chart {
|
.custom-chart {
|
||||||
height: 100% !important;
|
// height: 100% !important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -1173,8 +1173,7 @@ export default {
|
||||||
right: 15px;
|
right: 15px;
|
||||||
width: calc(100% - 270px);
|
width: calc(100% - 270px);
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow: auto;
|
padding: 0 0 10px 15px;
|
||||||
padding: 0 15px 10px;
|
|
||||||
border: 1px solid @borderColor;
|
border: 1px solid @borderColor;
|
||||||
transition: width 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
|
transition: width 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div style="width: 100%;height: 100%;overflow: auto;padding-top: 76px;">
|
||||||
<!-- 图例 -->
|
<!-- 图例 -->
|
||||||
<div class="legend">
|
<div class="legend">
|
||||||
<div
|
<div
|
||||||
|
@ -299,9 +299,16 @@ export default {
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.legend {
|
.legend {
|
||||||
margin: 32px 0;
|
width: 100%;
|
||||||
|
padding: 25px 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
background: #022024;
|
||||||
|
z-index: 11;
|
||||||
|
|
||||||
&-item {
|
&-item {
|
||||||
color: #ade6ee;
|
color: #ade6ee;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user