|
@@ -84,7 +84,7 @@ export default defineComponent({
|
|
const videoRef = ref()
|
|
const videoRef = ref()
|
|
const videoItem = ref()
|
|
const videoItem = ref()
|
|
const videoID = 'video' + Date.now() + Math.floor(Math.random() * 100)
|
|
const videoID = 'video' + Date.now() + Math.floor(Math.random() * 100)
|
|
- const toggleHideControl = (isShow: false) => {
|
|
|
|
|
|
+ const toggleHideControl = (isShow: boolean) => {
|
|
data.showBar = isShow
|
|
data.showBar = isShow
|
|
}
|
|
}
|
|
// const togglePlay = (e: Event) => {
|
|
// const togglePlay = (e: Event) => {
|
|
@@ -271,6 +271,12 @@ export default defineComponent({
|
|
})
|
|
})
|
|
|
|
|
|
watch(
|
|
watch(
|
|
|
|
+ () => props.activeModel,
|
|
|
|
+ () => {
|
|
|
|
+ toggleHideControl(props.activeModel)
|
|
|
|
+ }
|
|
|
|
+ )
|
|
|
|
+ watch(
|
|
() => props.item,
|
|
() => props.item,
|
|
() => {
|
|
() => {
|
|
videoItem.value?.currentTime(0)
|
|
videoItem.value?.currentTime(0)
|