go-viee-fetch-Demo/src/packages/components/Charts/ConfinedSpace/yushiVideo/config.ts

50 lines
1.1 KiB
TypeScript
Raw Normal View History

2025-08-28 10:36:02 +08:00
import { PublicConfigClass } from '@/packages/public'
import { CreateComponentType } from '@/packages/index.d'
import { yushiVideoConfig } 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,
2025-08-28 11:46:21 +08:00
isOldStyle: true,
titleText: '实时报警',
titleOption: {
color: '#ffffff',
fontSize: '17px',
fontStyle: 'normal',
fontWeight: 'normal',
fontFamily: 'CustomFont',
},
headerOption: {
paddingLeft: 0,
paddingRight: 0,
paddingTop: 0,
paddingBottom: 0
}
2025-08-28 10:36:02 +08:00
}
export default class Config extends PublicConfigClass implements CreateComponentType {
public key = yushiVideoConfig.key
public chartConfig = cloneDeep(yushiVideoConfig)
public option = cloneDeep(option)
}