← Back
Editing: index-legacy116.js
System.register(["./utils-lib-legacy.js?v=VERSION_NUMBER","./base-lib-legacy.js?v=VERSION_NUMBER"],(function(e,t){"use strict";var n,l,o,r,c,u,i,s,a,f,p,m,d,y,v,g,x,S,h,b;return{setters:[function(e){n=e.n,l=e.L,o=e.e},function(e){r=e.c,c=e.r,u=e.w,i=e.p,s=e.q,a=e.v,f=e.y,p=e.B,m=e.C,d=e.z,y=e.H,v=e.I,g=e.x,x=e.e,S=e.A,h=e.n,b=e.D}],execute:function(){var w=["innerHTML"],H={key:1,class:"flex-1 w-full p-0 bg-none whitespace-pre-line text-i text-[#ececec]"},_=r({__name:"index",props:{content:{default:""},isHtml:{type:Boolean,default:!1},autoScroll:{type:Boolean,default:!0},fullScreen:{type:[Object,Boolean],default:!1}},setup:function(e,o){var r=o.expose,_=e,B=c(null),j=c(!1),k=function(){h((function(){var e=B.value,t=e.scrollHeight;e.scrollTop=t}))};u((function(){return _.content}),(function(){_.autoScroll&&k()}),{immediate:!0});var C=function(e){_.fullScreen&&(j.value=e)},M=function(){return _.content},L=function(){n({title:_.fullScreen.title,area:"100%",showFooter:!1,closeBtn:2,customClass:"full-screen-dialog",component:function(){return l((function(){return t.import("./full-screen-legacy.js?v=VERSION_NUMBER")}),void 0,t.meta.url)},compData:{isHtml:_.isHtml,autoScroll:_.autoScroll,onRefresh:_.fullScreen.onRefresh,getContent:M}})};return i((function(){_.autoScroll&&k()})),r({setScrollBottom:k}),function(e,t){var n=b;return s(),a("div",{class:"w-full h-full relative",onMouseover:t[0]||(t[0]=function(e){return C(!0)}),onMouseleave:t[1]||(t[1]=function(e){return C(!1)})},[f("pre",{ref_key:"preRef",ref:B,style:{height:"100%"},class:"w-full flex items-start py-[1rem] px-4 overflow-y-auto bg-[#333] log-box !rounded-[1.2rem]"},[t[2]||(t[2]=p("\t\t\t")),e.isHtml?(s(),a("code",{key:0,class:"flex-1 w-full p-0 bg-none whitespace-pre-line text-i text-[#ececec]",innerHTML:e.content||"暂无日志"},null,8,w)):m("",!0),t[3]||(t[3]=p("\n \t")),e.isHtml?m("",!0):(s(),a("code",H,d(e.content||"暂无日志"),1)),t[4]||(t[4]=p("\n\t\t"))],512),y(x(n,{type:"primary",class:"absolute",style:{top:"1rem",right:"1.5rem"},onClick:L},{default:S((function(){return t[5]||(t[5]=[p(" 全屏展示 ")])})),_:1},512),[[v,g(j)]])],32)}}});e("_",o(_,[["__scopeId","data-v-d97df8a6"]]))}}}));
Save File
Cancel