@vtj/pro 0.17.6 → 0.17.8

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 (33) hide show
  1. package/README.md +2 -2
  2. package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
  3. package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
  4. package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
  5. package/dist/@vtj/materials/assets/icons/index.umd.js +2 -2
  6. package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
  7. package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
  8. package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
  9. package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
  10. package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
  11. package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
  12. package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
  13. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
  14. package/dist/assets/Editor-CPtl6CLF-CZK-iRjd.js +546 -0
  15. package/dist/assets/auth-DPcwTwML.js +1 -0
  16. package/dist/assets/{index-th3c9OdM.js → index-B4KQg9YW.js} +1 -1
  17. package/dist/assets/{index-BuGNkP-C.js → index-DoeCvv0h.js} +2 -2
  18. package/dist/assets/page-DC0UpU2I.js +2 -0
  19. package/dist/assets/preview-BPqKBjpN.js +2 -0
  20. package/dist/assets/utils-BjOPfXIU.js +1 -0
  21. package/dist/index.html +3 -3
  22. package/dist/uni/assets/{@dcloudio-uni-h5-vue-BmOkhsCk.js → @dcloudio-uni-h5-vue-CKVTfNUF.js} +2 -2
  23. package/dist/uni/assets/index-n3NvAQNA.js +91 -0
  24. package/dist/uni/assets/{vue-router-BaL-Hp_b.js → vue-router-BuyipnGj.js} +1 -1
  25. package/dist/uni/index.html +3 -3
  26. package/package.json +12 -12
  27. package/dist/assets/Editor-C3o0jtM2-SS6YQFnK.js +0 -538
  28. package/dist/assets/auth-MwmnBWEv.js +0 -1
  29. package/dist/assets/page-DfQNNxIl.js +0 -2
  30. package/dist/assets/preview-D6c64CQx.js +0 -2
  31. package/dist/assets/utils-C71Ycgsp.js +0 -1
  32. package/dist/uni/assets/index-BT50bWB7.js +0 -83
  33. /package/dist/assets/{Editor-C3o0jtM2-NMmAvvAr.css → Editor-CPtl6CLF-NMmAvvAr.css} +0 -0
