mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-02 18:26:38 +08:00
1 line
1.6 KiB
JavaScript
1 line
1.6 KiB
JavaScript
(window["RCDLjsonFunction"]=window["RCDLjsonFunction"]||[]).push([[24],{82:function(i,t,e){"use strict";e.r(t);var n=e(21);var r=e.n(n);var a=e(25);var u=e.n(a);var s=e(568);var c=e.n(s);var o=e(33);var v=e.n(o);var l=e(20);var h=e.n(l);var k=e(154);var p=e.n(k);var b=e(22);var d=e.n(b);var R=e(40);var L=e.n(R);var C=e(103);RCDL.utilities.breakpoints={init:function init(){if(Object.keys(RCDL.utilities.breakpoints.values).length===0){var i=window.RCDL.config.breakpoints;RCDL.utilities.breakpoints.values={height:{current:null,previous:null},width:{current:null,previous:null}};Object.keys(i).forEach((function(t){RCDL.utilities.breakpoints.matrix[i[t]]=t}));RCDL.utilities.breakpoints.check()}if(RCDL.utilities.breakpoints.check.active!==true){RCDL.utilities.breakpoints.check.active=true;window.addEventListener("rc_breakpoint_change",RCDL.utilities.breakpoints.check)}},check:function check(){var i=RCDL.utilities.breakpoints.matrix;var t=Math.max(document.documentElement.clientWidth,window.innerWidth||0);var e=Math.max(document.documentElement.clientHeight,window.innerHeight||0);Object.keys(i).reverse().forEach((function(n,r){function inRange(i,t,e){return(i-t)*(i-e)<=0}if(inRange(parseInt(n),t,Object.keys(i)[r-1])){var a=RCDL.utilities.breakpoints.values.width.current!==i[n];RCDL.utilities.breakpoints.values={width:{previous:RCDL.utilities.breakpoints.values.width.current,current:i[n]},height:{previous:RCDL.utilities.breakpoints.values.height.current,current:e}};if(a){Object(C["default"])("rc_breakpoint_change")}}}))},matrix:{},values:{},active:false};t["default"]={init:RCDL.utilities.breakpoints.init}}}]); |