点击回首页
我的浏览记录 | | 帮助?
当前位置:
首页>> 行业软件>> 在线考试系统>> 源文件浏览
[免费版 Free] WebForm,下载次数:261 次 | 关键字: 考试 办公 高校 竞赛 企事业单位

源码截图

源码目录树

;
当前路径:public/static/control/t__plugin-layout__Layout.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[44],{"ArA+":function(e,t,a){"use strict";a("9kvl")},PeeD:function(e,t,a){"use strict";a.r(t);var n,r,l=a("k1fw"),o=a("tJVT"),i=a("q1tI"),c=a.n(i),u=a("9kvl"),s=a("LtsZ"),m=a("0Owb"),d=a("PpiC"),f=a("55Ip"),p=a("Hx5s"),v=(a("rZaO"),a("fWQN")),E=a("mtLc"),g=a("yKVA"),h=a("879j"),y=(a("J+/v"),a("MoRW")),b=(a("tU7J"),a("wFql"),a("ArA+")),C={"layout.global.error.title":"\u51fa\u9519\u4e86\uff0c\u53ef\u70b9\u51fb\u53f3\u4e0b\u89d2\u8fdb\u884c\u53cd\u9988","layout.global.error.stack":"\u9519\u8bef\u5806\u6808"},O={"layout.global.error.title":"Something wrong, click on the bottom right corner to give us feedback","layout.global.error.stack":"Error stack"};function j(e){var t=e.id,a=e.value,n=void 0===a?{}:a,r="zh-CN"===Object(b["getLocale"])()?C:O;if(!b["getIntl"])return r[t]||t;var l=Object(b["getIntl"])();return l.formatMessage({id:t},n)||r[t]||t}(function(e){e["zh-CN"]="\u4e2d\u6587",e["en-US"]="English"})(n||(n={})),function(e){e["zh-CN"]="\ud83c\udde8\ud83c\uddf3",e["en-US"]="\ud83c\uddfa\ud83c\uddf8"}(r||(r={}));a("+L6B");var k=a("2/Rp");function x(){u["b"].push("/")}var R=function(){return c.a.createElement(y["a"],{status:"404",title:"404",subTitle:"\u62b1\u6b49\uff0c\u4f60\u8bbf\u95ee\u7684\u9875\u9762\u4e0d\u5b58\u5728",extra:c.a.createElement(k["a"],{type:"primary",onClick:x},"\u8fd4\u56de\u9996\u9875")})},S=function(){return c.a.createElement(y["a"],{status:"500",title:"500",subTitle:"\u62b1\u6b49\uff0c\u670d\u52a1\u5668\u51fa\u9519\u4e86",extra:c.a.createElement(k["a"],{type:"primary",onClick:x},"\u8fd4\u56de\u9996\u9875")})},F=function(){return c.a.createElement(y["a"],{status:"403",title:"403",subTitle:"\u62b1\u6b49\uff0c\u4f60\u65e0\u6743\u8bbf\u95ee\u8be5\u9875\u9762",extra:c.a.createElement(k["a"],{type:"primary",onClick:x},"\u8fd4\u56de\u9996\u9875")})},w=function(e){var t=e.children,a=e.currentPathConfig;return a?a.unAccessible||a.unaccessible?c.a.createElement(F,null):t:c.a.createElement(R,null)},N=function(e){Object(g["a"])(a,e);var t=Object(h["a"])(a);function a(e){var n;return Object(v["a"])(this,a),n=t.call(this,e),n.state={hasError:!1,error:""},n}return Object(E["a"])(a,null,[{key:"getDerivedStateFromError",value:function(){return{hasError:!0}}}]),Object(E["a"])(a,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t});var a=this.props.onError;a&&"function"===typeof a&&a(e,t)}},{key:"render",value:function(){var e=this.props,t=e.children,a=(Object(d["a"])(e,["children"]),this.state),n=a.hasError;a.error,a.info;return n?i["createElement"](S,null):t}}]),a}(i["Component"]);N.defaultProps={onError:null};var A=N,G=(a("qVdP"),a("jsC+")),z=(a("T2oS"),a("W9HT")),I=(a("Telt"),a("Tckk")),L=(a("lUTK"),a("BvKs")),M=a("aIfO");function P(e,t,a,n){if(e.rightRender)return e.rightRender(a,n,e);var r=c.a.createElement(L["a"],{className:"umi-plugin-layout-menu"},c.a.createElement(L["a"].Item,{key:"logout",onClick:function(){return e.logout&&(null===e||void 0===e?void 0:e.logout(a))}},c.a.createElement(M["a"],null),"\u9000\u51fa\u767b\u5f55")),l=c.a.createElement("span",{className:"umi-plugin-layout-action"},c.a.createElement(I["a"],{size:"small",className:"umi-plugin-layout-avatar",src:a&&a.avatar||"https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png",alt:"avatar"}),c.a.createElement("span",{className:"umi-plugin-layout-name"},a&&a.name));return t?c.a.createElement("div",{className:"umi-plugin-layout-right"},c.a.createElement(z["a"],{size:"small",style:{marginLeft:8,marginRight:8}})):a&&c.a.createElement("div",{className:"umi-plugin-layout-right anticon"},e.logout?c.a.createElement(G["a"],{overlay:r,overlayClassName:"umi-plugin-layout-container"},l):l,b["SelectLang"]&&c.a.createElement(b["SelectLang"],null))}var T=a("GOef"),D=function(){return c.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 200 200"},c.a.createElement("defs",null,c.a.createElement("linearGradient",{id:"linearGradient-1",x1:"62.102%",x2:"108.197%",y1:"0%",y2:"37.864%"},c.a.createElement("stop",{offset:"0%",stopColor:"#4285EB"}),c.a.createElement("stop",{offset:"100%",stopColor:"#2EC7FF"})),c.a.createElement("linearGradient",{id:"linearGradient-2",x1:"69.644%",x2:"54.043%",y1:"0%",y2:"108.457%"},c.a.createElement("stop",{offset:"0%",stopColor:"#29CDFF"}),c.a.createElement("stop",{offset:"37.86%",stopColor:"#148EFF"}),c.a.createElement("stop",{offset:"100%",stopColor:"#0A60FF"})),c.a.createElement("linearGradient",{id:"linearGradient-3",x1:"69.691%",x2:"16.723%",y1:"-12.974%",y2:"117.391%"},c.a.createElement("stop",{offset:"0%",stopColor:"#FA816E"}),c.a.createElement("stop",{offset:"41.473%",stopColor:"#F74A5C"}),c.a.createElement("stop",{offset:"100%",stopColor:"#F51D2C"})),c.a.createElement("linearGradient",{id:"linearGradient-4",x1:"68.128%",x2:"30.44%",y1:"-35.691%",y2:"114.943%"},c.a.createElement("stop",{offset:"0%",stopColor:"#FA8E7D"}),c.a.createElement("stop",{offset:"51.264%",stopColor:"#F74A5C"}),c.a.createElement("stop",{offset:"100%",stopColor:"#F51D2C"}))),c.a.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},c.a.createElement("g",{transform:"translate(-20 -20)"},c.a.createElement("g",{transform:"translate(20 20)"},c.a.createElement("g",null,c.a.createElement("g",{fillRule:"nonzero"},c.a.createElement("g",null,c.a.createElement("path",{fill:"url(#linearGradient-1)",d:"M91.588 4.177L4.18 91.513a11.981 11.981 0 000 16.974l87.408 87.336a12.005 12.005 0 0016.989 0l36.648-36.618c4.209-4.205 4.209-11.023 0-15.228-4.208-4.205-11.031-4.205-15.24 0l-27.783 27.76c-1.17 1.169-2.945 1.169-4.114 0l-69.802-69.744c-1.17-1.169-1.17-2.942 0-4.11l69.802-69.745c1.17-1.169 2.944-1.169 4.114 0l27.783 27.76c4.209 4.205 11.032 4.205 15.24 0 4.209-4.205 4.209-11.022 0-15.227L108.581 4.056c-4.719-4.594-12.312-4.557-16.993.12z"}),c.a.createElement("path",{fill:"url(#linearGradient-2)",d:"M91.588 4.177L4.18 91.513a11.981 11.981 0 000 16.974l87.408 87.336a12.005 12.005 0 0016.989 0l36.648-36.618c4.209-4.205 4.209-11.023 0-15.228-4.208-4.205-11.031-4.205-15.24 0l-27.783 27.76c-1.17 1.169-2.945 1.169-4.114 0l-69.802-69.744c-1.17-1.169-1.17-2.942 0-4.11l69.802-69.745c2.912-2.51 7.664-7.596 14.642-8.786 5.186-.883 10.855 1.062 17.009 5.837L108.58 4.056c-4.719-4.594-12.312-4.557-16.993.12z"})),c.a.createElement("path",{fill:"url(#linearGradient-3)",d:"M153.686 135.855c4.208 4.205 11.031 4.205 15.24 0l27.034-27.012c4.7-4.696 4.7-12.28 0-16.974l-27.27-27.15c-4.218-4.2-11.043-4.195-15.254.013-4.209 4.205-4.209 11.022 0 15.227l18.418 18.403c1.17 1.169 1.17 2.943 0 4.111l-18.168 18.154c-4.209 4.205-4.209 11.023 0 15.228z"})),c.a.createElement("ellipse",{cx:"100.519",cy:"100.437",fill:"url(#linearGradient-4)",rx:"23.6",ry:"23.581"}))))))},B=D,W=function(e){var t,a,n,r={};return(null===e||void 0===e?void 0:e.hideFooter)&&(r.footerRender=!1),0==(null===e||void 0===e?void 0:e.layout)?(r.pure=!0,r):((null===e||void 0===e||null===(t=e.layout)||void 0===t?void 0:t.hideMenu)&&(r.menuRender=!1),(null===e||void 0===e||null===(a=e.layout)||void 0===a?void 0:a.hideFooter)&&(r.footerRender=!1),(null===e||void 0===e||null===(n=e.layout)||void 0===n?void 0:n.hideNav)&&(r.headerRender=!1),r)},J=function(e){var t=e.children,a=e.userConfig,n=e.location,r=e.route,s=Object(d["a"])(e,["children","userConfig","location","route"]),v=u["e"]&&Object(u["e"])("@@initialState")||{initialState:void 0,loading:!1,setInitialState:null},E=v.initialState,g=v.loading,h=v.setInitialState,y=Object(i["useState"])({}),b=Object(o["a"])(y,2),C=b[0],O=b[1];Object(i["useEffect"])((function(){var t,a=Object(T["c"])((null===e||void 0===e||null===(t=e.route)||void 0===t?void 0:t.routes)||[],void 0,void 0,!0),r=a.menuData,l=Object(T["b"])(n.pathname,r).pop();O(l||{})}),[n.pathname]);var k=Object(l["a"])(Object(l["a"])(Object(l["a"])({itemRender:function(e){return c.a.createElement(f["a"],{to:e.path},e.breadcrumbName)}},a),s),W(C));return c.a.createElement(p["e"],Object(m["a"])({route:r,location:n,title:a.name||a.title,className:"umi-plugin-layout-main",navTheme:"dark",siderWidth:256,onMenuHeaderClick:function(e){e.stopPropagation(),e.preventDefault(),u["b"].push("/")},menu:{locale:a.locale},menuDataRender:a.patchMenus?function(e){return a.patchMenus(e,v)}:void 0,formatMessage:j,logo:B,menuItemRender:function(e,t){return e.isUrl||e.children?t:e.path?c.a.createElement(f["a"],{to:e.path},t):t},disableContentMargin:!0,fixSiderbar:!0,fixedHeader:!0},k,{rightContentRender:!1!==(null===k||void 0===k?void 0:k.rightContentRender)&&function(e){var t=P(a,g,E,h);return k.rightContentRender?k.rightContentRender(e,t,{userConfig:a,loading:g,initialState:E,setInitialState:h}):t}}),c.a.createElement(A,null,c.a.createElement(w,{currentPathConfig:C},a.childrenRender?a.childrenRender(t):t)))},U=J;t["default"]=function(e){var t=Object(i["useState"])(null),a=Object(o["a"])(t,2),n=a[0],r=a[1],m=u["e"]&&Object(u["e"])("@@initialState")||{initialState:void 0,loading:!1,setInitialState:null};Object(i["useEffect"])((function(){var e=u["c"].applyPlugins({key:"layout",type:s["ApplyPluginsType"].modify,initialValue:m})||{};e instanceof Promise?e.then((function(e){r(e)})):r(e)}),[null===m||void 0===m?void 0:m.initialState]);var d=Object(l["a"])(Object(l["a"])({},{name:"\u516c\u5171\u8003\u8bd5\u5e73\u53f0",theme:"PRO",locale:!1,showBreadcrumb:!0,siderWidth:210}),n||{});return n?c.a.createElement(U,Object(l["a"])({userConfig:d},e)):null}},rZaO:function(e,t,a){}}]);
关于我们 | 顾问团队 | 发展历程 | 联系我们 | 源码上传
联系电话(Tel):4008-010-151(免长途)
地址:北京市海淀区大恒科技大厦五层 邮编:100080
Floor 5th,Daheng Building,Zhongguancun,Beijing,China,100080
51Aspx.com 版权所有 CopyRight © 2006-2022. 京ICP备09089570号 | 京公网安备11010702000869号