You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
amis/demo/scripts/chunk/index.cc727ea0.js

2 lines
14 KiB

1 year ago
/*! For license information please see index.cc727ea0.js.LICENSE.txt */
!function(){var e,t,n,r,o,s={59481:function(e,t,n){"use strict";var r=n(67294),o=n(73935),s=n(70798),a=n(70419),i=n(9669),c=n.n(i),f=n(87462),d=n(67090),u=d.V5.model("Page",{id:d.V5.identifier,icon:"",path:"",label:"",schema:d.V5.frozen({})}).views((function(e){return{}})).actions((function(e){return{updateSchema:function(t){e.schema=t}}})),l=n(22188),j=1,b=d.V5.model("MainStore",{pages:d.V5.optional(d.V5.array(u),[{id:""+j,path:"hello-world",label:"Hello world",icon:"fa fa-file",schema:{type:"page",title:"Hello world",body:"初始页面"}}]),theme:"cxd",asideFixed:!0,asideFolded:!1,offScreen:!1,addPageIsOpen:!1,preview:!1,isMobile:!1,schema:d.V5.frozen()}).views((function(e){return{get fetcher(){return(0,d.dU)(e).fetcher},get notify(){return(0,d.dU)(e).notify},get alert(){return(0,d.dU)(e).alert},get copy(){return(0,d.dU)(e).copy}}})).actions((function(e){return{toggleAsideFolded:function(){e.asideFolded=!e.asideFolded},toggleAsideFixed:function(){e.asideFixed=!e.asideFixed},toggleOffScreen:function(){e.offScreen=!e.offScreen},setAddPageIsOpen:function(t){e.addPageIsOpen=t},addPage:function(t){e.pages.push(u.create((0,f.Z)({},t,{id:""+ ++j})))},removePageAt:function(t){e.pages.splice(t,1)},updatePageSchemaAt:function(t){e.pages[t].updateSchema(e.schema)},updateSchema:function(t){e.schema=t},setPreview:function(t){e.preview=t},setIsMobile:function(t){e.isMobile=t},afterCreate:function(){if("undefined"!=typeof window&&window.localStorage){var t=window.localStorage.getItem("store");t&&(0,d.Xx)(e,JSON.parse(t)),(0,l.U5)((function(){return(0,d.vM)(e)}),(function(e){window.localStorage.setItem("store",JSON.stringify(e))}))}}}})),m=n(5513),p=n(26709),h=r.lazy((function(){return n.e(7578).then(n.bind(n,27578))})),g=r.lazy((function(){return Promise.all([n.e(3565),n.e(696)]).then(n.bind(n,30696))})),y=(0,s.Pi)((function(e){return e.store,r.createElement(m.UT,null,r.createElement("div",{className:"routes-wrapper"},r.createElement(a.qRY,{key:"toast",position:"top-right"}),r.createElement(a.wxo,{key:"alert"}),r.createElement(r.Suspense,{fallback:r.createElement(a.$jN,{overlay:!0,className:"m-t-lg",size:"lg"})},r.createElement(p.rs,null,r.createElement(p.l_,{to:"/hello-world",from:"/",exact:!0}),r.createElement(p.AW,{path:"/edit/:id",component:g}),r.createElement(p.AW,{component:h})))))})),v=n(20640),k=n.n(v);function w(){var e=window.store=b.create({},{fetcher:function(e){var t=e.url,n=e.method,r=e.data,o=e.config,s=e.headers;return(o=o||{}).headers=o.headers||s||{},o.withCredentials=!0,"post"!==n&&"put"!==n&&"patch"!==n?(r&&(o.params=r),c()[n](t,o)):(r&&r instanceof FormData||!r||"string"==typeof r||r instanceof Blob||r instanceof ArrayBuffer||(r=JSON.stringify(r),o.headers["Content-Type"]="application/json"),c()[n](t,r,o))},isCancel:function(e){return c().isCancel(e)},notify:function(e,t){a.Amu[e]?a.Amu[e](t,"error"===e?"系统错误":"系统消息"):console.warn("[Notify]",e,t),console.log("[notify]",e,t)},alert:a.Z9G,confirm:a.iGu,copy:function(e,t){void 0===t&&(t={});var n=k()(e,t);return n&&(!t||!0!==t.shutup)&&a.Amu.info("内容已拷贝到剪切板"),n}});return r.createElement(s.zt,{store:e},r.createElement(y,{store:e}))}n(23449),n(65637),n(52064),n(89061),n(73354),n(16923),n(75785),o.render(r.createElement(w,null),document.getElementById("root"))},22933:function(){},46700:function(e,t,n){var r={"./af":42786,"./af.js":42786,"./ar":30867,"./ar-dz":14130,"./ar-dz.js":14130,"./ar-kw":96135,"./ar-kw.js":96135,"./ar-ly":56440,"./ar-ly.js":56440,"./ar-ma":47702,"./ar-ma.js":47702,"./ar-sa":16040,"./ar-sa.js":16040,"./ar-tn":37100,"./ar-tn.js":37100,"./ar.js":30867,"./az":31083,"./az.js":31083,"./be":9808,"./be.js":9808,"./bg":68338,"./bg.js":68338,"./bm":67438,"./bm.js":67438,"./bn":8905,"./bn-bd":76225,"./bn-bd.js":76225,"./bn.js":8905,"./bo":11560,"./bo.js":11560,"./br":1278,"./br.js":1278,"./bs":80622,"./bs.js":80622,"./ca":2468,"./ca.js":2468,"./cs":5822,"./cs.js":5822,"./cv":50877,"./cv.js":50877,"./cy":47373,"./cy.js":47373,"./da":24780,"./da.js":24780,"./de":59740,"./de-at":60217,"./de-at.js":60217,"./de-ch":60894,"./de-