2023-07-26 18:08:28 +08:00
|
|
|
<template>
|
|
|
|
<div class="chart-title">
|
|
|
|
<span>{{ title }}</span>
|
2023-08-07 18:49:55 +08:00
|
|
|
<div class="right">
|
|
|
|
<slot name="right">
|
|
|
|
<img src="@/assets/images/abnormalAlarm/title_right.png" alt="">
|
|
|
|
</slot>
|
|
|
|
</div>
|
2023-08-10 17:32:30 +08:00
|
|
|
<div class="other">
|
|
|
|
<slot name="other"></slot>
|
|
|
|
</div>
|
2023-07-26 18:08:28 +08:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
title: {
|
|
|
|
type: String,
|
|
|
|
default: ""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
.chart-title{
|
|
|
|
height: 40px;
|
|
|
|
font-family: MicrogrammaD-MediExte;
|
|
|
|
font-size: 18px;
|
|
|
|
font-weight: bold;
|
|
|
|
line-height: 36px;
|
|
|
|
letter-spacing: 1px;
|
|
|
|
color: #0cebc9;
|
|
|
|
border-bottom: 4px solid rgba(12, 235, 201, 0.2);
|
|
|
|
border-top: 1px solid rgba(12, 235, 201, 0.2);
|
|
|
|
position: relative;
|
|
|
|
// display: flex;
|
|
|
|
// justify-content: space-between;
|
|
|
|
span{
|
|
|
|
display: inline-block;
|
|
|
|
padding: 0 15px;
|
|
|
|
background-color: rgba(12, 235, 201, 0.05);
|
|
|
|
}
|
2023-08-07 18:49:55 +08:00
|
|
|
.right{
|
2023-07-26 18:08:28 +08:00
|
|
|
position: absolute;
|
|
|
|
right: 15px;
|
|
|
|
top: 50%;
|
|
|
|
transform: translateY(-50%);
|
|
|
|
}
|
2023-08-10 17:32:30 +08:00
|
|
|
.other{
|
|
|
|
position: absolute;
|
|
|
|
right: 15px;
|
|
|
|
top: 50%;
|
|
|
|
transform: translateY(-50%);
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2023-07-26 18:08:28 +08:00
|
|
|
}
|
|
|
|
</style>
|