Commit 3456206f by Tianqing Liu

feat: 优化组件属性

1 parent 6b7f5c2c
...@@ -9,18 +9,10 @@ import { getWatermarkCanvasImg } from './utils'; ...@@ -9,18 +9,10 @@ import { getWatermarkCanvasImg } from './utils';
export default { export default {
name: 'VionPlayer', name: 'VionPlayer',
props: { props: {
type: {
type: String,
default: 'live', // playback
},
playUrl: { playUrl: {
type: String, type: String,
default: '', // 若配置,则播放器加载后,自动播放 default: '', // 若配置,则播放器加载后,自动播放
}, },
datetimeRange: {
type: Array,
default: null,
},
watermarkText: { watermarkText: {
type: String, type: String,
default: '', default: '',
...@@ -208,6 +200,8 @@ export default { ...@@ -208,6 +200,8 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.vion-player { .vion-player {
height: 100%;
widows: 100%;
background-color: rgba(13, 14, 27, 0.7); background-color: rgba(13, 14, 27, 0.7);
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!