stream-cd2d3e05.js 1.8 KB

12
  1. import{d as p,Z as h,a1 as g,n as s,a0 as a,T as e,bX as y,aC as x,cn as C,cl as i,b4 as u,b9 as b,aQ as w,a5 as S,a6 as k}from"./index-c92c5b76.js";import{u as D}from"./index-cb78d1ce.js";import{u as T,C as v}from"./content-0f9ea9b5.js";import"./dayjs-919e6097.js";import"./canvas-b3f2b616.js";import"./gb28181-8f94768f.js";import"./index-e5379794.js";const O={class:"h-full"},B=p({name:"StreamScreen"}),F=p({...B,setup(L){const{t:o}=x(),n=D(),c=T(),d=t=>{t.length>1&&(t=t.sort((l,r)=>Date.parse(l.startTime)-Date.parse(r.startTime))),n.tableRef.reloadData(t)};async function f(){d(await y())}f();const _={maxHeight:"100%",rowConfig:{keyField:"path",useKey:!0},columnConfig:{useKey:!0},columns:[{field:"pluginName",get title(){return o("routes.screen.所属插件")},width:"100px"},{field:"path",get title(){return o("routes.screen.流路径")},showOverflow:"tooltip",minWidth:"150px"},{field:"type",get title(){return o("routes.screen.类型")},width:"80px",showOverflow:"tooltip"},{field:"operate",get title(){return o("routes.screen.操作")},width:"60px",align:"center",fixed:"right",slots:{default:"operate"}}],data:[]},m=t=>{c.setActiveInfo({path:t.path,type:t.type})};return(t,l)=>(h(),g("div",O,[s(e(u),{bordered:!1,class:"h-full"},{default:a(()=>[s(e(C),{gutter:16,class:"h-full"},{default:a(()=>[s(e(i),{span:6,class:"h-full"},{default:a(()=>[s(e(u),{bordered:!1,class:"h-full",bodyStyle:{padding:"10px"}},{default:a(()=>[s(e(b),{uid:e(n).uid,gridOptions:_},{operate:a(({row:r})=>[s(e(w),{size:"small",type:"link",onClick:()=>m(r)},{default:a(()=>[S(k(e(o)("routes.screen.播放")),1)]),_:2},1032,["onClick"])]),_:1},8,["uid"])]),_:1})]),_:1}),s(e(i),{span:18,class:"h-full"},{default:a(()=>[s(v,{type:"stream"})]),_:1})]),_:1})]),_:1})]))}});export{F as default};
  2. //# sourceMappingURL=stream-cd2d3e05.js.map