|
@@ -208,12 +208,9 @@ export default defineComponent({
|
|
class={[styles.controls, props.showModel ? '' : styles.hide]}
|
|
class={[styles.controls, props.showModel ? '' : styles.hide]}
|
|
onClick={(e: Event) => {
|
|
onClick={(e: Event) => {
|
|
e.stopPropagation();
|
|
e.stopPropagation();
|
|
- if(videoItem.value.paused()) return
|
|
|
|
- emit('close');
|
|
|
|
}}
|
|
}}
|
|
onTouchmove={(e: TouchEvent) => {
|
|
onTouchmove={(e: TouchEvent) => {
|
|
- if(videoItem.value.paused()) return
|
|
|
|
- emit('close');
|
|
|
|
|
|
+ e.stopPropagation();
|
|
}}>
|
|
}}>
|
|
<div class={styles.time}>
|
|
<div class={styles.time}>
|
|
<div>{getSecondRPM(data.currentTime)}</div>
|
|
<div>{getSecondRPM(data.currentTime)}</div>
|
|
@@ -239,7 +236,10 @@ export default defineComponent({
|
|
</div>
|
|
</div>
|
|
<div
|
|
<div
|
|
class={styles.actionBtn}
|
|
class={styles.actionBtn}
|
|
- onClick={() => (data.loop = !data.loop)}>
|
|
|
|
|
|
+ onClick={() => {
|
|
|
|
+ data.loop = !data.loop
|
|
|
|
+ videoItem.value.loop(data.loop)
|
|
|
|
+ }}>
|
|
<img src={data.loop ? iconLoopActive : iconLoop} />
|
|
<img src={data.loop ? iconLoopActive : iconLoop} />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|