import { PublicConfigClass } from '@/packages/public' import { CreateComponentType } from '@/packages/index.d' import { videoCheckConfig } from './index' import cloneDeep from 'lodash/cloneDeep' import dataJson from './cameratree.json' export const option = { // 摄像头id dataset: { defaultValue: '中国中车集团有限公司', list: dataJson.value }, showTree: true, // 循环播放 loop: true, // 静音 muted: true, // 适应方式 fit: 'contain', // 圆角 borderRadius: 10, dataSource: [], selectedDataSource: '', videoTitle: '', videoIndex: '1', /** 外层css缩放比例 */ sca: 1, showBtn: true, isOldStyle: true, titleText: '实时报警', titleOption: { color: '#ffffff', fontSize: '17px', fontStyle: 'normal', fontWeight: 'normal', fontFamily: 'CustomFont', }, headerOption: { paddingLeft: 0, paddingRight: 0, paddingTop: 0, paddingBottom: 0 } } export default class Config extends PublicConfigClass implements CreateComponentType { public key = videoCheckConfig.key public chartConfig = cloneDeep(videoCheckConfig) public option = cloneDeep(option) }