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>
<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>
</template>
@ -16,12 +21,20 @@ defineOptions({
const props = defineProps({
src: {
type: String,
required: true,
default: "",
},
vid: {
type: String,
default: "",
},
playAuth: {
type: String,
default: "",
},
visible: {
type: Boolean,
default: false,
required: true,
default: false,
},
});
const emits = defineEmits(["update:visible"]);