forked from lucas/go-view-fetch
样式优化
This commit is contained in:
parent
60d4e7ee69
commit
777c68a1a9
@ -2,7 +2,6 @@ import { PublicConfigClass } from '@/packages/public'
|
|||||||
import { CreateComponentType } from '@/packages/index.d'
|
import { CreateComponentType } from '@/packages/index.d'
|
||||||
import { TopAlarmsConfig } from './index'
|
import { TopAlarmsConfig } from './index'
|
||||||
import dataJson from './data.json'
|
import dataJson from './data.json'
|
||||||
import { chartInitConfig } from '@/settings/designSetting'
|
|
||||||
export const option = {
|
export const option = {
|
||||||
dataset: dataJson.source,
|
dataset: dataJson.source,
|
||||||
title: '未处置报警数TOP5',
|
title: '未处置报警数TOP5',
|
||||||
@ -16,15 +15,14 @@ export const option = {
|
|||||||
dropdownOptions: ['当日', '当月', '当年'],
|
dropdownOptions: ['当日', '当月', '当年'],
|
||||||
dropdownDefault: '当日',
|
dropdownDefault: '当日',
|
||||||
iconColor: '#00E5FF',
|
iconColor: '#00E5FF',
|
||||||
letterSpacing:2,
|
letterSpacing: 1,
|
||||||
paddingX: 40,
|
paddingX: 40,
|
||||||
paddingY: -5,
|
paddingY: -5,
|
||||||
isShowButton: false
|
isShowButton: false
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||||
public key = TopAlarmsConfig.key
|
public key = TopAlarmsConfig.key
|
||||||
public chartConfig = TopAlarmsConfig
|
public chartConfig = TopAlarmsConfig
|
||||||
public option = option
|
public option = option
|
||||||
public attr = { ...chartInitConfig, x: 0, y: 0, w: 450, h: 300, zIndex: 1 }
|
|
||||||
}
|
}
|
||||||
|
@ -3,9 +3,6 @@
|
|||||||
<div class="go-top-alarms">
|
<div class="go-top-alarms">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<!-- <div class="title-prefix">
|
|
||||||
<svg-icon icon-class="rocket" class="title-icon" :style="{ color: option.iconColor }"></svg-icon>
|
|
||||||
</div> -->
|
|
||||||
<div class="title-text">
|
<div class="title-text">
|
||||||
<span :style="{
|
<span :style="{
|
||||||
color: option.titleColor,
|
color: option.titleColor,
|
||||||
@ -122,25 +119,11 @@ const handleSelect = (key: string) => {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
// .title-prefix {
|
|
||||||
// width: 40px;
|
|
||||||
// height: 35px;
|
|
||||||
// background-image: linear-gradient(to bottom, #2e69e0, #1e55a7);
|
|
||||||
// clip-path: polygon(0 0, 100% 0, 75% 100%, 0% 100%);
|
|
||||||
// display: flex;
|
|
||||||
// justify-content: center;
|
|
||||||
// align-items: center;
|
|
||||||
|
|
||||||
// .title-icon {
|
|
||||||
// font-size: 22px;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
.title-text {
|
.title-text {
|
||||||
height: 35px;
|
height: 35px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
// background-image: linear-gradient(to bottom, #17325f, #0e2142);
|
|
||||||
padding: 0 20px 0 20px;
|
padding: 0 20px 0 20px;
|
||||||
margin-left: 0px;
|
margin-left: 0px;
|
||||||
clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
|
clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
|
||||||
@ -190,10 +173,8 @@ const handleSelect = (key: string) => {
|
|||||||
'info value'
|
'info value'
|
||||||
'bar bar';
|
'bar bar';
|
||||||
align-items: center;
|
align-items: center;
|
||||||
// margin-right: 10px;
|
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
gap: 6px 15px;
|
gap: 6px 15px;
|
||||||
// background-color: antiquewhite;
|
|
||||||
|
|
||||||
.item-info {
|
.item-info {
|
||||||
grid-area: info;
|
grid-area: info;
|
||||||
@ -202,14 +183,12 @@ const handleSelect = (key: string) => {
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
// background-color: yellowgreen;
|
|
||||||
|
|
||||||
.rank {
|
.rank {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
// background-color: #fff;
|
|
||||||
|
|
||||||
.rank-icon {
|
.rank-icon {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@ -235,22 +214,18 @@ const handleSelect = (key: string) => {
|
|||||||
text-align: right;
|
text-align: right;
|
||||||
// font-size: 16px;
|
// font-size: 16px;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
// background-color: aquamarine;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.progress-bar-wrapper {
|
.progress-bar-wrapper {
|
||||||
grid-area: bar;
|
grid-area: bar;
|
||||||
width: calc(100% - 60px);
|
width: calc(100% - 60px);
|
||||||
/* Adjust width to not overlap value */
|
|
||||||
position: relative;
|
position: relative;
|
||||||
left: 20px;
|
left: 20px;
|
||||||
/* Align with name */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.progress-bar {
|
.progress-bar {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 5px;
|
height: 5px;
|
||||||
// background-color: rgba(42, 58, 91, 0.5);
|
|
||||||
border-radius: 1px;
|
border-radius: 1px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user