pull/1/head
z 2024-01-10 10:04:26 +08:00
parent bab6fe50b8
commit 8ca5d0b105
1 changed files with 16 additions and 3 deletions

View File

@ -1,6 +1,11 @@
<template> <template>
<el-dialog title="视频" v-model="visible"> <el-dialog title="视频" v-model="visible">
<ali-player :source="fnSrc(src)" ref="playerRef" /> <ali-player
:source="fnSrc(src)"
:vid="vid"
:play-auth="playAuth"
ref="playerRef"
/>
</el-dialog> </el-dialog>
</template> </template>
@ -16,12 +21,20 @@ defineOptions({
const props = defineProps({ const props = defineProps({
src: { src: {
type: String, type: String,
required: true, default: "",
},
vid: {
type: String,
default: "",
},
playAuth: {
type: String,
default: "",
}, },
visible: { visible: {
type: Boolean, type: Boolean,
default: false,
required: true, required: true,
default: false,
}, },
}); });
const emits = defineEmits(["update:visible"]); const emits = defineEmits(["update:visible"]);