forked from integrated_whb/integrated_whb_vue
init
parent
bab6fe50b8
commit
8ca5d0b105
|
@ -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"]);
|
||||||
|
|
Loading…
Reference in New Issue