@vtj/pro 0.19.12 → 0.19.13

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-BmD673F4-CBqlDFYJ.js → Editor-BsY740gM-DVLHuLqp.js} +72 -72
  14. package/dist/assets/{auth-D2L6L4gf.js → auth-Dm-5O97c.js} +1 -1
  15. package/dist/assets/{index-Bc8A2qD8.js → index-BC6NvIJq.js} +2 -2
  16. package/dist/assets/{index-CXXP1Zft.js → index-DIZ7fbNF.js} +1 -1
  17. package/dist/assets/{page-D1667bLU.js → page-B-yQEyfC.js} +1 -1
  18. package/dist/assets/{preview-86EEzezW.js → preview-C1dM6MCX.js} +1 -1
  19. package/dist/assets/{utils-DXUZ4Ebo.js → utils-CavYcqo1.js} +1 -1
  20. package/dist/index.html +3 -3
  21. package/dist/uni/assets/{index-Dde81Dbj.js → index-CE-nohKO.js} +32 -32
  22. package/dist/uni/index.html +1 -1
  23. package/package.json +11 -11
  24. /package/dist/assets/{Editor-BmD673F4-BKtLJDZB.css → Editor-BsY740gM-BKtLJDZB.css} +0 -0
@@ -1 +1 @@
1
- var x=Object.defineProperty;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var w=(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)&&w(o,t,e[t]);if(y)for(var t of y(e))U.call(e,t)&&w(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-BnQSNCX2.js";import"./vxe-Hv0pYDff.js";import{j as I,aJ as b,ac as d,aK as B,aL as E,Q as q}from"./Editor-BmD673F4-CBqlDFYJ.js";import{useRoute as v}from"./vue-router-Drd5teeV.js";import{y as C,az as f,I as R,D as k,u as l,E as $,U as g}from"./vue-wWzmtsAU.js";import{_ as j}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vueuse-Jk9KQurp.js";import"./lodash-es-BxdYFYdv.js";import"./shared-P7kalaod.js";import"./@element-plus-icons-vue-CMB1ifep.js";import"./dayjs-CxR8wwn9.js";import"./monaco-editor-Bgo-w-Z8.js";import"./axios-Cc-15rbk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-CxAZAsmx.js";import"./marked--VTVY_DP.js";const L={class:"loading"},Q=C({__name:"Auth",props:{remote:{},access:{},baseUrl:{default:"/"}},setup(o){return _(this,null,function*(){let e,t;const c=o,r=I(u(u({alert:d},b),c.access)),n=v(),p=a=>_(null,null,function*(){const h=`${c.remote||B}/api/open/user/${a}`,m=yield E(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)=>(k(),R("div",L,"正在登录中..."))})}}),S=j(Q,[["__scopeId","data-v-2cb061ca"]]),ee=C({__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)?(k(),$(l(S),{key:0,remote:l(n),access:l(p)},null,8,["remote","access"])):g("",!0)})}});export{ee as default};
1
+ var x=Object.defineProperty;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var w=(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)&&w(o,t,e[t]);if(y)for(var t of y(e))U.call(e,t)&&w(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-BnQSNCX2.js";import"./vxe-Hv0pYDff.js";import{j as I,aJ as b,ac as d,aK as B,aL as E,Q as q}from"./Editor-BsY740gM-DVLHuLqp.js";import{useRoute as v}from"./vue-router-Drd5teeV.js";import{y as C,az as f,I as R,D as k,u as l,E as $,U as g}from"./vue-wWzmtsAU.js";import{_ as j}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vueuse-Jk9KQurp.js";import"./lodash-es-BxdYFYdv.js";import"./shared-P7kalaod.js";import"./@element-plus-icons-vue-CMB1ifep.js";import"./dayjs-CxR8wwn9.js";import"./monaco-editor-Bgo-w-Z8.js";import"./axios-Cc-15rbk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-CxAZAsmx.js";import"./marked--VTVY_DP.js";const L={class:"loading"},Q=C({__name:"Auth",props:{remote:{},access:{},baseUrl:{default:"/"}},setup(o){return _(this,null,function*(){let e,t;const c=o,r=I(u(u({alert:d},b),c.access)),n=v(),p=a=>_(null,null,function*(){const h=`${c.remote||B}/api/open/user/${a}`,m=yield E(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)=>(k(),R("div",L,"正在登录中..."))})}}),S=j(Q,[["__scopeId","data-v-2cb061ca"]]),ee=C({__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)?(k(),$(l(S),{key:0,remote:l(n),access:l(p)},null,8,["remote","access"])):g("",!0)})}});export{ee as default};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-CXXP1Zft.js","./vue-router-Drd5teeV.js","./vue-wWzmtsAU.js","./@vueuse-Jk9KQurp.js","./Editor-BmD673F4-CBqlDFYJ.js","./monaco-editor-Bgo-w-Z8.js","./monaco-editor-C0wzwsn5.css","./element-plus-BnQSNCX2.js","./lodash-es-BxdYFYdv.js","./shared-P7kalaod.js","./@element-plus-icons-vue-CMB1ifep.js","./dayjs-CxR8wwn9.js","./element-plus-Bw1qTWaj.css","./axios-Cc-15rbk.js","./vxe-Hv0pYDff.js","./vxe-BAb1d5vW.css","./html2canvas-DNSjNh3_.js","./mockjs-CxAZAsmx.js","./marked--VTVY_DP.js","./Editor-BmD673F4-BKtLJDZB.css","./utils-DXUZ4Ebo.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-Br68Req3.css","./preview-86EEzezW.js","./page-D1667bLU.js","./uni-page-551_wqCE.js","./uni-page-Diqmj53r.css","./auth-D2L6L4gf.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-wWzmtsAU.js";import{z as g,c as y}from"./element-plus-BnQSNCX2.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-Drd5teeV.js";import"./@vueuse-Jk9KQurp.js";import"./lodash-es-BxdYFYdv.js";import"./shared-P7kalaod.js";import"./@element-plus-icons-vue-CMB1ifep.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-CXXP1Zft.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-86EEzezW.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-D1667bLU.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-551_wqCE.js"),__vite__mapDeps([25,1,2,21,26]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>r(()=>import("./auth-D2L6L4gf.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-DIZ7fbNF.js","./vue-router-Drd5teeV.js","./vue-wWzmtsAU.js","./@vueuse-Jk9KQurp.js","./Editor-BsY740gM-DVLHuLqp.js","./monaco-editor-Bgo-w-Z8.js","./monaco-editor-C0wzwsn5.css","./element-plus-BnQSNCX2.js","./lodash-es-BxdYFYdv.js","./shared-P7kalaod.js","./@element-plus-icons-vue-CMB1ifep.js","./dayjs-CxR8wwn9.js","./element-plus-Bw1qTWaj.css","./axios-Cc-15rbk.js","./vxe-Hv0pYDff.js","./vxe-BAb1d5vW.css","./html2canvas-DNSjNh3_.js","./mockjs-CxAZAsmx.js","./marked--VTVY_DP.js","./Editor-BsY740gM-BKtLJDZB.css","./utils-CavYcqo1.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-Br68Req3.css","./preview-C1dM6MCX.js","./page-B-yQEyfC.js","./uni-page-551_wqCE.js","./uni-page-Diqmj53r.css","./auth-Dm-5O97c.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-wWzmtsAU.js";import{z as g,c as y}from"./element-plus-BnQSNCX2.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-Drd5teeV.js";import"./@vueuse-Jk9KQurp.js";import"./lodash-es-BxdYFYdv.js";import"./shared-P7kalaod.js";import"./@element-plus-icons-vue-CMB1ifep.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-DIZ7fbNF.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-C1dM6MCX.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-B-yQEyfC.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-551_wqCE.js"),__vite__mapDeps([25,1,2,21,26]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>r(()=>import("./auth-Dm-5O97c.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 I=Object.defineProperty;var P=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var A=(n,e,t)=>e in n?I(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,$=(n,e)=>{for(var t in e||(e={}))N.call(e,t)&&A(n,t,e[t]);if(P)for(var t of P(e))Q.call(e,t)&&A(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 V}from"./vue-router-Drd5teeV.js";import{y as W}from"./@vueuse-Jk9KQurp.js";import{Q as D,z as J,F as U,j as G,u as C,A as K,d as E}from"./Editor-BmD673F4-CBqlDFYJ.js";import"./element-plus-BnQSNCX2.js";import"./vxe-Hv0pYDff.js";import{E as L,a as v,n as S,l as M}from"./utils-DXUZ4Ebo.js";import{y as O,az as B,e as X,I as Y,r as Z,D as ee}from"./vue-wWzmtsAU.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-CMB1ifep.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-CxAZAsmx.js";import"./marked--VTVY_DP.js";import"./lodash-es-BxdYFYdv.js";import"./shared-P7kalaod.js";const ae=O({__name:"index",setup(n){return d(this,null,function*(){let e,t;const _=V(),r=Z(),l=new D(J(S)),s=([e,t]=B(()=>l.getExtension().catch(()=>null)),e=yield e,t(),e||{}),i=s?([e,t]=B(()=>new L(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:o="/",history:p="hash",base:h="/",pageRouteName:w="page",remote:g,auth:F,checkVersion:k=!0,enhance:j,platform:z="web"}=s||{},R=U({loading:M,notify:S,useTitle:W,alert:v,access:s==null?void 0:s.access,settings:{proxyPath:`${g}/api/proxy`}}),T=G($({alert:v},s==null?void 0:s.__ACCESS__)),b=()=>p==="hash",q=a=>a==="/"?"":(a.startsWith("/")&&(a=a.substring(1)),a.endsWith("/")||(a=a+"/"),a);C.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 H=s.pageBasePath?`/${w}`:"",x=`${q(h)}${u?`pages${H}`:w}/${f.id}`;m=b()?`${m}#/${x}`:`${m}${x}`}window.open(m,"VTJProject")}}}),C.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 K($({container:r,service:l,materialPath:o,pageBasePath:h==="/"?"":h,adapter:R,access:T,remote:g,auth:F,checkVersion:k,enhance:j,project:{platform:z}},i));return y.ready(()=>d(null,null,function*(){yield E(300),y.openFile(_.query.id)})),X(()=>_.query.id,a=>d(null,null,function*(){yield E(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 I=Object.defineProperty;var P=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var A=(n,e,t)=>e in n?I(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,$=(n,e)=>{for(var t in e||(e={}))N.call(e,t)&&A(n,t,e[t]);if(P)for(var t of P(e))Q.call(e,t)&&A(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 V}from"./vue-router-Drd5teeV.js";import{y as W}from"./@vueuse-Jk9KQurp.js";import{Q as D,z as J,F as U,j as G,u as C,A as K,d as E}from"./Editor-BsY740gM-DVLHuLqp.js";import"./element-plus-BnQSNCX2.js";import"./vxe-Hv0pYDff.js";import{E as L,a as v,n as S,l as M}from"./utils-CavYcqo1.js";import{y as O,az as B,e as X,I as Y,r as Z,D as ee}from"./vue-wWzmtsAU.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-CMB1ifep.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-CxAZAsmx.js";import"./marked--VTVY_DP.js";import"./lodash-es-BxdYFYdv.js";import"./shared-P7kalaod.js";const ae=O({__name:"index",setup(n){return d(this,null,function*(){let e,t;const _=V(),r=Z(),l=new D(J(S)),s=([e,t]=B(()=>l.getExtension().catch(()=>null)),e=yield e,t(),e||{}),i=s?([e,t]=B(()=>new L(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:o="/",history:p="hash",base:h="/",pageRouteName:w="page",remote:g,auth:F,checkVersion:k=!0,enhance:j,platform:z="web"}=s||{},R=U({loading:M,notify:S,useTitle:W,alert:v,access:s==null?void 0:s.access,settings:{proxyPath:`${g}/api/proxy`}}),T=G($({alert:v},s==null?void 0:s.__ACCESS__)),b=()=>p==="hash",q=a=>a==="/"?"":(a.startsWith("/")&&(a=a.substring(1)),a.endsWith("/")||(a=a+"/"),a);C.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 H=s.pageBasePath?`/${w}`:"",x=`${q(h)}${u?`pages${H}`:w}/${f.id}`;m=b()?`${m}#/${x}`:`${m}${x}`}window.open(m,"VTJProject")}}}),C.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 K($({container:r,service:l,materialPath:o,pageBasePath:h==="/"?"":h,adapter:R,access:T,remote:g,auth:F,checkVersion:k,enhance:j,project:{platform:z}},i));return y.ready(()=>d(null,null,function*(){yield E(300),y.openFile(_.query.id)})),X(()=>_.query.id,a=>d(null,null,function*(){yield E(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-Drd5teeV.js","./vue-wWzmtsAU.js"])))=>i.map(i=>d[i]);
2
- var R=Object.defineProperty;var E=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var C=(o,t,e)=>t in o?R(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,y=(o,t)=>{for(var e in t||(t={}))h.call(t,e)&&C(o,e,t[e]);if(E)for(var e of E(t))A.call(t,e)&&C(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 g}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as P}from"./vue-router-Drd5teeV.js";import"./element-plus-BnQSNCX2.js";import"./vxe-Hv0pYDff.js";import{Q as B,z as T,F as V,B as D,T as O,Y as k,O as z}from"./Editor-BmD673F4-CBqlDFYJ.js";import{a as I,n as w,l as S,E as F}from"./utils-DXUZ4Ebo.js";import{y as L}from"./@vueuse-Jk9KQurp.js";import{y as Q,az as x,e as Y,E as H,S as N,U,r as b,D as j,g as q}from"./vue-wWzmtsAU.js";import"./lodash-es-BxdYFYdv.js";import"./shared-P7kalaod.js";import"./@element-plus-icons-vue-CMB1ifep.js";import"./dayjs-CxR8wwn9.js";import"./axios-Cc-15rbk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-CxAZAsmx.js";import"./marked--VTVY_DP.js";const mt=Q({__name:"page",setup(o){return c(this,null,function*(){let t,e;const _=new B(T(w)),s=([t,e]=x(()=>_.getExtension().catch(()=>null)),t=yield t,e(),t),u=V({loading:S,notify:w,useTitle:L,alert:I,access:s==null?void 0:s.access}),d=s?([t,e]=x(()=>new F(s).load()),t=yield t,e(),t):{},{__BASE_PATH__:p="/"}=s||{},{provider:r,onReady:i}=D({mode:O.Runtime,service:_,materialPath:p,adapter:y(y({},u),d.adapter),dependencies:{Vue:()=>g(()=>import("./vue-wWzmtsAU.js").then(a=>a.aA),[],import.meta.url),VueRouter:()=>g(()=>import("./vue-router-Drd5teeV.js"),__vite__mapDeps([0,1]),import.meta.url)}}),l=P(),f=b(),n=q(),v=a=>c(null,null,function*(){f.value=yield r.getRenderComponent(l.params.id.toString(),m=>{z(a,l,m)})});return i(()=>c(null,null,function*(){const a=n==null?void 0:n.appContext.app;a&&(a.use(k),a.use(r),v(a))})),Y(()=>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?(j(),H(N(f.value),{key:0})):U("",!0)})}});export{mt as default};
2
+ var R=Object.defineProperty;var E=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var C=(o,t,e)=>t in o?R(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,y=(o,t)=>{for(var e in t||(t={}))h.call(t,e)&&C(o,e,t[e]);if(E)for(var e of E(t))A.call(t,e)&&C(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 g}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as P}from"./vue-router-Drd5teeV.js";import"./element-plus-BnQSNCX2.js";import"./vxe-Hv0pYDff.js";import{Q as B,z as T,F as V,B as D,T as O,Y as k,O as z}from"./Editor-BsY740gM-DVLHuLqp.js";import{a as I,n as w,l as S,E as F}from"./utils-CavYcqo1.js";import{y as L}from"./@vueuse-Jk9KQurp.js";import{y as Q,az as x,e as Y,E as H,S as N,U,r as b,D as j,g as q}from"./vue-wWzmtsAU.js";import"./lodash-es-BxdYFYdv.js";import"./shared-P7kalaod.js";import"./@element-plus-icons-vue-CMB1ifep.js";import"./dayjs-CxR8wwn9.js";import"./axios-Cc-15rbk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-CxAZAsmx.js";import"./marked--VTVY_DP.js";const mt=Q({__name:"page",setup(o){return c(this,null,function*(){let t,e;const _=new B(T(w)),s=([t,e]=x(()=>_.getExtension().catch(()=>null)),t=yield t,e(),t),u=V({loading:S,notify:w,useTitle:L,alert:I,access:s==null?void 0:s.access}),d=s?([t,e]=x(()=>new F(s).load()),t=yield t,e(),t):{},{__BASE_PATH__:p="/"}=s||{},{provider:r,onReady:i}=D({mode:O.Runtime,service:_,materialPath:p,adapter:y(y({},u),d.adapter),dependencies:{Vue:()=>g(()=>import("./vue-wWzmtsAU.js").then(a=>a.aA),[],import.meta.url),VueRouter:()=>g(()=>import("./vue-router-Drd5teeV.js"),__vite__mapDeps([0,1]),import.meta.url)}}),l=P(),f=b(),n=q(),v=a=>c(null,null,function*(){f.value=yield r.getRenderComponent(l.params.id.toString(),m=>{z(a,l,m)})});return i(()=>c(null,null,function*(){const a=n==null?void 0:n.appContext.app;a&&(a.use(k),a.use(r),v(a))})),Y(()=>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?(j(),H(N(f.value),{key:0})):U("",!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-Drd5teeV.js","./vue-wWzmtsAU.js"])))=>i.map(i=>d[i]);
2
- var x=Object.defineProperty;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,g=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))g.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 w}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as B}from"./vue-router-Drd5teeV.js";import"./element-plus-BnQSNCX2.js";import"./vxe-Hv0pYDff.js";import{Q as P,z as T,F as V,B as D,T as O,W as k,Y as z,O as I}from"./Editor-BmD673F4-CBqlDFYJ.js";import{a as S,n as h,l as F,E as L}from"./utils-DXUZ4Ebo.js";import{y as Q}from"./@vueuse-Jk9KQurp.js";import{y as W,az as C,E as Y,S as H,U as N,r as U,D as b,g as j}from"./vue-wWzmtsAU.js";import"./lodash-es-BxdYFYdv.js";import"./shared-P7kalaod.js";import"./@element-plus-icons-vue-CMB1ifep.js";import"./dayjs-CxR8wwn9.js";import"./axios-Cc-15rbk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-CxAZAsmx.js";import"./marked--VTVY_DP.js";const me=W({__name:"preview",setup(o){return f(this,null,function*(){let e,t;const c=new P(T(h)),r=([e,t]=C(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e||{}),_=V({loading:F,notify:h,useTitle:Q,alert:S,access:r==null?void 0:r.access}),s=r?([e,t]=C(()=>new L(r).load()),e=yield e,t(),e):{},{__BASE_PATH__:i="/"}=r||{},{provider:a,onReady:p}=D({mode:O.Runtime,service:c,materialPath:i,adapter:d(d({},_),s.adapter),dependencies:{Vue:()=>w(()=>import("./vue-wWzmtsAU.js").then(m=>m.aA),[],import.meta.url),VueRouter:()=>w(()=>import("./vue-router-Drd5teeV.js"),__vite__mapDeps([0,1]),import.meta.url)}}),v=B(),u=U(),l=j();return p(()=>f(null,null,function*(){const m=yield k(r.enhance),n=l==null?void 0:l.appContext.app;n&&(s.install&&s.install(n),m&&n.use(m,a),n.use(z),n.use(a),u.value=yield a.getRenderComponent(v.params.id.toString(),R=>{I(n,v,R)}))})),(m,n)=>u.value?(b(),Y(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,g=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))g.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 w}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as B}from"./vue-router-Drd5teeV.js";import"./element-plus-BnQSNCX2.js";import"./vxe-Hv0pYDff.js";import{Q as P,z as T,F as V,B as D,T as O,W as k,Y as z,O as I}from"./Editor-BsY740gM-DVLHuLqp.js";import{a as S,n as h,l as F,E as L}from"./utils-CavYcqo1.js";import{y as Q}from"./@vueuse-Jk9KQurp.js";import{y as W,az as C,E as Y,S as H,U as N,r as U,D as b,g as j}from"./vue-wWzmtsAU.js";import"./lodash-es-BxdYFYdv.js";import"./shared-P7kalaod.js";import"./@element-plus-icons-vue-CMB1ifep.js";import"./dayjs-CxR8wwn9.js";import"./axios-Cc-15rbk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-CxAZAsmx.js";import"./marked--VTVY_DP.js";const me=W({__name:"preview",setup(o){return f(this,null,function*(){let e,t;const c=new P(T(h)),r=([e,t]=C(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e||{}),_=V({loading:F,notify:h,useTitle:Q,alert:S,access:r==null?void 0:r.access}),s=r?([e,t]=C(()=>new L(r).load()),e=yield e,t(),e):{},{__BASE_PATH__:i="/"}=r||{},{provider:a,onReady:p}=D({mode:O.Runtime,service:c,materialPath:i,adapter:d(d({},_),s.adapter),dependencies:{Vue:()=>w(()=>import("./vue-wWzmtsAU.js").then(m=>m.aA),[],import.meta.url),VueRouter:()=>w(()=>import("./vue-router-Drd5teeV.js"),__vite__mapDeps([0,1]),import.meta.url)}}),v=B(),u=U(),l=j();return p(()=>f(null,null,function*(){const m=yield k(r.enhance),n=l==null?void 0:l.appContext.app;n&&(s.install&&s.install(n),m&&n.use(m,a),n.use(z),n.use(a),u.value=yield a.getRenderComponent(v.params.id.toString(),R=>{I(n,v,R)}))})),(m,n)=>u.value?(b(),Y(H(u.value),{key:0})):N("",!0)})}});export{me as default};
@@ -1 +1 @@
1
- var u=Object.defineProperty;var p=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var g=(t,a,s)=>a in t?u(t,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[a]=s,l=(t,a)=>{for(var s in a||(a={}))O.call(a,s)&&g(t,s,a[s]);if(p)for(var s of p(a))T.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(_){n(_)}},c=r=>{try{i(s.throw(r))}catch(_){n(_)}},i=r=>r.done?o(r.value):Promise.resolve(r.value).then(e,c);i((s=s.apply(t,a)).next())});import{aA as h}from"./vue-wWzmtsAU.js";import{h as d,a as A,x as m,K as b,R as f,b as V,S as y,c as P,_ as R,v as M,w as D,A as L,e as N,f as B,g as k,X as w,U as x,i as H,k as K,l as v,m as G,n as U,o as C,p as W,q as Y,M as z,y as F,E as $,t as j,r as X,V as J,s as q,C as Z,D as Q,G as aa,$ as sa,H as ea,I as ta,J as ra,L as na,N as ia,P as oa,Z as _a,a0 as Ea,a1 as la,a2 as ca,a3 as ga,a4 as pa,a5 as Sa,a6 as Ia,a7 as ua,a8 as Oa,a9 as Ta,aa as ha,ab as da,ac as Aa,ad as ma,ae as ba,af as fa,ag as Va,ah as ya,ai as Pa,aj as Ra,ak as Ma,al as Da,am as La,an as Na,ao as Ba,ap as ka,aq as wa,ar as xa,as as Ha,at as Ka,au as va,av as Ga,aw as Ua,ax as Ca,ay as Wa,az as Ya,aA as za,u as Fa,aB as $a,aC as ja,aD as Xa,aE as Ja,aF as qa,aG as Za,aH as Qa,aI as as}from"./Editor-BmD673F4-CBqlDFYJ.js";import{E as ss,a as es,b as ts}from"./element-plus-BnQSNCX2.js";import"./dayjs-CxR8wwn9.js";const rs=Object.freeze(Object.defineProperty({__proto__:null,API_METHOD_TYPES:d,ActionMenu:A,Assets:m,Binder:b,Box:f,CodeIncrementalUpdater:V,DEVTOOLS_DEP:y,DepsManager:P,Designer:R,EVENT_MODIFIERS:M,Editor:D,Engine:L,EventBinder:N,GET_TOKENS_LINK:B,HOT_KEYS_DEP:k,Icon:w,Item:x,KEYBOARD_EVENT_LIST:H,MAX_TOKENS:K,MOBILE_SIZE:v,MOUSE_EVENT_LIST:G,NAME_REGEX:U,NPM_REGISTRY_URL:C,OpenApi:W,PAD_SIZE:Y,Panel:z,REPORT_API:F,RegionType:$,RegionWrapper:j,Renderer:X,SAVE_BLOCK_FILE_FINISH:J,SESSION_ID_KEY:q,STATE_KEY:Z,SetterManager:Q,SetterView:aa,SetterWrapper:sa,Simulator:ea,Skeleton:ta,SkeletonWrapper:ra,SlotsPicker:na,State:ia,TOOL_CONFIGS:oa,Tabs:_a,ToolRegistry:Ea,VERSION_REGEX:la,VTJ_DESIGNER_VERSION:ca,VUE_DEVTOOLS_FRAME_STATE_KEY:ga,VUE_DEVTOOLS_OVERLAY_PATH:pa,VUE_DEVTOOLS_PATH:Sa,VariableBinder:Ia,Viewer:ua,Viewport:Oa,WidgetGroup:Ta,WidgetManager:ha,WidgetWrapper:da,alert:Aa,builtInDeps:ma,builtInMaterials:ba,builtInSetters:fa,builtInWidgets:Va,codeIncrementalUpdater:ya,confirm:Pa,createSlotsPicker:Ra,defaultSetter:Ma,depsManager:Da,engineKey:La,expressionValidate:Na,getClassProperties:Ba,getComposableNames:ka,loading:wa,message:xa,normalizedStyle:Ha,notify:Ka,proxyContext:va,readJsonFile:Ga,regions:Ua,setterManager:Ca,setters:Wa,upgradeVersion:Ya,useEngine:za,widgetManager:Fa,widgets:$a},Symbol.toStringTag,{value:"Module"}));class ls{constructor(a){E(this,"urls",[]);E(this,"library","");E(this,"params",[]);E(this,"__BASE_PATH__","/");this.config=a;const s=l(l(l({},Xa),rs),ja),o={Vue:h,__VTJ_PRO__:s};for(const[_,I]of Object.entries(o))window[_]=I;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=>qa(e)).map(e=>`${s}${e}`);if(Za(o),n.length){const e=yield Qa(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 as(this.config,a)}}function cs(){return ts.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"})}function gs(t,a="",s="warning"){es({title:a,message:t,type:s})}function ps(t,a){return ss.alert(t,a)}export{ls as E,ps as a,cs as l,gs as n};
1
+ var u=Object.defineProperty;var p=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var g=(t,a,s)=>a in t?u(t,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[a]=s,l=(t,a)=>{for(var s in a||(a={}))O.call(a,s)&&g(t,s,a[s]);if(p)for(var s of p(a))T.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(_){n(_)}},c=r=>{try{i(s.throw(r))}catch(_){n(_)}},i=r=>r.done?o(r.value):Promise.resolve(r.value).then(e,c);i((s=s.apply(t,a)).next())});import{aA as h}from"./vue-wWzmtsAU.js";import{h as d,a as A,x as m,K as b,R as f,b as V,S as y,c as P,_ as R,v as M,w as D,A as L,e as N,f as B,g as k,X as w,U as x,i as K,k as H,l as v,m as G,n as U,o as C,p as Y,q as W,M as z,y as F,E as $,t as j,r as X,V as J,s as q,C as Z,D as Q,G as aa,$ as sa,H as ea,I as ta,J as ra,L as na,N as ia,P as oa,Z as _a,a0 as Ea,a1 as la,a2 as ca,a3 as ga,a4 as pa,a5 as Sa,a6 as Ia,a7 as ua,a8 as Oa,a9 as Ta,aa as ha,ab as da,ac as Aa,ad as ma,ae as ba,af as fa,ag as Va,ah as ya,ai as Pa,aj as Ra,ak as Ma,al as Da,am as La,an as Na,ao as Ba,ap as ka,aq as wa,ar as xa,as as Ka,at as Ha,au as va,av as Ga,aw as Ua,ax as Ca,ay as Ya,az as Wa,aA as za,u as Fa,aB as $a,aC as ja,aD as Xa,aE as Ja,aF as qa,aG as Za,aH as Qa,aI as as}from"./Editor-BsY740gM-DVLHuLqp.js";import{E as ss,a as es,b as ts}from"./element-plus-BnQSNCX2.js";import"./dayjs-CxR8wwn9.js";const rs=Object.freeze(Object.defineProperty({__proto__:null,API_METHOD_TYPES:d,ActionMenu:A,Assets:m,Binder:b,Box:f,CodeIncrementalUpdater:V,DEVTOOLS_DEP:y,DepsManager:P,Designer:R,EVENT_MODIFIERS:M,Editor:D,Engine:L,EventBinder:N,GET_TOKENS_LINK:B,HOT_KEYS_DEP:k,Icon:w,Item:x,KEYBOARD_EVENT_LIST:K,MAX_TOKENS:H,MOBILE_SIZE:v,MOUSE_EVENT_LIST:G,NAME_REGEX:U,NPM_REGISTRY_URL:C,OpenApi:Y,PAD_SIZE:W,Panel:z,REPORT_API:F,RegionType:$,RegionWrapper:j,Renderer:X,SAVE_BLOCK_FILE_FINISH:J,SESSION_ID_KEY:q,STATE_KEY:Z,SetterManager:Q,SetterView:aa,SetterWrapper:sa,Simulator:ea,Skeleton:ta,SkeletonWrapper:ra,SlotsPicker:na,State:ia,TOOL_CONFIGS:oa,Tabs:_a,ToolRegistry:Ea,VERSION_REGEX:la,VTJ_DESIGNER_VERSION:ca,VUE_DEVTOOLS_FRAME_STATE_KEY:ga,VUE_DEVTOOLS_OVERLAY_PATH:pa,VUE_DEVTOOLS_PATH:Sa,VariableBinder:Ia,Viewer:ua,Viewport:Oa,WidgetGroup:Ta,WidgetManager:ha,WidgetWrapper:da,alert:Aa,builtInDeps:ma,builtInMaterials:ba,builtInSetters:fa,builtInWidgets:Va,codeIncrementalUpdater:ya,confirm:Pa,createSlotsPicker:Ra,defaultSetter:Ma,depsManager:Da,engineKey:La,expressionValidate:Na,getClassProperties:Ba,getComposableNames:ka,loading:wa,message:xa,normalizedStyle:Ka,notify:Ha,proxyContext:va,readJsonFile:Ga,regions:Ua,setterManager:Ca,setters:Ya,upgradeVersion:Wa,useEngine:za,widgetManager:Fa,widgets:$a},Symbol.toStringTag,{value:"Module"}));class ls{constructor(a){E(this,"urls",[]);E(this,"library","");E(this,"params",[]);E(this,"__BASE_PATH__","/");this.config=a;const s=l(l(l({},Xa),rs),ja),o={Vue:h,__VTJ_PRO__:s};for(const[_,I]of Object.entries(o))window[_]=I;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=>qa(e)).map(e=>`${s}${e}`);if(Za(o),n.length){const e=yield Qa(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 as(this.config,a)}}function cs(){return ts.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"})}function gs(t,a="",s="warning"){es({title:a,message:t,type:s})}function ps(t,a){return ss.alert(t,a)}export{ls as E,ps as a,cs as l,gs 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__ = '1787027369149';
14
+ var __BUILD_TIME__ = '1787100387421';
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
- <!--{{1787027369149}}-->
30
+ <!--{{1787100387421}}-->
31
31
 
32
- <script type="module" crossorigin src="./assets/index-Bc8A2qD8.js"></script>
32
+ <script type="module" crossorigin src="./assets/index-BC6NvIJq.js"></script>
33
33
  <link rel="modulepreload" crossorigin href="./assets/vue-wWzmtsAU.js">
34
34
  <link rel="modulepreload" crossorigin href="./assets/@vueuse-Jk9KQurp.js">
35
35
  <link rel="modulepreload" crossorigin href="./assets/lodash-es-BxdYFYdv.js">