mirror of
https://gitee.com/dromara/go-view.git
synced 2025-06-03 04:49:15 +08:00
27 lines
664 B
TypeScript
27 lines
664 B
TypeScript
import { PublicConfigClass } from '@/packages/public'
|
|
import { CreateComponentType } from '@/packages/index.d'
|
|
import { VideoConfig } from './index'
|
|
import cloneDeep from 'lodash/cloneDeep'
|
|
import video from '@/assets/videos/earth.mp4'
|
|
|
|
export const option = {
|
|
// 视频路径
|
|
dataset: video,
|
|
// 循环播放
|
|
loop: true,
|
|
// 自动播放
|
|
autoplay: true,
|
|
// 静音
|
|
muted: true,
|
|
// 适应方式
|
|
fit: 'contain',
|
|
// 圆角
|
|
borderRadius: 10
|
|
}
|
|
|
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
|
public key = VideoConfig.key
|
|
public chartConfig = cloneDeep(VideoConfig)
|
|
public option = cloneDeep(option)
|
|
}
|