← Back
Editing: full-screen-legacy.js
!function(){function t(t){return function(t){if(Array.isArray(t))return n(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(t){if("string"==typeof t)return n(t,r);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?n(t,r):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=Array(n);r<n;r++)e[r]=t[r];return e}function r(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,n,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.toStringTag||"@@toStringTag";function c(r,o,i,u){var c=o&&o.prototype instanceof l?o:l,f=Object.create(c.prototype);return e(f,"_invoke",function(r,e,o){var i,u,c,l=0,f=o||[],s=!1,p={p:0,n:0,v:t,a:y,f:y.bind(t,4),d:function(n,r){return i=n,u=0,c=t,p.n=r,a}};function y(r,e){for(u=r,c=e,n=0;!s&&l&&!o&&n<f.length;n++){var o,i=f[n],y=p.p,v=i[2];r>3?(o=v===e)&&(c=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=t):i[0]<=y&&((o=r<2&&y<i[1])?(u=0,p.v=e,p.n=i[1]):y<v&&(o=r<3||i[0]>e||e>v)&&(i[4]=r,i[5]=e,p.n=v,u=0))}if(o||r>1)return a;throw s=!0,e}return function(o,f,v){if(l>1)throw TypeError("Generator is already running");for(s&&1===f&&y(f,v),u=f,c=v;(n=u<2?t:c)||!s;){i||(u?u<3?(u>1&&(p.n=-1),y(u,c)):p.n=c:p.v=c);try{if(l=2,i){if(u||(o="next"),n=i[o]){if(!(n=n.call(i,c)))throw TypeError("iterator result is not an object");if(!n.done)return n;c=n.value,u<2&&(u=0)}else 1===u&&(n=i.return)&&n.call(i),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=t}else if((n=(s=p.n<0)?c:r.call(e,p))!==a)break}catch(n){i=t,u=1,c=n}finally{l=1}}return{value:n,done:s}}}(r,i,u),!0),f}var a={};function l(){}function f(){}function s(){}n=Object.getPrototypeOf;var p=[][i]?n(n([][i]())):(e(n={},i,function(){return this}),n),y=s.prototype=l.prototype=Object.create(p);function v(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,e(t,u,"GeneratorFunction")),t.prototype=Object.create(y),t}return f.prototype=s,e(y,"constructor",s),e(s,"constructor",f),f.displayName="GeneratorFunction",e(s,u,"GeneratorFunction"),e(y),e(y,u,"Generator"),e(y,i,function(){return this}),e(y,"toString",function(){return"[object Generator]"}),(r=function(){return{w:c,m:v}})()}function e(t,n,r,o){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}e=function(t,n,r,o){function u(n,r){e(t,n,function(t){return this._invoke(n,r,t)})}n?i?i(t,n,{value:r,enumerable:!o,configurable:!o,writable:!o}):t[n]=r:(u("next",0),u("throw",1),u("return",2))},e(t,n,r,o)}function o(t,n,r,e,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void r(t)}c.done?n(a):Promise.resolve(a).then(e,o)}System.register(["./base-lib-legacy.js?v=1765440387","./utils-lib-legacy.js?v=1765440387","./index-legacy106.js?v=1765440387","./__commonjsHelpers__-legacy.js?v=1765440387"],function(n,e){"use strict";var i,u,c,a,l,f,s,p,y,v,m,h,d,b;return{setters:[function(t){i=t.c,u=t.r,c=t.p,a=t.q,l=t.v,f=t.y,s=t.e,p=t.A,y=t.B,v=t.K,m=t.x,h=t.D},function(t){d=t.M},function(t){b=t._},null],execute:function(){var e={class:"mb-1rem"},g={class:"flex-1"};n("default",i({__name:"full-screen",props:{compData:{default:function(){return{isHtml:!1,autoScroll:!0,onRefresh:function(){return{}},getContent:function(){return""}}}}},setup:function(n){var i=n,w=u(""),j=u(window.innerHeight-44),_=u(window.innerHeight-124);window.onresize=function(){j.value=window.innerHeight-44,_.value=window.innerHeight-124};var S=function(){var t,n=(t=r().m(function t(){return r().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,i.compData.onRefresh();case 1:w.value=i.compData.getContent(),d.success("刷新成功");case 2:return t.a(2)}},t)}),function(){var n=this,r=arguments;return new Promise(function(e,i){var u=t.apply(n,r);function c(t){o(u,e,i,c,a,"next",t)}function a(t){o(u,e,i,c,a,"throw",t)}c(void 0)})});return function(){return n.apply(this,arguments)}}();return c(function(){w.value=i.compData.getContent()}),function(r,o){var i=h;return a(),l("div",{class:"w-full flex flex-col p-2rem",style:v({height:m(j)+"px !important"})},[f("div",e,[s(i,{onClick:S},{default:p(function(){return t(o[0]||(o[0]=[y("刷新日志",-1)]))}),_:1})]),f("div",g,[s(b,{style:v({height:m(_)+"px"}),content:m(w),"is-html":n.compData.isHtml,"auto-scroll":n.compData.autoScroll},null,8,["style","content","is-html","auto-scroll"])])],4)}}}))}}})}();
Save File
Cancel