@vtj/pro 0.18.3 → 0.18.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
  2. package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
  3. package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
  4. package/dist/@vtj/materials/assets/icons/index.umd.js +2 -2
  5. package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
  6. package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
  7. package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
  8. package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
  9. package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
  10. package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
  11. package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
  12. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
  13. package/dist/assets/{Editor-Cd_sXO4L-CRIUeiMF.js → Editor-Dco-iMhe-DgjCtWaf.js} +12 -12
  14. package/dist/assets/{auth-D9Y9IGU-.js → auth-CamhjXPi.js} +1 -1
  15. package/dist/assets/{index-BK5Af6VE.js → index-BbRB2Up5.js} +2 -2
  16. package/dist/assets/{index-u-io2Rtk.js → index-BuiJdFol.js} +1 -1
  17. package/dist/assets/{page-CpSAnvMR.js → page-BqOs1Twk.js} +1 -1
  18. package/dist/assets/{preview-CDHUGj2E.js → preview-xnAUoXQq.js} +1 -1
  19. package/dist/assets/{utils-BSAd_q3O.js → utils-Br9-X7fH.js} +1 -1
  20. package/dist/index.html +3 -3
  21. package/dist/uni/assets/{index-BllrHfg5.js → index-CIB3g3xT.js} +17 -17
  22. package/dist/uni/index.html +1 -1
  23. package/package.json +11 -11
  24. /package/dist/assets/{Editor-Cd_sXO4L-C4uXNc6V.css → Editor-Dco-iMhe-C4uXNc6V.css} +0 -0
