2 lines
1008 B
JavaScript
2 lines
1008 B
JavaScript
"use strict";const e=require("../../../../../common/vendor.js");require("../../index.js");const t={__name:"su-video",props:{moveX:{type:[Number],default:0},uid:{type:[Number,String],default:0},height:{type:Number,default:300},width:{type:Number,default:750},initialTime:{type:Number,default:1},src:{type:String,default:""},poster:{type:String,default:"https://img1.baidu.com/it/u=1601695551,235775011&fm=26&fmt=auto"},autoplay:{type:Boolean,default:!1}},emits:["videoTimeupdate"],setup(t,{expose:i,emit:o}){const r=e.getCurrentInstance(),a=e.reactive({enableProgressGesture:!1,showModal:!1}),u=t,s=o,d=e=>{s("videoTimeupdate",e)},p=e=>{},n=()=>{},m=()=>{},l=()=>{};return i({pausePlay:()=>{e.index.createVideoContext(`sVideo${u.index}`,r).pause()}}),(i,o)=>({a:`sVideo${t.uid}`,b:e.s({height:t.height+"rpx"}),c:t.src,d:a.enableProgressGesture,e:t.initialTime,f:e.o(p),g:e.o(d),h:e.o(n),i:e.o(m),j:e.o(l),k:t.poster,l:t.autoplay})}},i=e._export_sfc(t,[["__scopeId","data-v-7eece34d"]]);wx.createComponent(i);
|