import{c as t,r as e,q as s,v as a,x as o,z as l,e as n,B as i,C as r,L as c,y as m,G as p}from"./base-lib.js?v=1761009159";import{M as u}from"./utils-lib.js?v=1761009159";import{_ as f}from"./index119.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";const d={class:"mb-1rem"},h={class:"flex-1"},w=t({__name:"full-screen",props:{compData:{default:()=>({isHtml:!1,autoScroll:!0,onRefresh:()=>({}),getContent:()=>""})}},setup(t){const w=t,_=e(""),g=e(window.innerHeight-44),v=e(window.innerHeight-124);window.onresize=()=>{g.value=window.innerHeight-44,v.value=window.innerHeight-124};const x=async()=>{await w.compData.onRefresh(),_.value=w.compData.getContent(),u.success("刷新成功")};return s(()=>{_.value=w.compData.getContent()}),(t,e)=>{const s=p;return a(),o("div",{class:"w-full flex flex-col p-2rem",style:c({height:m(g)+"px !important"})},[l("div",d,[n(s,{onClick:x},{default:i(()=>e[0]||(e[0]=[r("刷新日志",-1)])),_:1,__:[0]})]),l("div",h,[n(f,{style:c({height:m(v)+"px"}),content:m(_),"is-html":t.compData.isHtml,"auto-scroll":t.compData.autoScroll},null,8,["style","content","is-html","auto-scroll"])])],4)}}});export{w as default};
