| 123456789 |
- /**
- * 由 Fantastic-admin 提供技术支持
- * Powered by Fantastic-admin
- * Gitee https://gitee.com/hooray/fantastic-admin
- * Github https://github.com/hooray/fantastic-admin
- */
-
- import{_ as U}from"./index-8d175d47.js";import{_ as q}from"./index.vue_vue_type_script_setup_true_name_SvgIcon_lang-9ad2d3e0.js";import{v as W,T as G}from"./runtime-dom.esm-bundler-e65f1c43.js";import{h as S}from"./hotkeys.esm-d20e5801.js";import J from"./iframe-2c35ef41.js";import Q from"./link-7eb47c36.js";import X from"./index-f9048353.js";import Y from"./index-5fa6b99c.js";import Z from"./index-c689e90d.js";import ee from"./index-83697e71.js";import te from"./index-afe6f00b.js";import oe from"./index-f801362b.js";import ie from"./index-81fdb711.js";import{u as F}from"./settings-be8974ad.js";import{h as ae,j as se,u as ne}from"./menu-2c9c5182.js";import{u as re}from"./vue-router-8a13d09b.js";import{w as B,j as O,a as R,o as le,a0 as me,a3 as T,k as z,l as ce,m as b,E as n,q as E,u as s,t as pe,z as A,y as N,x as D,A as de,aL as ue,B as fe}from"./runtime-core.esm-bundler-5fc1c360.js";import{u as H}from"./useMainPage-98075516.js";import{u as he}from"./useMenu-fa5caef3.js";import{_ as _e}from"./_plugin-vue_export-helper-c27b6911.js";import"./iconify-3d8b277a.js";import"./iframe-10768394.js";import"./pinia-7162f4ce.js";import"./index-ac700926.js";import"./index-5cddd228.js";import"./_MapCache-1b613190.js";import"./index-be5c670d.js";import"./index-cef9145c.js";import"./index.vue_vue_type_script_setup_true_name_I18nSelector_lang-982b3136.js";import"./vue-i18n.runtime.esm-bundler-b8e91312.js";import"./index-f5a92b18.js";import"./injectionKeys-03976c05.js";import"./index-ec920771.js";import"./notification-e460b8a8.js";import"./eventBus-d154090d.js";import"./main-730e306b.js";import"./sub-ddc3f816.js";import"./index-c228ae8f.js";import"./index-c6645692.js";import"./sortable.esm-be94e56d.js";import"./useTabbar-20966103.js";import"./index-cd68550b.js";import"./index-5cc4fa1c.js";function ye(){const p={},e={id:"wm_div_id",prefix:"mask_div_id",text:"测试水印",x:20,y:20,rows:0,cols:0,x_space:50,y_space:50,font:"微软雅黑",color:"black",fontsize:"18px",alpha:.15,width:100,height:100,angle:15,parent_width:0,parent_height:0,parent_node:null,monitor:!0};let t=!1;const h=new MutationObserver(u);function c(i){var j;Object.assign(e,i);const d=document.getElementById(e.id);(j=d==null?void 0:d.parentNode)==null||j.removeChild(d);const v=e.parent_node,a=v||document.body,w=Math.max(a.scrollWidth,a.clientWidth),g=Math.max(a.scrollHeight,a.clientHeight);let x=0,M=0;i.parent_width||i.parent_height?a&&(x=a.offsetTop||0,M=a.offsetLeft||0,e.x=e.x+M,e.y=e.y+x):a&&(x=a.offsetTop||0,M=a.offsetLeft||0);let m=document.getElementById(e.id),k=null;if(m)m.shadowRoot&&(k=m.shadowRoot);else{m=document.createElement("div"),m.id=e.id,m.setAttribute("style","pointer-events: none !important; display: block !important"),typeof m.attachShadow=="function"?k=m.attachShadow({mode:"open"}):k=m;const r=a.children,f=Math.floor(Math.random()*(r.length-1));r[f]?a.insertBefore(m,r[f]):a.appendChild(m)}e.cols=Math.floor((w-e.x)/(e.width+e.x_space));const P=Math.floor((w-e.x-e.width*e.cols)/e.cols);e.x_space=P&&e.x_space;let C;e.rows=Math.floor((g-e.y)/(e.height+e.y_space));const V=Math.floor((g-e.y-e.height*e.rows)/e.rows);e.y_space=V&&e.y_space;let L;v?(C=e.x+e.width*e.cols+e.x_space*(e.cols-1),L=e.y+e.height*e.rows+e.y_space*(e.rows-1)):(C=M+e.x+e.width*e.cols+e.x_space*(e.cols-1),L=x+e.y+e.height*e.rows+e.y_space*(e.rows-1));let $,I;for(let r=0;r<e.rows;r++){v?I=x+e.y+(e.y_space+e.height)*r:I=e.y+(g-L)/2+(e.y_space+e.height)*r;for(let f=0;f<e.cols;f++){v?$=M+e.x+(w-C)/2+(e.width+e.x_space)*f:$=e.x+(w-C)/2+(e.width+e.x_space)*f;const o=document.createElement("div"),K=document.createTextNode(e.text);o.appendChild(K),o.id=e.prefix+r+f,o.style.transform=`rotate(-${e.angle}deg)`,o.style.visibility="",o.style.position="absolute",o.style.left=`${$}px`,o.style.top=`${I}px`,o.style.overflow="hidden",o.style.zIndex="9999999",o.style.opacity=`${e.alpha}`,o.style.fontSize=e.fontsize,o.style.fontFamily=e.font,o.style.color=e.color,o.style.textAlign="center",o.style.width=`${e.width}px`,o.style.height=`${e.height}px`,o.style.display="block",o.style.userSelect="none",k==null||k.appendChild(o)}}if(e.monitor){const r={childList:!0,attributes:!0,subtree:!0,attributeFilter:["style"],attributeOldValue:!0};h.observe(a,r),h.observe(document.getElementById(e.id).shadowRoot,r)}}function _(){var d;const i=document.getElementById(e.id);(d=i==null?void 0:i.parentNode)==null||d.removeChild(i),h.disconnect()}function u(i){if(t){t=!1;return}(p&&i.length===1||i.length===1&&i[0].removedNodes.length>=1)&&c(p)}return{init:function(i){Object.assign(p,i),c(i)},remove:function(){t=!0,_()}}}function ge(){const p=F(),e=ae(),{init:t,remove:h}=ye();B(()=>p.settings.app.enableWatermark,u=>{u?c():_()},{immediate:!0}),B(()=>p.settings.app.colorScheme,()=>{p.settings.app.enableWatermark&&c()});function c(){t({text:`Fantastic-admin 水印测试 ${e.account}`,width:150,x:0,y:0,x_space:50,y_space:50,alpha:.1,color:p.settings.app.colorScheme==="light"?"black":"white"})}function _(){try{h()}catch{}}return{loadWatermark:c,removeWatermark:_}}const xe={class:"layout"},be={class:"wrapper"},ve={class:"main"},we=O({name:"Layout"}),ke=O({...we,setup(p){const e=re(),t=F(),h=se(),c=ne(),_=R(()=>!!e.meta.iframe),u=R(()=>!!e.meta.link);return ge(),B(()=>t.settings.menu.subMenuCollapse,l=>{t.mode==="mobile"&&(l?document.body.classList.remove("hidden"):document.body.classList.add("hidden"))}),B(()=>e.path,()=>{t.mode==="mobile"&&t.$patch(l=>{l.settings.menu.subMenuCollapse=!0})}),le(()=>{S("f5",l=>{t.settings.toolbar.enablePageReload&&(l.preventDefault(),H().reload())}),S("alt+`",l=>{t.settings.menu.enableHotkeys&&(l.preventDefault(),he().switchTo(c.actived+1<c.allMenus.length?c.actived+1:0))}),S("alt+up,alt+down",(l,y)=>{switch(l.preventDefault(),y.key){case"alt+up":H().maximize(!0);break;case"alt+down":H().maximize(!1);break}})}),me(()=>{S.unbind("f5"),S.unbind("alt+`"),S.unbind("alt+up,alt+down")}),(l,y)=>{const i=q,d=T("el-icon"),v=T("router-view"),a=U,w=T("el-backtop");return z(),ce("div",xe,[b("div",{id:"app-main",class:E({"main-page-maximize":s(t).mainPageMaximizeStatus})},[n(X),b("div",be,[b("div",{class:E(["sidebar-container",{show:s(t).mode==="mobile"&&!s(t).settings.menu.subMenuCollapse}])},[n(Y),n(Z)],2),b("div",{class:E(["sidebar-mask",{show:s(t).mode==="mobile"&&!s(t).settings.menu.subMenuCollapse}]),onClick:y[0]||(y[0]=g=>s(t).toggleSidebarCollapse())},null,2),b("div",{class:"main-container",style:pe({"padding-bottom":s(e).meta.paddingBottom})},[n(ee),b("div",ve,[A(b("div",{class:"exit-main-page-maximize",onClick:y[1]||(y[1]=g=>s(t).setMainPageMaximize())},[n(d,null,{default:N(()=>[n(i,{name:"i-ri:logout-box-line"})]),_:1})],512),[[W,s(t).mainPageMaximizeStatus]]),n(v,null,{default:N(({Component:g,route:x})=>[n(G,{name:"main",mode:"out-in",appear:""},{default:N(()=>[(z(),D(ue,{include:s(h).list},[A((z(),D(de(g),{key:x.fullPath})),[[W,!(s(_)||s(u))]])],1032,["include"]))]),_:2},1024)]),_:1}),A(n(J,null,null,512),[[W,s(_)&&!s(u)]]),s(u)?(z(),D(Q,{key:0})):fe("",!0)]),n(a)],4)]),n(w,{right:20,bottom:20,title:"回到顶部"})],2),n(te),n(oe),n(ie)])}}});const ut=_e(ke,[["__scopeId","data-v-4ab507c4"]]);export{ut as default};
|