@@ -1 +1 @@
1
- var x=Object.defineProperty;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var k=(o,e,t)=>e in o?x(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,u=(o,e)=>{for(var t in e||(e={}))A.call(e,t)&&k(o,t,e[t]);if(y)for(var t of y(e))I.call(e,t)&&k(o,t,e[t]);return o};var _=(o,e,t)=>new Promise((c,r)=>{var n=s=>{try{i(t.next(s))}catch(a){r(a)}},p=s=>{try{i(t.throw(s))}catch(a){r(a)}},i=s=>s.done?c(s.value):Promise.resolve(s.value).then(n,p);i((t=t.apply(o,e)).next())});import"./element-plus-_gYoEp33.js";import"./vxe-BulginLS.js";import{V as U,aI as E,ac as d,aJ as b,aK as B,W as q}from"./Editor-Cd_sXO4L-CRIUeiMF.js";import{useRoute as v}from"./vue-router-CDqTjrgM.js";import{y as w,az as f,I as R,D as C,u as l,E as V,U as $}from"./vue-fMktb-5o.js";import{_ as g}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vueuse-SvwMwBjL.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";import"./@element-plus-icons-vue-DA02k83P.js";import"./dayjs-CxR8wwn9.js";import"./monaco-editor-Bgo-w-Z8.js";import"./axios-Cc-15rbk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-Cu-wxkKz.js";import"./marked--VTVY_DP.js";const K={class:"loading"},S=w({__name:"Auth",props:{remote:{},access:{},baseUrl:{default:"/"}},setup(o){return _(this,null,function*(){let e,t;const c=o,r=U(u(u({alert:d},E),c.access)),n=v(),p=a=>_(null,null,function*(){const h=`${c.remote||b}/api/open/user/${a}`,m=yield B(h).catch(()=>null);return m&&Array.isArray(m)?m:!m||!m.success?(yield d("登录失败"),null):m.data}),i=n.query.token,s=i?([e,t]=f(()=>p(i)),e=yield e,t(),e):null;if(s)try{r.login(s);const a=n.query.redirect;location.href=decodeURIComponent(a||c.baseUrl)}catch(a){location.reload()}else{[e,t]=f(()=>d("登录失败")),yield e,t();const a=n.query.redirect;location.href=decodeURIComponent(a||c.baseUrl)}return(a,h)=>(C(),R("div",K,"正在登录中..."))})}}),W=g(S,[["__scopeId","data-v-2cb061ca"]]),ee=w({__name:"auth",setup(o){return _(this,null,function*(){let e,t;const c=new q,r=([e,t]=f(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e),n=r==null?void 0:r.remote,p=r==null?void 0:r.__ACCESS__;return(i,s)=>l(n)?(C(),V(l(W),{key:0,remote:l(n),access:l(p)},null,8,["remote","access"])):$("",!0)})}});export{ee as default};
1
+ var x=Object.defineProperty;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var k=(o,e,t)=>e in o?x(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,u=(o,e)=>{for(var t in e||(e={}))A.call(e,t)&&k(o,t,e[t]);if(y)for(var t of y(e))I.call(e,t)&&k(o,t,e[t]);return o};var _=(o,e,t)=>new Promise((c,r)=>{var n=s=>{try{i(t.next(s))}catch(a){r(a)}},p=s=>{try{i(t.throw(s))}catch(a){r(a)}},i=s=>s.done?c(s.value):Promise.resolve(s.value).then(n,p);i((t=t.apply(o,e)).next())});import"./element-plus-_gYoEp33.js";import"./vxe-BulginLS.js";import{V as U,aI as E,ac as d,aJ as b,aK as B,W as q}from"./Editor-Dco-iMhe-DgjCtWaf.js";import{useRoute as v}from"./vue-router-CDqTjrgM.js";import{y as w,az as f,I as R,D as C,u as l,E as V,U as $}from"./vue-fMktb-5o.js";import{_ as g}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vueuse-SvwMwBjL.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";import"./@element-plus-icons-vue-DA02k83P.js";import"./dayjs-CxR8wwn9.js";import"./monaco-editor-Bgo-w-Z8.js";import"./axios-Cc-15rbk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-Cu-wxkKz.js";import"./marked--VTVY_DP.js";const K={class:"loading"},S=w({__name:"Auth",props:{remote:{},access:{},baseUrl:{default:"/"}},setup(o){return _(this,null,function*(){let e,t;const c=o,r=U(u(u({alert:d},E),c.access)),n=v(),p=a=>_(null,null,function*(){const h=`${c.remote||b}/api/open/user/${a}`,m=yield B(h).catch(()=>null);return m&&Array.isArray(m)?m:!m||!m.success?(yield d("登录失败"),null):m.data}),i=n.query.token,s=i?([e,t]=f(()=>p(i)),e=yield e,t(),e):null;if(s)try{r.login(s);const a=n.query.redirect;location.href=decodeURIComponent(a||c.baseUrl)}catch(a){location.reload()}else{[e,t]=f(()=>d("登录失败")),yield e,t();const a=n.query.redirect;location.href=decodeURIComponent(a||c.baseUrl)}return(a,h)=>(C(),R("div",K,"正在登录中..."))})}}),W=g(S,[["__scopeId","data-v-2cb061ca"]]),ee=w({__name:"auth",setup(o){return _(this,null,function*(){let e,t;const c=new q,r=([e,t]=f(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e),n=r==null?void 0:r.remote,p=r==null?void 0:r.__ACCESS__;return(i,s)=>l(n)?(C(),V(l(W),{key:0,remote:l(n),access:l(p)},null,8,["remote","access"])):$("",!0)})}});export{ee as default};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-u-io2Rtk.js","./vue-router-CDqTjrgM.js","./vue-fMktb-5o.js","./@vueuse-SvwMwBjL.js","./Editor-Cd_sXO4L-CRIUeiMF.js","./monaco-editor-Bgo-w-Z8.js","./monaco-editor-C0wzwsn5.css","./element-plus-_gYoEp33.js","./lodash-es-BxdYFYdv.js","./shared-Bc0G8KpM.js","./@element-plus-icons-vue-DA02k83P.js","./dayjs-CxR8wwn9.js","./element-plus-Bw1qTWaj.css","./axios-Cc-15rbk.js","./vxe-BulginLS.js","./vxe-BAb1d5vW.css","./html2canvas-DNSjNh3_.js","./mockjs-Cu-wxkKz.js","./marked--VTVY_DP.js","./Editor-Cd_sXO4L-C4uXNc6V.css","./utils-BSAd_q3O.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-Br68Req3.css","./preview-CDHUGj2E.js","./page-CpSAnvMR.js","./uni-page--udw_bNq.js","./uni-page-Diqmj53r.css","./auth-D9Y9IGU-.js"])))=>i.map(i=>d[i]);
2
- import{y as _,E as p,u as s,af as d,D as m,K as u,aB as f,J as h,at as v}from"./vue-fMktb-5o.js";import{z as g,c as y}from"./element-plus-_gYoEp33.js";import"./dayjs-CxR8wwn9.js";import{_ as r}from"./monaco-editor-Bgo-w-Z8.js";import{createRouter as E,createWebHashHistory as O}from"./vue-router-CDqTjrgM.js";import"./@vueuse-SvwMwBjL.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";import"./@element-plus-icons-vue-DA02k83P.js";(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))i(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const a of t.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&i(a)}).observe(document,{childList:!0,subtree:!0});function n(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function i(e){if(e.ep)return;e.ep=!0;const t=n(e);fetch(e.href,t)}})();const P=_({__name:"app",setup(l){return(o,n)=>{const i=d("router-view");return m(),p(s(y),{locale:s(g)},{default:u(()=>[(m(),p(f,null,{default:u(()=>[h(i)]),_:1}))]),_:1},8,["locale"])}}}),L=[{path:"/",name:"home",component:()=>r(()=>import("./index-u-io2Rtk.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]),import.meta.url)},{path:"/preview/:id",name:"preview",component:()=>r(()=>import("./preview-CDHUGj2E.js"),__vite__mapDeps([23,5,6,1,2,7,3,8,9,10,11,12,14,15,4,13,16,17,18,19,20]),import.meta.url)},{path:"/page/:id",name:"page",component:()=>r(()=>import("./page-CpSAnvMR.js"),__vite__mapDeps([24,5,6,1,2,7,3,8,9,10,11,12,14,15,4,13,16,17,18,19,20]),import.meta.url),meta:{pure:!0}},{path:"/pages/:id",name:"pages",component:()=>r(()=>import("./uni-page--udw_bNq.js"),__vite__mapDeps([25,1,2,21,26]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>r(()=>import("./auth-D9Y9IGU-.js"),__vite__mapDeps([27,7,3,2,8,9,10,11,12,14,15,4,5,6,13,1,16,17,18,19,21]),import.meta.url)}],A=E({history:O(),routes:L}),c=v(P);c.use(A);c.mount("#app");
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BuiJdFol.js","./vue-router-CDqTjrgM.js","./vue-fMktb-5o.js","./@vueuse-SvwMwBjL.js","./Editor-Dco-iMhe-DgjCtWaf.js","./monaco-editor-Bgo-w-Z8.js","./monaco-editor-C0wzwsn5.css","./element-plus-_gYoEp33.js","./lodash-es-BxdYFYdv.js","./shared-Bc0G8KpM.js","./@element-plus-icons-vue-DA02k83P.js","./dayjs-CxR8wwn9.js","./element-plus-Bw1qTWaj.css","./axios-Cc-15rbk.js","./vxe-BulginLS.js","./vxe-BAb1d5vW.css","./html2canvas-DNSjNh3_.js","./mockjs-Cu-wxkKz.js","./marked--VTVY_DP.js","./Editor-Dco-iMhe-C4uXNc6V.css","./utils-Br9-X7fH.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-Br68Req3.css","./preview-xnAUoXQq.js","./page-BqOs1Twk.js","./uni-page--udw_bNq.js","./uni-page-Diqmj53r.css","./auth-CamhjXPi.js"])))=>i.map(i=>d[i]);
2
+ import{y as _,E as p,u as s,af as d,D as m,K as u,aB as f,J as h,at as v}from"./vue-fMktb-5o.js";import{z as g,c as y}from"./element-plus-_gYoEp33.js";import"./dayjs-CxR8wwn9.js";import{_ as r}from"./monaco-editor-Bgo-w-Z8.js";import{createRouter as E,createWebHashHistory as O}from"./vue-router-CDqTjrgM.js";import"./@vueuse-SvwMwBjL.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";import"./@element-plus-icons-vue-DA02k83P.js";(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))i(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const a of t.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&i(a)}).observe(document,{childList:!0,subtree:!0});function n(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function i(e){if(e.ep)return;e.ep=!0;const t=n(e);fetch(e.href,t)}})();const P=_({__name:"app",setup(l){return(o,n)=>{const i=d("router-view");return m(),p(s(y),{locale:s(g)},{default:u(()=>[(m(),p(f,null,{default:u(()=>[h(i)]),_:1}))]),_:1},8,["locale"])}}}),L=[{path:"/",name:"home",component:()=>r(()=>import("./index-BuiJdFol.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]),import.meta.url)},{path:"/preview/:id",name:"preview",component:()=>r(()=>import("./preview-xnAUoXQq.js"),__vite__mapDeps([23,5,6,1,2,7,3,8,9,10,11,12,14,15,4,13,16,17,18,19,20]),import.meta.url)},{path:"/page/:id",name:"page",component:()=>r(()=>import("./page-BqOs1Twk.js"),__vite__mapDeps([24,5,6,1,2,7,3,8,9,10,11,12,14,15,4,13,16,17,18,19,20]),import.meta.url),meta:{pure:!0}},{path:"/pages/:id",name:"pages",component:()=>r(()=>import("./uni-page--udw_bNq.js"),__vite__mapDeps([25,1,2,21,26]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>r(()=>import("./auth-CamhjXPi.js"),__vite__mapDeps([27,7,3,2,8,9,10,11,12,14,15,4,5,6,13,1,16,17,18,19,21]),import.meta.url)}],A=E({history:O(),routes:L}),c=v(P);c.use(A);c.mount("#app");
@@ -1 +1 @@
1
- var q=Object.defineProperty;var P=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var C=(n,e,t)=>e in n?q(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,$=(n,e)=>{for(var t in e||(e={}))H.call(e,t)&&C(n,t,e[t]);if(P)for(var t of P(e))N.call(e,t)&&C(n,t,e[t]);return n};var d=(n,e,t)=>new Promise((_,r)=>{var l=o=>{try{i(t.next(o))}catch(p){r(p)}},s=o=>{try{i(t.throw(o))}catch(p){r(p)}},i=o=>o.done?_(o.value):Promise.resolve(o.value).then(l,s);i((t=t.apply(n,e)).next())});import{useRoute as j}from"./vue-router-CDqTjrgM.js";import{y as z}from"./@vueuse-SvwMwBjL.js";import{W as D,U as J,R as G,V as K,o as E,l as L,d as v}from"./Editor-Cd_sXO4L-CRIUeiMF.js";import"./element-plus-_gYoEp33.js";import"./vxe-BulginLS.js";import{E as M,a as S,n as A,l as O}from"./utils-BSAd_q3O.js";import{y as Q,az as B,e as X,I as Y,r as Z,D as ee}from"./vue-fMktb-5o.js";import{_ as te}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./monaco-editor-Bgo-w-Z8.js";import"./dayjs-CxR8wwn9.js";import"./axios-Cc-15rbk.js";import"./@element-plus-icons-vue-DA02k83P.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-Cu-wxkKz.js";import"./marked--VTVY_DP.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";const ae=Q({__name:"index",setup(n){return d(this,null,function*(){let e,t;const _=j(),r=Z(),l=new D(J(A)),s=([e,t]=B(()=>l.getExtension().catch(()=>null)),e=yield e,t(),e||{}),i=s?([e,t]=B(()=>new M(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:o="/",history:p="hash",base:h="/",pageRouteName:w="page",remote:g,auth:R,checkVersion:k=!0,enhance:V,platform:W="web"}=s||{},F=G({loading:O,notify:A,useTitle:z,alert:S,access:s==null?void 0:s.access,settings:{proxyPath:`${g}/api/proxy`}}),I=K($({alert:S},s==null?void 0:s.__ACCESS__)),T=()=>p==="hash",U=a=>a==="/"?"":(a.startsWith("/")&&(a=a.substring(1)),a.endsWith("/")||(a=a+"/"),a);E.set("Switcher",{props:{onClick:a=>{const u=a.platform==="uniapp",c=location.pathname;let m=c===`${o}__vtj__/`?o:c;const f=a.currentFile;if(f&&f.type==="page"&&a.homepage!==f.id){const b=s.pageBasePath?`/${w}`:"",x=`${U(h)}${u?`pages${b}`:w}/${f.id}`;m=T()?`${m}#/${x}`:`${m}${x}`}window.open(m,"VTJProject")}}}),E.set("Previewer",{props:{path:(a,u)=>{const c=location.pathname;return u.platform==="uniapp"?`${c}uni/#/pages/${a.id}`:`${c}#/preview/${a.id}`}}});const y=new L($({container:r,service:l,materialPath:o,pageBasePath:h==="/"?"":h,adapter:F,access:I,remote:g,auth:R,checkVersion:k,enhance:V,project:{platform:W}},i));return y.ready(()=>d(null,null,function*(){yield v(300),y.openFile(_.query.id)})),X(()=>_.query.id,a=>d(null,null,function*(){yield v(300),y.openFile(a)})),(a,u)=>(ee(),Y("div",{class:"designer",ref_key:"container",ref:r},null,512))})}}),xe=te(ae,[["__scopeId","data-v-f41f19f5"]]);export{xe as default};
1
+ var q=Object.defineProperty;var P=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var C=(n,e,t)=>e in n?q(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,$=(n,e)=>{for(var t in e||(e={}))H.call(e,t)&&C(n,t,e[t]);if(P)for(var t of P(e))N.call(e,t)&&C(n,t,e[t]);return n};var d=(n,e,t)=>new Promise((_,r)=>{var l=o=>{try{i(t.next(o))}catch(p){r(p)}},s=o=>{try{i(t.throw(o))}catch(p){r(p)}},i=o=>o.done?_(o.value):Promise.resolve(o.value).then(l,s);i((t=t.apply(n,e)).next())});import{useRoute as j}from"./vue-router-CDqTjrgM.js";import{y as z}from"./@vueuse-SvwMwBjL.js";import{W as D,U as J,R as G,V as K,o as E,l as L,d as v}from"./Editor-Dco-iMhe-DgjCtWaf.js";import"./element-plus-_gYoEp33.js";import"./vxe-BulginLS.js";import{E as M,a as S,n as A,l as O}from"./utils-Br9-X7fH.js";import{y as Q,az as B,e as X,I as Y,r as Z,D as ee}from"./vue-fMktb-5o.js";import{_ as te}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./monaco-editor-Bgo-w-Z8.js";import"./dayjs-CxR8wwn9.js";import"./axios-Cc-15rbk.js";import"./@element-plus-icons-vue-DA02k83P.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-Cu-wxkKz.js";import"./marked--VTVY_DP.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";const ae=Q({__name:"index",setup(n){return d(this,null,function*(){let e,t;const _=j(),r=Z(),l=new D(J(A)),s=([e,t]=B(()=>l.getExtension().catch(()=>null)),e=yield e,t(),e||{}),i=s?([e,t]=B(()=>new M(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:o="/",history:p="hash",base:h="/",pageRouteName:w="page",remote:g,auth:R,checkVersion:k=!0,enhance:V,platform:W="web"}=s||{},F=G({loading:O,notify:A,useTitle:z,alert:S,access:s==null?void 0:s.access,settings:{proxyPath:`${g}/api/proxy`}}),I=K($({alert:S},s==null?void 0:s.__ACCESS__)),T=()=>p==="hash",U=a=>a==="/"?"":(a.startsWith("/")&&(a=a.substring(1)),a.endsWith("/")||(a=a+"/"),a);E.set("Switcher",{props:{onClick:a=>{const u=a.platform==="uniapp",c=location.pathname;let m=c===`${o}__vtj__/`?o:c;const f=a.currentFile;if(f&&f.type==="page"&&a.homepage!==f.id){const b=s.pageBasePath?`/${w}`:"",x=`${U(h)}${u?`pages${b}`:w}/${f.id}`;m=T()?`${m}#/${x}`:`${m}${x}`}window.open(m,"VTJProject")}}}),E.set("Previewer",{props:{path:(a,u)=>{const c=location.pathname;return u.platform==="uniapp"?`${c}uni/#/pages/${a.id}`:`${c}#/preview/${a.id}`}}});const y=new L($({container:r,service:l,materialPath:o,pageBasePath:h==="/"?"":h,adapter:F,access:I,remote:g,auth:R,checkVersion:k,enhance:V,project:{platform:W}},i));return y.ready(()=>d(null,null,function*(){yield v(300),y.openFile(_.query.id)})),X(()=>_.query.id,a=>d(null,null,function*(){yield v(300),y.openFile(a)})),(a,u)=>(ee(),Y("div",{class:"designer",ref_key:"container",ref:r},null,512))})}}),xe=te(ae,[["__scopeId","data-v-f41f19f5"]]);export{xe as default};
@@ -1,2 +1,2 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-CDqTjrgM.js","./vue-fMktb-5o.js"])))=>i.map(i=>d[i]);
2
- var x=Object.defineProperty;var E=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;var R=(o,t,e)=>t in o?x(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,y=(o,t)=>{for(var e in t||(t={}))P.call(t,e)&&R(o,e,t[e]);if(E)for(var e of E(t))h.call(t,e)&&R(o,e,t[e]);return o};var c=(o,t,e)=>new Promise((_,s)=>{var u=r=>{try{p(e.next(r))}catch(i){s(i)}},d=r=>{try{p(e.throw(r))}catch(i){s(i)}},p=r=>r.done?_(r.value):Promise.resolve(r.value).then(u,d);p((e=e.apply(o,t)).next())});import{_ as C}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as A}from"./vue-router-CDqTjrgM.js";import"./element-plus-_gYoEp33.js";import"./vxe-BulginLS.js";import{W as T,U as V,R as D,L,P as k,Y as B,T as I}from"./Editor-Cd_sXO4L-CRIUeiMF.js";import{a as S,n as g,l as U,E as O}from"./utils-BSAd_q3O.js";import{y as W}from"./@vueuse-SvwMwBjL.js";import{y as Y,az as w,e as z,E as H,S as N,U as b,r as j,D as q,g as F}from"./vue-fMktb-5o.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";import"./@element-plus-icons-vue-DA02k83P.js";import"./dayjs-CxR8wwn9.js";import"./axios-Cc-15rbk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-Cu-wxkKz.js";import"./marked--VTVY_DP.js";const mt=Y({__name:"page",setup(o){return c(this,null,function*(){let t,e;const _=new T(V(g)),s=([t,e]=w(()=>_.getExtension().catch(()=>null)),t=yield t,e(),t),u=D({loading:U,notify:g,useTitle:W,alert:S,access:s==null?void 0:s.access}),d=s?([t,e]=w(()=>new O(s).load()),t=yield t,e(),t):{},{__BASE_PATH__:p="/"}=s||{},{provider:r,onReady:i}=L({mode:k.Runtime,service:_,materialPath:p,adapter:y(y({},u),d.adapter),dependencies:{Vue:()=>C(()=>import("./vue-fMktb-5o.js").then(a=>a.aA),[],import.meta.url),VueRouter:()=>C(()=>import("./vue-router-CDqTjrgM.js"),__vite__mapDeps([0,1]),import.meta.url)}}),l=A(),f=j(),n=F(),v=a=>c(null,null,function*(){f.value=yield r.getRenderComponent(l.params.id.toString(),m=>{I(a,l,m)})});return i(()=>c(null,null,function*(){const a=n==null?void 0:n.appContext.app;a&&(a.use(B),a.use(r),v(a))})),z(()=>l.params.id,a=>c(null,null,function*(){if(a){const m=n==null?void 0:n.appContext.app;if(!m)return;v(m)}})),(a,m)=>f.value?(q(),H(N(f.value),{key:0})):b("",!0)})}});export{mt as default};
2
+ var x=Object.defineProperty;var E=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;var R=(o,t,e)=>t in o?x(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,y=(o,t)=>{for(var e in t||(t={}))P.call(t,e)&&R(o,e,t[e]);if(E)for(var e of E(t))h.call(t,e)&&R(o,e,t[e]);return o};var c=(o,t,e)=>new Promise((_,s)=>{var u=r=>{try{p(e.next(r))}catch(i){s(i)}},d=r=>{try{p(e.throw(r))}catch(i){s(i)}},p=r=>r.done?_(r.value):Promise.resolve(r.value).then(u,d);p((e=e.apply(o,t)).next())});import{_ as C}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as A}from"./vue-router-CDqTjrgM.js";import"./element-plus-_gYoEp33.js";import"./vxe-BulginLS.js";import{W as T,U as V,R as D,L,P as k,Y as B,T as I}from"./Editor-Dco-iMhe-DgjCtWaf.js";import{a as S,n as g,l as U,E as O}from"./utils-Br9-X7fH.js";import{y as W}from"./@vueuse-SvwMwBjL.js";import{y as Y,az as w,e as z,E as H,S as N,U as b,r as j,D as q,g as F}from"./vue-fMktb-5o.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";import"./@element-plus-icons-vue-DA02k83P.js";import"./dayjs-CxR8wwn9.js";import"./axios-Cc-15rbk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-Cu-wxkKz.js";import"./marked--VTVY_DP.js";const mt=Y({__name:"page",setup(o){return c(this,null,function*(){let t,e;const _=new T(V(g)),s=([t,e]=w(()=>_.getExtension().catch(()=>null)),t=yield t,e(),t),u=D({loading:U,notify:g,useTitle:W,alert:S,access:s==null?void 0:s.access}),d=s?([t,e]=w(()=>new O(s).load()),t=yield t,e(),t):{},{__BASE_PATH__:p="/"}=s||{},{provider:r,onReady:i}=L({mode:k.Runtime,service:_,materialPath:p,adapter:y(y({},u),d.adapter),dependencies:{Vue:()=>C(()=>import("./vue-fMktb-5o.js").then(a=>a.aA),[],import.meta.url),VueRouter:()=>C(()=>import("./vue-router-CDqTjrgM.js"),__vite__mapDeps([0,1]),import.meta.url)}}),l=A(),f=j(),n=F(),v=a=>c(null,null,function*(){f.value=yield r.getRenderComponent(l.params.id.toString(),m=>{I(a,l,m)})});return i(()=>c(null,null,function*(){const a=n==null?void 0:n.appContext.app;a&&(a.use(B),a.use(r),v(a))})),z(()=>l.params.id,a=>c(null,null,function*(){if(a){const m=n==null?void 0:n.appContext.app;if(!m)return;v(m)}})),(a,m)=>f.value?(q(),H(N(f.value),{key:0})):b("",!0)})}});export{mt as default};
@@ -1,2 +1,2 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-CDqTjrgM.js","./vue-fMktb-5o.js"])))=>i.map(i=>d[i]);
2
- var x=Object.defineProperty;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var E=(o,e,t)=>e in o?x(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,d=(o,e)=>{for(var t in e||(e={}))A.call(e,t)&&E(o,t,e[t]);if(y)for(var t of y(e))P.call(e,t)&&E(o,t,e[t]);return o};var f=(o,e,t)=>new Promise((c,r)=>{var _=a=>{try{i(t.next(a))}catch(p){r(p)}},s=a=>{try{i(t.throw(a))}catch(p){r(p)}},i=a=>a.done?c(a.value):Promise.resolve(a.value).then(_,s);i((t=t.apply(o,e)).next())});import{_ as R}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as T}from"./vue-router-CDqTjrgM.js";import"./element-plus-_gYoEp33.js";import"./vxe-BulginLS.js";import{W as g,U as V,R as D,L,P as k,$ as B,Y as I,T as S}from"./Editor-Cd_sXO4L-CRIUeiMF.js";import{a as U,n as w,l as O,E as W}from"./utils-BSAd_q3O.js";import{y as Y}from"./@vueuse-SvwMwBjL.js";import{y as $,az as h,E as z,S as H,U as N,r as b,D as j,g as q}from"./vue-fMktb-5o.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";import"./@element-plus-icons-vue-DA02k83P.js";import"./dayjs-CxR8wwn9.js";import"./axios-Cc-15rbk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-Cu-wxkKz.js";import"./marked--VTVY_DP.js";const me=$({__name:"preview",setup(o){return f(this,null,function*(){let e,t;const c=new g(V(w)),r=([e,t]=h(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e||{}),_=D({loading:O,notify:w,useTitle:Y,alert:U,access:r==null?void 0:r.access}),s=r?([e,t]=h(()=>new W(r).load()),e=yield e,t(),e):{},{__BASE_PATH__:i="/"}=r||{},{provider:a,onReady:p}=L({mode:k.Runtime,service:c,materialPath:i,adapter:d(d({},_),s.adapter),dependencies:{Vue:()=>R(()=>import("./vue-fMktb-5o.js").then(m=>m.aA),[],import.meta.url),VueRouter:()=>R(()=>import("./vue-router-CDqTjrgM.js"),__vite__mapDeps([0,1]),import.meta.url)}}),v=T(),u=b(),l=q();return p(()=>f(null,null,function*(){const m=yield B(r.enhance),n=l==null?void 0:l.appContext.app;n&&(s.install&&s.install(n),m&&n.use(m,a),n.use(I),n.use(a),u.value=yield a.getRenderComponent(v.params.id.toString(),C=>{S(n,v,C)}))})),(m,n)=>u.value?(j(),z(H(u.value),{key:0})):N("",!0)})}});export{me as default};
2
+ var x=Object.defineProperty;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var E=(o,e,t)=>e in o?x(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,d=(o,e)=>{for(var t in e||(e={}))A.call(e,t)&&E(o,t,e[t]);if(y)for(var t of y(e))P.call(e,t)&&E(o,t,e[t]);return o};var f=(o,e,t)=>new Promise((c,r)=>{var _=a=>{try{i(t.next(a))}catch(p){r(p)}},s=a=>{try{i(t.throw(a))}catch(p){r(p)}},i=a=>a.done?c(a.value):Promise.resolve(a.value).then(_,s);i((t=t.apply(o,e)).next())});import{_ as R}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as T}from"./vue-router-CDqTjrgM.js";import"./element-plus-_gYoEp33.js";import"./vxe-BulginLS.js";import{W as g,U as V,R as D,L,P as k,$ as B,Y as I,T as S}from"./Editor-Dco-iMhe-DgjCtWaf.js";import{a as U,n as w,l as O,E as W}from"./utils-Br9-X7fH.js";import{y as Y}from"./@vueuse-SvwMwBjL.js";import{y as $,az as h,E as z,S as H,U as N,r as b,D as j,g as q}from"./vue-fMktb-5o.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";import"./@element-plus-icons-vue-DA02k83P.js";import"./dayjs-CxR8wwn9.js";import"./axios-Cc-15rbk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-Cu-wxkKz.js";import"./marked--VTVY_DP.js";const me=$({__name:"preview",setup(o){return f(this,null,function*(){let e,t;const c=new g(V(w)),r=([e,t]=h(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e||{}),_=D({loading:O,notify:w,useTitle:Y,alert:U,access:r==null?void 0:r.access}),s=r?([e,t]=h(()=>new W(r).load()),e=yield e,t(),e):{},{__BASE_PATH__:i="/"}=r||{},{provider:a,onReady:p}=L({mode:k.Runtime,service:c,materialPath:i,adapter:d(d({},_),s.adapter),dependencies:{Vue:()=>R(()=>import("./vue-fMktb-5o.js").then(m=>m.aA),[],import.meta.url),VueRouter:()=>R(()=>import("./vue-router-CDqTjrgM.js"),__vite__mapDeps([0,1]),import.meta.url)}}),v=T(),u=b(),l=q();return p(()=>f(null,null,function*(){const m=yield B(r.enhance),n=l==null?void 0:l.appContext.app;n&&(s.install&&s.install(n),m&&n.use(m,a),n.use(I),n.use(a),u.value=yield a.getRenderComponent(v.params.id.toString(),C=>{S(n,v,C)}))})),(m,n)=>u.value?(j(),z(H(u.value),{key:0})):N("",!0)})}});export{me as default};
@@ -1 +1 @@
1
- var T=Object.defineProperty;var p=Object.getOwnPropertySymbols;var u=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var g=(t,a,s)=>a in t?T(t,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[a]=s,_=(t,a)=>{for(var s in a||(a={}))u.call(a,s)&&g(t,s,a[s]);if(p)for(var s of p(a))I.call(a,s)&&g(t,s,a[s]);return t};var E=(t,a,s)=>g(t,typeof a!="symbol"?a+"":a,s);var S=(t,a,s)=>new Promise((o,n)=>{var e=r=>{try{i(s.next(r))}catch(l){n(l)}},c=r=>{try{i(s.throw(r))}catch(l){n(l)}},i=r=>r.done?o(r.value):Promise.resolve(r.value).then(e,c);i((s=s.apply(t,a)).next())});import{aA as d}from"./vue-fMktb-5o.js";import{X as m,a as A,s as h,y as f,f as V,c as b,r as P,Q as M,e as y,Z as R,n as D,l as N,b as B,g as K,h as k,x as L,k as x,i as w,j as H,K as G,m as W,p as v,q as Y,t as F,u as C,v as U,w as X,z as j,A as q,B as J,C as Z,D as $,E as z,F as Q,G as aa,S as sa,H as ea,I as ta,J as ra,M as na,N as ia,O as oa,_ as la,a0 as Ea,a1 as _a,a2 as ca,a3 as ga,a4 as pa,a5 as Sa,a6 as Oa,a7 as Ta,a8 as ua,a9 as Ia,aa as da,ab as ma,ac as Aa,ad as ha,ae as fa,af as Va,ag as ba,ah as Pa,ai as Ma,aj as ya,ak as Ra,al as Da,am as Na,an as Ba,ao as Ka,ap as ka,aq as La,ar as xa,as as wa,at as Ha,au as Ga,av as Wa,aw as va,ax as Ya,ay as Fa,az as Ca,o as Ua,aA as Xa,aB as ja,aC as qa,aD as Ja,aE as Za,aF as $a,aG as za,aH as Qa}from"./Editor-Cd_sXO4L-CRIUeiMF.js";import{E as as,a as ss,b as es}from"./element-plus-_gYoEp33.js";import"./dayjs-CxR8wwn9.js";const ts=Object.freeze(Object.defineProperty({__proto__:null,API_METHOD_TYPES:m,ActionMenu:A,Assets:h,Binder:f,Box:V,CodeIncrementalUpdater:b,DEVTOOLS_DEP:P,DepsManager:M,Designer:y,EVENT_MODIFIERS:R,Editor:D,Engine:N,EventBinder:B,GET_TOKENS_LINK:K,HOT_KEYS_DEP:k,Icon:L,Item:x,KEYBOARD_EVENT_LIST:w,MAX_TOKENS:H,MOBILE_SIZE:G,MOUSE_EVENT_LIST:W,NAME_REGEX:v,NPM_REGISTRY_URL:Y,OpenApi:F,PAD_SIZE:C,Panel:U,REPORT_API:X,RegionType:j,RegionWrapper:q,Renderer:J,SAVE_BLOCK_FILE_FINISH:Z,SESSION_ID_KEY:$,STATE_KEY:z,SetterManager:Q,SetterView:aa,SetterWrapper:sa,Simulator:ea,Skeleton:ta,SkeletonWrapper:ra,SlotsPicker:na,State:ia,TOOL_CONFIGS:oa,Tabs:la,ToolRegistry:Ea,VERSION_REGEX:_a,VTJ_DESIGNER_VERSION:ca,VUE_DEVTOOLS_FRAME_STATE_KEY:ga,VUE_DEVTOOLS_OVERLAY_PATH:pa,VUE_DEVTOOLS_PATH:Sa,VariableBinder:Oa,Viewer:Ta,Viewport:ua,WidgetGroup:Ia,WidgetManager:da,WidgetWrapper:ma,alert:Aa,builtInDeps:ha,builtInMaterials:fa,builtInSetters:Va,builtInWidgets:ba,codeIncrementalUpdater:Pa,confirm:Ma,createSlotsPicker:ya,defaultSetter:Ra,depsManager:Da,engineKey:Na,expressionValidate:Ba,getClassProperties:Ka,loading:ka,message:La,normalizedStyle:xa,notify:wa,proxyContext:Ha,readJsonFile:Ga,regions:Wa,setterManager:va,setters:Ya,upgradeVersion:Fa,useEngine:Ca,widgetManager:Ua,widgets:Xa},Symbol.toStringTag,{value:"Module"}));class Es{constructor(a){E(this,"urls",[]);E(this,"library","");E(this,"params",[]);E(this,"__BASE_PATH__","/");this.config=a;const s=_(_(_({},qa),ts),ja),o={Vue:d,__VTJ_PRO__:s};for(const[l,O]of Object.entries(o))window[l]=O;const{extension:n,__BASE_PATH__:e="/"}=a||{},{urls:c=[],library:i,params:r=[]}=n||{};i&&(this.urls=c,this.library=i,this.params=r,this.__BASE_PATH__=e)}load(){return S(this,null,function*(){let a={};if(this.library){const s=this.__BASE_PATH__,o=this.urls.filter(e=>Ja(e)).map(e=>`${s}${e}`),n=this.urls.filter(e=>Za(e)).map(e=>`${s}${e}`);if($a(o),n.length){const e=yield za(n,this.library).catch(()=>null);e&&typeof e=="function"?a=e.call(e,this.config,...this.params):a=e||{}}}return Object.assign({},this.getEngineOptions(),a)})}getEngineOptions(){const a=["materialPath","pageBasePath","pageRouteName","remote","checkVersion","noMask","auth"];return Qa(this.config,a)}}function _s(){return es.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"})}function cs(t,a="",s="warning"){ss({title:a,message:t,type:s})}function gs(t,a){return as.alert(t,a)}export{Es as E,gs as a,_s as l,cs as n};
1
+ var T=Object.defineProperty;var p=Object.getOwnPropertySymbols;var u=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var g=(t,a,s)=>a in t?T(t,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[a]=s,_=(t,a)=>{for(var s in a||(a={}))u.call(a,s)&&g(t,s,a[s]);if(p)for(var s of p(a))I.call(a,s)&&g(t,s,a[s]);return t};var E=(t,a,s)=>g(t,typeof a!="symbol"?a+"":a,s);var S=(t,a,s)=>new Promise((o,n)=>{var e=r=>{try{i(s.next(r))}catch(l){n(l)}},c=r=>{try{i(s.throw(r))}catch(l){n(l)}},i=r=>r.done?o(r.value):Promise.resolve(r.value).then(e,c);i((s=s.apply(t,a)).next())});import{aA as d}from"./vue-fMktb-5o.js";import{X as m,a as A,s as h,y as f,f as V,c as b,r as P,Q as M,e as y,Z as R,n as D,l as N,b as B,g as K,h as k,x as L,k as x,i as w,j as H,K as G,m as W,p as v,q as Y,t as F,u as C,v as U,w as X,z as j,A as q,B as J,C as Z,D as $,E as z,F as Q,G as aa,S as sa,H as ea,I as ta,J as ra,M as na,N as ia,O as oa,_ as la,a0 as Ea,a1 as _a,a2 as ca,a3 as ga,a4 as pa,a5 as Sa,a6 as Oa,a7 as Ta,a8 as ua,a9 as Ia,aa as da,ab as ma,ac as Aa,ad as ha,ae as fa,af as Va,ag as ba,ah as Pa,ai as Ma,aj as ya,ak as Ra,al as Da,am as Na,an as Ba,ao as Ka,ap as ka,aq as La,ar as xa,as as wa,at as Ha,au as Ga,av as Wa,aw as va,ax as Ya,ay as Fa,az as Ca,o as Ua,aA as Xa,aB as ja,aC as qa,aD as Ja,aE as Za,aF as $a,aG as za,aH as Qa}from"./Editor-Dco-iMhe-DgjCtWaf.js";import{E as as,a as ss,b as es}from"./element-plus-_gYoEp33.js";import"./dayjs-CxR8wwn9.js";const ts=Object.freeze(Object.defineProperty({__proto__:null,API_METHOD_TYPES:m,ActionMenu:A,Assets:h,Binder:f,Box:V,CodeIncrementalUpdater:b,DEVTOOLS_DEP:P,DepsManager:M,Designer:y,EVENT_MODIFIERS:R,Editor:D,Engine:N,EventBinder:B,GET_TOKENS_LINK:K,HOT_KEYS_DEP:k,Icon:L,Item:x,KEYBOARD_EVENT_LIST:w,MAX_TOKENS:H,MOBILE_SIZE:G,MOUSE_EVENT_LIST:W,NAME_REGEX:v,NPM_REGISTRY_URL:Y,OpenApi:F,PAD_SIZE:C,Panel:U,REPORT_API:X,RegionType:j,RegionWrapper:q,Renderer:J,SAVE_BLOCK_FILE_FINISH:Z,SESSION_ID_KEY:$,STATE_KEY:z,SetterManager:Q,SetterView:aa,SetterWrapper:sa,Simulator:ea,Skeleton:ta,SkeletonWrapper:ra,SlotsPicker:na,State:ia,TOOL_CONFIGS:oa,Tabs:la,ToolRegistry:Ea,VERSION_REGEX:_a,VTJ_DESIGNER_VERSION:ca,VUE_DEVTOOLS_FRAME_STATE_KEY:ga,VUE_DEVTOOLS_OVERLAY_PATH:pa,VUE_DEVTOOLS_PATH:Sa,VariableBinder:Oa,Viewer:Ta,Viewport:ua,WidgetGroup:Ia,WidgetManager:da,WidgetWrapper:ma,alert:Aa,builtInDeps:ha,builtInMaterials:fa,builtInSetters:Va,builtInWidgets:ba,codeIncrementalUpdater:Pa,confirm:Ma,createSlotsPicker:ya,defaultSetter:Ra,depsManager:Da,engineKey:Na,expressionValidate:Ba,getClassProperties:Ka,loading:ka,message:La,normalizedStyle:xa,notify:wa,proxyContext:Ha,readJsonFile:Ga,regions:Wa,setterManager:va,setters:Ya,upgradeVersion:Fa,useEngine:Ca,widgetManager:Ua,widgets:Xa},Symbol.toStringTag,{value:"Module"}));class Es{constructor(a){E(this,"urls",[]);E(this,"library","");E(this,"params",[]);E(this,"__BASE_PATH__","/");this.config=a;const s=_(_(_({},qa),ts),ja),o={Vue:d,__VTJ_PRO__:s};for(const[l,O]of Object.entries(o))window[l]=O;const{extension:n,__BASE_PATH__:e="/"}=a||{},{urls:c=[],library:i,params:r=[]}=n||{};i&&(this.urls=c,this.library=i,this.params=r,this.__BASE_PATH__=e)}load(){return S(this,null,function*(){let a={};if(this.library){const s=this.__BASE_PATH__,o=this.urls.filter(e=>Ja(e)).map(e=>`${s}${e}`),n=this.urls.filter(e=>Za(e)).map(e=>`${s}${e}`);if($a(o),n.length){const e=yield za(n,this.library).catch(()=>null);e&&typeof e=="function"?a=e.call(e,this.config,...this.params):a=e||{}}}return Object.assign({},this.getEngineOptions(),a)})}getEngineOptions(){const a=["materialPath","pageBasePath","pageRouteName","remote","checkVersion","noMask","auth"];return Qa(this.config,a)}}function _s(){return es.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"})}function cs(t,a="",s="warning"){ss({title:a,message:t,type:s})}function gs(t,a){return as.alert(t,a)}export{Es as E,gs as a,_s as l,cs as n};
package/dist/index.html CHANGED
@@ -11,7 +11,7 @@
11
11
  <meta http-equiv="Expires" content="0" />
12
12
  <title>低代码设计器 - VTJ.PRO</title>
13
13
  <script>
14
- var __BUILD_TIME__ = '1782109914191';
14
+ var __BUILD_TIME__ = '1782117984700';
15
15
  (function () {
16
16
  const regex = /<!--{{(\d*)}}-->/;
17
17
  window.fetch('?t=' + Date.now()).then(async (res) => {
@@ -27,9 +27,9 @@
27
27
  });
28
28
  })();
29
29
  </script>
30
- <!--{{1782109914191}}-->
30
+ <!--{{1782117984700}}-->
31
31
 
32
- <script type="module" crossorigin src="./assets/index-BK5Af6VE.js"></script>
32
+ <script type="module" crossorigin src="./assets/index-BbRB2Up5.js"></script>
33
33
  <link rel="modulepreload" crossorigin href="./assets/vue-fMktb-5o.js">
34
34
  <link rel="modulepreload" crossorigin href="./assets/@vueuse-SvwMwBjL.js">
35
35
  <link rel="modulepreload" crossorigin href="./assets/lodash-es-BxdYFYdv.js">