lcny-vue3-antd-admin/dist/assets/VideoFlv.27db358d.js

2 lines
909 B
JavaScript

import{a as u,r as d,f as r,J as f,aA as p,o as s,h as _,j as m,l as v,i as y,bl as V}from"./index.e8334860.js";import{_ as S}from"./index.7d14de81.js";const b=u({name:"VideoFlv",components:{LiveVideo:S},props:{url:{type:String,default:null},screen:{type:Boolean,default:!0},name:{type:String,default:""}},setup(e,{emit:n}){const t=d(e.url),a=r(()=>e.name),o=r(()=>e.screen);function l(){o.value?n("onScreen",{url:e.url,name:e.name}):n("onClick")}return{pName:a,onScreen:l,isScreen:o,pUrl:t}}}),g={class:"w-full h-full relative"};function k(e,n,t,a,o,l){const c=p("LiveVideo");return s(),_("div",g,[e.url?(s(),m(c,{key:0,class:"bg-gray-700 bg-opacity-30",url:e.url},null,8,["url"])):v("",!0),y("div",{class:"absolute left-0 w-full top-0 h-full",onClick:n[0]||(n[0]=V((...i)=>e.onScreen&&e.onScreen(...i),["prevent","stop"]))})])}var $=f(b,[["render",k],["__scopeId","data-v-8ba73b54"]]);export{$ as default};