Fix type errors in registry/lib/components/touch/player-gestures/GesturePreview.vue

This commit is contained in:
timongh 2023-02-09 19:55:43 +08:00
parent 4789110236
commit 38d25fc3fa

View File

@ -97,7 +97,7 @@ export default defineComponent({
}
return {
opened: false,
video: dq('video'),
video: dq('video') as HTMLVideoElement,
videoshot: new Videoshot(),
videoshotStyle: {},
store: defaultStore,
@ -184,7 +184,7 @@ export default defineComponent({
}
},
async apply({ brightness, volume, progress }: GesturePreviewParams) {
const video = this.video as HTMLVideoElement
const { video } = this
if (!video) {
return
}