font-family: 'CustomFont'; font-style: italic; letter-spacing: 0.5px; color: #eee; text-shadow: 1px 3px 10px #000000; font-size: 16px; 大标题css:font-family: 'CustomFont'; color:#eee
57 lines
1.3 KiB
TypeScript
57 lines
1.3 KiB
TypeScript
import { PublicConfigClass } from '@/packages/public'
|
|
import { CreateComponentType } from '@/packages/index.d'
|
|
import { AlarmListHazCConfig } from './index'
|
|
import dataJson from './data.json'
|
|
export enum FontWeightEnum {
|
|
NORMAL = '常规',
|
|
BOLD = '加粗',
|
|
}
|
|
|
|
export enum FontStyleEnum {
|
|
NORMAL = '常规',
|
|
ITALIC = '斜体',
|
|
}
|
|
|
|
export const FontWeightObject = {
|
|
[FontWeightEnum.NORMAL]: 'normal',
|
|
[FontWeightEnum.BOLD]: 'bold',
|
|
}
|
|
|
|
export const FontStyleObject = {
|
|
[FontStyleEnum.NORMAL]: 'normal',
|
|
[FontStyleEnum.ITALIC]: 'italic',
|
|
}
|
|
export const option = {
|
|
dataset: dataJson,
|
|
header: ['报警事件', '时间', '所属企业', '状态'],
|
|
headerTextColor: '#B4B4B4',
|
|
textColor: '#ffffff',
|
|
headerBackgroundColor: '#17325F',
|
|
itemBackgroundColor: '#242834',
|
|
statusColors: {
|
|
// '未解决': '#FF4D4F',
|
|
// '已解决': '#ffffff'
|
|
'重大风险': 'red'
|
|
},
|
|
headerHeight: 28,
|
|
itemHeight: 28,
|
|
fontSize: 12,
|
|
title: '近60分钟报警信息',
|
|
titleSize: 16,
|
|
titleColor: '#ffffff',
|
|
fontWeight: 'normal',
|
|
fontStyle: 'italic',
|
|
paddingX: 45,
|
|
paddingY: -25,
|
|
letterSpacing: 0.5,
|
|
isShowButton: false
|
|
}
|
|
|
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
|
public key = AlarmListHazCConfig.key
|
|
public chartConfig = AlarmListHazCConfig
|
|
public option = option
|
|
|
|
|
|
}
|