@@ -0,0 +1 @@
1
+ var x=Object.defineProperty;var h=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,U=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(h)for(var t of h(e))U.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-Bgelixwu.js";import"./vxe-C7ZzhQxY.js";import{k as I,aF as b,a9 as d,aG as v,aH as E,L as q}from"./Editor-CPtl6CLF-CZK-iRjd.js";import{useRoute as B}from"./vue-router-B2eGcVGj.js";import{y as w,az as f,I as L,D as C,u as l,E as R,U as $}from"./vue-BaPf1eHv.js";import{_ as g}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vueuse-w7qmHU3H.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";import"./@element-plus-icons-vue-CXRJnQYo.js";import"./dayjs-CxR8wwn9.js";import"./monaco-editor-Bgo-w-Z8.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-C_1w07tn.js";import"./marked--VTVY_DP.js";const S={class:"loading"},z=w({__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=B(),p=a=>_(null,null,function*(){const y=`${c.remote||v}/api/open/user/${a}`,m=yield E(y).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,y)=>(C(),L("div",S,"正在登录中..."))})}}),D=g(z,[["__scopeId","data-v-2cb061ca"]]),Y=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(),R(l(D),{key:0,remote:l(n),access:l(p)},null,8,["remote","access"])):$("",!0)})}});export{Y as default};
@@ -1 +1 @@
1
- var I=Object.defineProperty;var P=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var B=(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)&&B(n,t,e[t]);if(P)for(var t of P(e))V.call(e,t)&&B(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 W}from"./vue-router-B2eGcVGj.js";import{y as j}from"./@vueuse-w7qmHU3H.js";import{Q as z,G as D,B as J,q as O,o as C,a as U,d as E}from"./Editor-C3o0jtM2-SS6YQFnK.js";import"./element-plus-Bgelixwu.js";import"./vxe-C7ZzhQxY.js";import{E as K,a as v,n as S,l as L}from"./utils-C71Ycgsp.js";import{y as M,az as A,e as X,I as Y,r as Z,D as ee}from"./vue-BaPf1eHv.js";import{_ as te}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./monaco-editor-Bgo-w-Z8.js";import"./dayjs-CxR8wwn9.js";import"./@element-plus-icons-vue-CXRJnQYo.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-C_1w07tn.js";import"./marked--VTVY_DP.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";const ae=M({__name:"index",setup(n){return d(this,null,function*(){let e,t;const _=W(),r=Z(),l=new z(D(S)),s=([e,t]=A(()=>l.getExtension().catch(()=>null)),e=yield e,t(),e||{}),i=s?([e,t]=A(()=>new K(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:o="/",history:p="hash",base:h="/",pageRouteName:w="page",remote:g,auth:k,checkVersion:q=!0,enhance:F,platform:Q="web"}=s||{},R=J({loading:L,notify:S,useTitle:j,alert:v,access:s==null?void 0:s.access,settings:{proxyPath:`${g}/api/proxy`}}),T=O($({alert:v},s==null?void 0:s.__ACCESS__)),b=()=>p==="hash",G=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=`${G(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 U($({container:r,service:l,materialPath:o,pageBasePath:h==="/"?"":h,adapter:R,access:T,remote:g,auth:k,checkVersion:q,enhance:F,project:{platform:Q}},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))})}}),ge=te(ae,[["__scopeId","data-v-f41f19f5"]]);export{ge as default};
1
+ var L=Object.defineProperty;var E=Object.getOwnPropertySymbols;var Q=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var P=(n,e,t)=>e in n?L(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,$=(n,e)=>{for(var t in e||(e={}))Q.call(e,t)&&P(n,t,e[t]);if(E)for(var t of E(e))V.call(e,t)&&P(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 W}from"./vue-router-B2eGcVGj.js";import{y as j}from"./@vueuse-w7qmHU3H.js";import{L as z,N as D,E as J,k as O,o as C,Q as U,d as k}from"./Editor-CPtl6CLF-CZK-iRjd.js";import"./element-plus-Bgelixwu.js";import"./vxe-C7ZzhQxY.js";import{E as G,a as v,n as S,l as K}from"./utils-BjOPfXIU.js";import{y as M,az as A,e as X,I as Y,r as Z,D as ee}from"./vue-BaPf1eHv.js";import{_ as te}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./monaco-editor-Bgo-w-Z8.js";import"./dayjs-CxR8wwn9.js";import"./@element-plus-icons-vue-CXRJnQYo.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-C_1w07tn.js";import"./marked--VTVY_DP.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";const ae=M({__name:"index",setup(n){return d(this,null,function*(){let e,t;const _=W(),r=Z(),l=new z(D(S)),s=([e,t]=A(()=>l.getExtension().catch(()=>null)),e=yield e,t(),e||{}),i=s?([e,t]=A(()=>new G(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:o="/",history:p="hash",base:h="/",pageRouteName:w="page",remote:g,auth:B,checkVersion:N=!0,enhance:F,platform:R="web"}=s||{},T=J({loading:K,notify:S,useTitle:j,alert:v,access:s==null?void 0:s.access,settings:{proxyPath:`${g}/api/proxy`}}),b=O($({alert:v},s==null?void 0:s.__ACCESS__)),q=()=>p==="hash",H=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 I=s.pageBasePath?`/${w}`:"",x=`${H(h)}${u?`pages${I}`:w}/${f.id}`;m=q()?`${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 U($({container:r,service:l,materialPath:o,pageBasePath:h==="/"?"":h,adapter:T,access:b,remote:g,auth:B,checkVersion:N,enhance:F,project:{platform:R}},i));return y.ready(()=>d(null,null,function*(){yield k(300),y.openFile(_.query.id)})),X(()=>_.query.id,a=>d(null,null,function*(){yield k(300),y.openFile(a)})),(a,u)=>(ee(),Y("div",{class:"designer",ref_key:"container",ref:r},null,512))})}}),ge=te(ae,[["__scopeId","data-v-f41f19f5"]]);export{ge as default};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-th3c9OdM.js","./vue-router-B2eGcVGj.js","./vue-BaPf1eHv.js","./@vueuse-w7qmHU3H.js","./Editor-C3o0jtM2-SS6YQFnK.js","./monaco-editor-Bgo-w-Z8.js","./monaco-editor-C0wzwsn5.css","./element-plus-Bgelixwu.js","./lodash-es-BxdYFYdv.js","./shared-Bc0G8KpM.js","./@element-plus-icons-vue-CXRJnQYo.js","./dayjs-CxR8wwn9.js","./element-plus-Bw1qTWaj.css","./vxe-C7ZzhQxY.js","./vxe-BAb1d5vW.css","./html2canvas-DNSjNh3_.js","./mockjs-C_1w07tn.js","./marked--VTVY_DP.js","./Editor-C3o0jtM2-NMmAvvAr.css","./utils-C71Ycgsp.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-Br68Req3.css","./preview-D6c64CQx.js","./page-DfQNNxIl.js","./uni-page-BrivKbVY.js","./uni-page-Diqmj53r.css","./auth-MwmnBWEv.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-BaPf1eHv.js";import{z as g,c as y}from"./element-plus-Bgelixwu.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-B2eGcVGj.js";import"./@vueuse-w7qmHU3H.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";import"./@element-plus-icons-vue-CXRJnQYo.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-th3c9OdM.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]),import.meta.url)},{path:"/preview/:id",name:"preview",component:()=>r(()=>import("./preview-D6c64CQx.js"),__vite__mapDeps([22,5,6,1,2,7,3,8,9,10,11,12,13,14,4,15,16,17,18,19]),import.meta.url)},{path:"/page/:id",name:"page",component:()=>r(()=>import("./page-DfQNNxIl.js"),__vite__mapDeps([23,5,6,1,2,7,3,8,9,10,11,12,13,14,4,15,16,17,18,19]),import.meta.url),meta:{pure:!0}},{path:"/pages/:id",name:"pages",component:()=>r(()=>import("./uni-page-BrivKbVY.js"),__vite__mapDeps([24,1,2,20,25]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>r(()=>import("./auth-MwmnBWEv.js"),__vite__mapDeps([26,7,3,2,8,9,10,11,12,13,14,4,5,6,1,15,16,17,18,20]),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-B4KQg9YW.js","./vue-router-B2eGcVGj.js","./vue-BaPf1eHv.js","./@vueuse-w7qmHU3H.js","./Editor-CPtl6CLF-CZK-iRjd.js","./monaco-editor-Bgo-w-Z8.js","./monaco-editor-C0wzwsn5.css","./element-plus-Bgelixwu.js","./lodash-es-BxdYFYdv.js","./shared-Bc0G8KpM.js","./@element-plus-icons-vue-CXRJnQYo.js","./dayjs-CxR8wwn9.js","./element-plus-Bw1qTWaj.css","./vxe-C7ZzhQxY.js","./vxe-BAb1d5vW.css","./html2canvas-DNSjNh3_.js","./mockjs-C_1w07tn.js","./marked--VTVY_DP.js","./Editor-CPtl6CLF-NMmAvvAr.css","./utils-BjOPfXIU.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-Br68Req3.css","./preview-BPqKBjpN.js","./page-DC0UpU2I.js","./uni-page-BrivKbVY.js","./uni-page-Diqmj53r.css","./auth-DPcwTwML.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-BaPf1eHv.js";import{z as g,c as y}from"./element-plus-Bgelixwu.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-B2eGcVGj.js";import"./@vueuse-w7qmHU3H.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";import"./@element-plus-icons-vue-CXRJnQYo.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-B4KQg9YW.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]),import.meta.url)},{path:"/preview/:id",name:"preview",component:()=>r(()=>import("./preview-BPqKBjpN.js"),__vite__mapDeps([22,5,6,1,2,7,3,8,9,10,11,12,13,14,4,15,16,17,18,19]),import.meta.url)},{path:"/page/:id",name:"page",component:()=>r(()=>import("./page-DC0UpU2I.js"),__vite__mapDeps([23,5,6,1,2,7,3,8,9,10,11,12,13,14,4,15,16,17,18,19]),import.meta.url),meta:{pure:!0}},{path:"/pages/:id",name:"pages",component:()=>r(()=>import("./uni-page-BrivKbVY.js"),__vite__mapDeps([24,1,2,20,25]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>r(()=>import("./auth-DPcwTwML.js"),__vite__mapDeps([26,7,3,2,8,9,10,11,12,13,14,4,5,6,1,15,16,17,18,20]),import.meta.url)}],A=E({history:O(),routes:L}),c=v(P);c.use(A);c.mount("#app");
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-B2eGcVGj.js","./vue-BaPf1eHv.js"])))=>i.map(i=>d[i]);
2
+ var x=Object.defineProperty;var v=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;var w=(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={}))R.call(t,e)&&w(o,e,t[e]);if(v)for(var e of v(t))h.call(t,e)&&w(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 P}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as A}from"./vue-router-B2eGcVGj.js";import"./element-plus-Bgelixwu.js";import"./vxe-C7ZzhQxY.js";import{L as V,N as D,E as L,P as T,a as k,Y as B,w as I}from"./Editor-CPtl6CLF-CZK-iRjd.js";import{a as N,n as C,l as S,E as O}from"./utils-BjOPfXIU.js";import{y as Y}from"./@vueuse-w7qmHU3H.js";import{y as z,az as g,e as H,E as U,S as b,U as j,r as q,D as F,g as G}from"./vue-BaPf1eHv.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";import"./@element-plus-icons-vue-CXRJnQYo.js";import"./dayjs-CxR8wwn9.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-C_1w07tn.js";import"./marked--VTVY_DP.js";const it=z({__name:"page",setup(o){return c(this,null,function*(){let t,e;const _=new V(D(C)),s=([t,e]=g(()=>_.getExtension().catch(()=>null)),t=yield t,e(),t),u=L({loading:S,notify:C,useTitle:Y,alert:N,access:s==null?void 0:s.access}),d=s?([t,e]=g(()=>new O(s).load()),t=yield t,e(),t):{},{__BASE_PATH__:p="/"}=s||{},{provider:r,onReady:i}=T({mode:k.Runtime,service:_,materialPath:p,adapter:y(y({},u),d.adapter),dependencies:{Vue:()=>P(()=>import("./vue-BaPf1eHv.js").then(a=>a.aA),[],import.meta.url),VueRouter:()=>P(()=>import("./vue-router-B2eGcVGj.js"),__vite__mapDeps([0,1]),import.meta.url)}}),l=A(),f=q(),n=G(),E=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),E(a))})),H(()=>l.params.id,a=>c(null,null,function*(){if(a){const m=n==null?void 0:n.appContext.app;if(!m)return;E(m)}})),(a,m)=>f.value?(F(),U(b(f.value),{key:0})):j("",!0)})}});export{it as default};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-B2eGcVGj.js","./vue-BaPf1eHv.js"])))=>i.map(i=>d[i]);
2
+ var R=Object.defineProperty;var v=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var w=(o,e,t)=>e in o?R(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,d=(o,e)=>{for(var t in e||(e={}))x.call(e,t)&&w(o,t,e[t]);if(v)for(var t of v(e))A.call(e,t)&&w(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 y}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as T}from"./vue-router-B2eGcVGj.js";import"./element-plus-Bgelixwu.js";import"./vxe-C7ZzhQxY.js";import{L as g,N as V,E as D,P as L,a as k,T as B,Y as I,w as N}from"./Editor-CPtl6CLF-CZK-iRjd.js";import{a as S,n as P,l as O,E as Y}from"./utils-BjOPfXIU.js";import{y as z}from"./@vueuse-w7qmHU3H.js";import{y as H,az as h,E as U,S as b,U as j,r as q,D as F,g as G}from"./vue-BaPf1eHv.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";import"./@element-plus-icons-vue-CXRJnQYo.js";import"./dayjs-CxR8wwn9.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-C_1w07tn.js";import"./marked--VTVY_DP.js";const pe=H({__name:"preview",setup(o){return f(this,null,function*(){let e,t;const c=new g(V(P)),r=([e,t]=h(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e||{}),_=D({loading:O,notify:P,useTitle:z,alert:S,access:r==null?void 0:r.access}),s=r?([e,t]=h(()=>new Y(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:()=>y(()=>import("./vue-BaPf1eHv.js").then(m=>m.aA),[],import.meta.url),VueRouter:()=>y(()=>import("./vue-router-B2eGcVGj.js"),__vite__mapDeps([0,1]),import.meta.url)}}),E=T(),u=q(),l=G();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(E.params.id.toString(),C=>{N(n,E,C)}))})),(m,n)=>u.value?(F(),U(b(u.value),{key:0})):j("",!0)})}});export{pe as default};
@@ -0,0 +1 @@
1
+ var O=Object.defineProperty;var g=Object.getOwnPropertySymbols;var u=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable;var S=(t,a,s)=>a in t?O(t,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[a]=s,E=(t,a)=>{for(var s in a||(a={}))u.call(a,s)&&S(t,s,a[s]);if(g)for(var s of g(a))m.call(a,s)&&S(t,s,a[s]);return t};var l=(t,a,s)=>S(t,typeof a!="symbol"?a+"":a,s);var p=(t,a,s)=>new Promise((o,i)=>{var e=r=>{try{n(s.next(r))}catch(_){i(_)}},c=r=>{try{n(s.throw(r))}catch(_){i(_)}},n=r=>r.done?o(r.value):Promise.resolve(r.value).then(e,c);n((s=s.apply(t,a)).next())});import{aA as d}from"./vue-BaPf1eHv.js";import{W as A,R as I,b as f,c as V,f as b,X as h,K as R,F as P,q as y,n as D,Q as M,A as H,e as K,Z as L,S as N,g as B,h as k,G as x,i as G,j as F,l as v,m as w,p as U,H as W,x as Y,r as J,s as C,t as $,u as j,v as z,y as X,z as q,B as Q,C as Z,D as aa,I as sa,$ as ea,J as ta,M as ra,O as ia,U as na,V as oa,_ as _a,a0 as la,a1 as Ea,a2 as ca,a3 as Sa,a4 as ga,a5 as pa,a6 as Ta,a7 as Oa,a8 as ua,a9 as ma,aa as da,ab as Aa,ac as Ia,ad as fa,ae as Va,af as ba,ag as ha,ah as Ra,ai as Pa,aj as ya,ak as Da,al as Ma,am as Ha,an as Ka,ao as La,ap as Na,aq as Ba,ar as ka,as as xa,at as Ga,au as Fa,av as va,aw as wa,o as Ua,ax as Wa,ay as Ya,az as Ja,aA as Ca,aB as $a,aC as ja,aD as za,aE as Xa}from"./Editor-CPtl6CLF-CZK-iRjd.js";import{E as qa,a as Qa,b as Za}from"./element-plus-Bgelixwu.js";import"./dayjs-CxR8wwn9.js";const as=Object.freeze(Object.defineProperty({__proto__:null,API_METHOD_TYPES:A,ActionMenu:I,Assets:f,Binder:V,Box:b,CodeIncrementalUpdater:h,DEVTOOLS_DEP:R,Designer:P,EVENT_MODIFIERS:y,Editor:D,Engine:M,EventBinder:H,GET_TOKENS_LINK:K,HOT_KEYS_DEP:L,Icon:N,Item:B,KEYBOARD_EVENT_LIST:k,MAX_TOKENS:x,MOBILE_SIZE:G,MOUSE_EVENT_LIST:F,NAME_REGEX:v,NPM_REGISTRY_URL:w,OpenApi:U,PAD_SIZE:W,Panel:Y,REPORT_API:J,RegionType:C,RegionWrapper:$,Renderer:j,SAVE_BLOCK_FILE_FINISH:z,SESSION_ID_KEY:X,STATE_KEY:q,SetterView:Q,SetterWrapper:Z,Simulator:aa,Skeleton:sa,SkeletonWrapper:ea,SlotsPicker:ta,State:ra,TOOL_CONFIGS:ia,Tabs:na,ToolRegistry:oa,VERSION_REGEX:_a,VTJ_DESIGNER_VERSION:la,VUE_DEVTOOLS_FRAME_STATE_KEY:Ea,VUE_DEVTOOLS_OVERLAY_PATH:ca,VUE_DEVTOOLS_PATH:Sa,VariableBinder:ga,Viewer:pa,Viewport:Ta,WidgetGroup:Oa,WidgetWrapper:ua,alert:ma,builtInDeps:da,builtInMaterials:Aa,builtInSetters:Ia,builtInWidgets:fa,codeIncrementalUpdater:Va,confirm:ba,createSlotsPicker:ha,defaultSetter:Ra,depsManager:Pa,engineKey:ya,expressionValidate:Da,getClassProperties:Ma,loading:Ha,message:Ka,normalizedStyle:La,notify:Na,proxyContext:Ba,readJsonFile:ka,regions:xa,setterManager:Ga,setters:Fa,upgradeVersion:va,useEngine:wa,widgetManager:Ua,widgets:Wa},Symbol.toStringTag,{value:"Module"}));class ns{constructor(a){l(this,"urls",[]);l(this,"library","");l(this,"params",[]);l(this,"__BASE_PATH__","/");this.config=a;const s=E(E(E({},Ja),as),Ya),o={Vue:d,__VTJ_PRO__:s};for(const[_,T]of Object.entries(o))window[_]=T;const{extension:i,__BASE_PATH__:e="/"}=a||{},{urls:c=[],library:n,params:r=[]}=i||{};n&&(this.urls=c,this.library=n,this.params=r,this.__BASE_PATH__=e)}load(){return p(this,null,function*(){let a={};if(this.library){const s=this.__BASE_PATH__,o=this.urls.filter(e=>Ca(e)).map(e=>`${s}${e}`),i=this.urls.filter(e=>$a(e)).map(e=>`${s}${e}`);if(ja(o),i.length){const e=yield za(i,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 Xa(this.config,a)}}function os(){return Za.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"})}function _s(t,a="",s="warning"){Qa({title:a,message:t,type:s})}function ls(t,a){return qa.alert(t,a)}export{ns as E,ls as a,os as l,_s 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__ = '1781145140757';
14
+ var __BUILD_TIME__ = '1781154823012';
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
- <!--{{1781145140757}}-->
30
+ <!--{{1781154823012}}-->
31
31
 
32
- <script type="module" crossorigin src="./assets/index-BuGNkP-C.js"></script>
32
+ <script type="module" crossorigin src="./assets/index-DoeCvv0h.js"></script>
33
33
  <link rel="modulepreload" crossorigin href="./assets/vue-BaPf1eHv.js">
34
34
  <link rel="modulepreload" crossorigin href="./assets/@vueuse-w7qmHU3H.js">
35
35
  <link rel="modulepreload" crossorigin href="./assets/lodash-es-BxdYFYdv.js">