@vtj/pro 0.16.19 → 0.16.20

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 (30) 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-CnrmSJC0-BJ5S1UBg.js → Editor-CNsf5H5x-DmFntYTg.js} +100 -100
  14. package/dist/assets/auth-rZqhPMaO.js +1 -0
  15. package/dist/assets/index-CsOtn1Mq.js +1 -0
  16. package/dist/assets/{index-Cy714gl2.js → index-DI67EnXr.js} +2 -2
  17. package/dist/assets/{page-Vnh3kyn1.js → page-BnnSMLPQ.js} +1 -1
  18. package/dist/assets/preview-Bflf1uBa.js +2 -0
  19. package/dist/assets/utils-CxKk6g6m.js +1 -0
  20. package/dist/index.html +3 -3
  21. package/dist/uni/assets/{@dcloudio-uni-h5-vue-CQcoi6u8.js → @dcloudio-uni-h5-vue-SI-KByE-.js} +1 -1
  22. package/dist/uni/assets/{index-DJN5ZlZJ.js → index-zcD9la96.js} +31 -31
  23. package/dist/uni/assets/{vue-router-DfiwASwJ.js → vue-router-D3IaKFZK.js} +1 -1
  24. package/dist/uni/index.html +3 -3
  25. package/package.json +12 -12
  26. package/dist/assets/auth-VFmrfozu.js +0 -1
  27. package/dist/assets/index-BI8_G-jh.js +0 -1
  28. package/dist/assets/preview-BBa3nmAy.js +0 -2
  29. package/dist/assets/utils-BVEwWVpg.js +0 -1
  30. /package/dist/assets/{Editor-CnrmSJC0-RqUph99l.css → Editor-CNsf5H5x-RqUph99l.css} +0 -0
@@ -0,0 +1 @@
1
+ var C=Object.defineProperty;var y=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var x=(o,e,t)=>e in o?C(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,u=(o,e)=>{for(var t in e||(e={}))k.call(e,t)&&x(o,t,e[t]);if(y)for(var t of y(e))U.call(e,t)&&x(o,t,e[t]);return o};var _=(o,e,t)=>new Promise((c,s)=>{var n=r=>{try{i(t.next(r))}catch(a){s(a)}},p=r=>{try{i(t.throw(r))}catch(a){s(a)}},i=r=>r.done?c(r.value):Promise.resolve(r.value).then(n,p);i((t=t.apply(o,e)).next())});import"./element-plus-ClWnlNxy.js";import"./vxe-BJJKGxpR.js";import{x as I,aF as b,a9 as d,aG as E,aH as $,J as q}from"./Editor-CNsf5H5x-DmFntYTg.js";import{useRoute as v}from"./vue-router-DLyhMsB6.js";import{x as w,az as f,I as B,D as A,u as l,E as R,U as g}from"./vue-Cs4cahp0.js";import{_ as G}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vueuse-DGhgU4Wj.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Df95_Dth.js";import"./@element-plus-icons-vue-DfQfjj5s.js";import"./dayjs-GGXMDmCk.js";import"./monaco-editor-Bgo-w-Z8.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-C_F9xDf5.js";import"./marked--VTVY_DP.js";const J={class:"loading"},P=w({__name:"Auth",props:{remote:{},access:{},baseUrl:{default:"/"}},setup(o){return _(this,null,function*(){let e,t;const c=o,s=I(u(u({alert:d},b),c.access)),n=v(),p=a=>_(null,null,function*(){const h=`${c.remote||E}/api/open/user/${a}`,m=yield $(h).catch(()=>null);return m&&Array.isArray(m)?m:!m||!m.success?(yield d("登录失败"),null):m.data}),i=n.query.token,r=i?([e,t]=f(()=>p(i)),e=yield e,t(),e):null;if(r)try{s.login(r);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)=>(A(),B("div",J,"正在登录中..."))})}}),S=G(P,[["__scopeId","data-v-2cb061ca"]]),Z=w({__name:"auth",setup(o){return _(this,null,function*(){let e,t;const c=new q,s=([e,t]=f(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e),n=s==null?void 0:s.remote,p=s==null?void 0:s.__ACCESS__;return(i,r)=>l(n)?(A(),R(l(S),{key:0,remote:l(n),access:l(p)},null,8,["remote","access"])):g("",!0)})}});export{Z as default};
@@ -0,0 +1 @@
1
+ var L=Object.defineProperty;var P=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var C=(o,e,t)=>e in o?L(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,y=(o,e)=>{for(var t in e||(e={}))N.call(e,t)&&C(o,t,e[t]);if(P)for(var t of P(e))V.call(e,t)&&C(o,t,e[t]);return o};var f=(o,e,t)=>new Promise((_,r)=>{var l=n=>{try{i(t.next(n))}catch(p){r(p)}},s=n=>{try{i(t.throw(n))}catch(p){r(p)}},i=n=>n.done?_(n.value):Promise.resolve(n.value).then(l,s);i((t=t.apply(o,e)).next())});import{useRoute as W}from"./vue-router-DLyhMsB6.js";import{y as Z}from"./@vueuse-DGhgU4Wj.js";import{J as j,L as z,T as D,x as O,Z as E,H as U,d as v}from"./Editor-CNsf5H5x-DmFntYTg.js";import"./element-plus-ClWnlNxy.js";import"./vxe-BJJKGxpR.js";import{E as G,a as S,n as A,l as K}from"./utils-CxKk6g6m.js";import{x as M,az as B,d as Q,I as X,r as Y,D as ee}from"./vue-Cs4cahp0.js";import{_ as te}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./monaco-editor-Bgo-w-Z8.js";import"./dayjs-GGXMDmCk.js";import"./@element-plus-icons-vue-DfQfjj5s.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-C_F9xDf5.js";import"./marked--VTVY_DP.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Df95_Dth.js";const ae=M({__name:"index",setup(o){return f(this,null,function*(){let e,t;const _=W(),r=Y(),l=new j(z(A)),s=([e,t]=B(()=>l.getExtension().catch(()=>null)),e=yield e,t(),e||{}),i=D({loading:K,notify:A,useTitle:Z,alert:S,access:s==null?void 0:s.access}),n=O(y({alert:S},s==null?void 0:s.__ACCESS__)),p=s?([e,t]=B(()=>new G(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:h="/",history:T="hash",base:w="/",pageRouteName:x="page",remote:k,auth:H,checkVersion:b=!0,enhance:F,platform:J="web"}=s||{},R=()=>T==="hash",q=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===`${h}__vtj__/`?h:c;const d=a.currentFile;if(d&&d.type==="page"&&a.homepage!==d.id){const I=s.pageBasePath?`/${x}`:"",g=`${q(w)}${u?`pages${I}`:x}/${d.id}`;m=R()?`${m}#/${g}`:`${m}${g}`}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 $=new U(y({container:r,service:l,materialPath:h,pageBasePath:w==="/"?"":w,adapter:i,access:n,remote:k,auth:H,checkVersion:b,enhance:F,project:{platform:J}},p));return $.ready(()=>f(null,null,function*(){yield v(300),$.openFile(_.query.id)})),Q(()=>_.query.id,a=>f(null,null,function*(){yield v(300),$.openFile(a)})),(a,u)=>(ee(),X("div",{class:"designer",ref_key:"container",ref:r},null,512))})}}),xe=te(ae,[["__scopeId","data-v-b20f3eda"]]);export{xe as default};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BI8_G-jh.js","./vue-router-DLyhMsB6.js","./vue-Cs4cahp0.js","./@vueuse-DGhgU4Wj.js","./Editor-CnrmSJC0-BJ5S1UBg.js","./monaco-editor-Bgo-w-Z8.js","./monaco-editor-C0wzwsn5.css","./element-plus-ClWnlNxy.js","./lodash-es-BxdYFYdv.js","./shared-Df95_Dth.js","./@element-plus-icons-vue-DfQfjj5s.js","./dayjs-GGXMDmCk.js","./element-plus-AP7zs95r.css","./vxe-BJJKGxpR.js","./vxe-BAb1d5vW.css","./html2canvas-DNSjNh3_.js","./mockjs-C_F9xDf5.js","./marked--VTVY_DP.js","./Editor-CnrmSJC0-RqUph99l.css","./utils-BVEwWVpg.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-Ce7h16Vb.css","./preview-BBa3nmAy.js","./page-Vnh3kyn1.js","./uni-page-hurVTe5x.js","./uni-page-Diqmj53r.css","./auth-VFmrfozu.js"])))=>i.map(i=>d[i]);
2
- import{x 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-Cs4cahp0.js";import{z as g,c as E}from"./element-plus-ClWnlNxy.js";import"./dayjs-GGXMDmCk.js";import{_ as r}from"./monaco-editor-Bgo-w-Z8.js";import{createRouter as y,createWebHashHistory as O}from"./vue-router-DLyhMsB6.js";import"./@vueuse-DGhgU4Wj.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Df95_Dth.js";import"./@element-plus-icons-vue-DfQfjj5s.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(E),{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-BI8_G-jh.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-BBa3nmAy.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-Vnh3kyn1.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-hurVTe5x.js"),__vite__mapDeps([24,1,2,20,25]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>r(()=>import("./auth-VFmrfozu.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=y({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-CsOtn1Mq.js","./vue-router-DLyhMsB6.js","./vue-Cs4cahp0.js","./@vueuse-DGhgU4Wj.js","./Editor-CNsf5H5x-DmFntYTg.js","./monaco-editor-Bgo-w-Z8.js","./monaco-editor-C0wzwsn5.css","./element-plus-ClWnlNxy.js","./lodash-es-BxdYFYdv.js","./shared-Df95_Dth.js","./@element-plus-icons-vue-DfQfjj5s.js","./dayjs-GGXMDmCk.js","./element-plus-AP7zs95r.css","./vxe-BJJKGxpR.js","./vxe-BAb1d5vW.css","./html2canvas-DNSjNh3_.js","./mockjs-C_F9xDf5.js","./marked--VTVY_DP.js","./Editor-CNsf5H5x-RqUph99l.css","./utils-CxKk6g6m.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-Ce7h16Vb.css","./preview-Bflf1uBa.js","./page-BnnSMLPQ.js","./uni-page-hurVTe5x.js","./uni-page-Diqmj53r.css","./auth-rZqhPMaO.js"])))=>i.map(i=>d[i]);
2
+ import{x 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-Cs4cahp0.js";import{z as g,c as E}from"./element-plus-ClWnlNxy.js";import"./dayjs-GGXMDmCk.js";import{_ as r}from"./monaco-editor-Bgo-w-Z8.js";import{createRouter as y,createWebHashHistory as O}from"./vue-router-DLyhMsB6.js";import"./@vueuse-DGhgU4Wj.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Df95_Dth.js";import"./@element-plus-icons-vue-DfQfjj5s.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(E),{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-CsOtn1Mq.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-Bflf1uBa.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-BnnSMLPQ.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-hurVTe5x.js"),__vite__mapDeps([24,1,2,20,25]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>r(()=>import("./auth-rZqhPMaO.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=y({history:O(),routes:L}),c=v(P);c.use(A);c.mount("#app");
@@ -1,2 +1,2 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-DLyhMsB6.js","./vue-Cs4cahp0.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 x=(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)&&x(o,e,t[e]);if(E)for(var e of E(t))A.call(t,e)&&x(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 D}from"./vue-router-DLyhMsB6.js";import"./element-plus-ClWnlNxy.js";import"./vxe-BJJKGxpR.js";import{G as P,J as T,D as V,U as k,_ as B,Y as I,T as S}from"./Editor-CnrmSJC0-BJ5S1UBg.js";import{a as U,n as g,l as G,E as J}from"./utils-BVEwWVpg.js";import{y as L}from"./@vueuse-DGhgU4Wj.js";import{x as O,az as w,d as Y,E as z,S as H,U as N,r as b,D as j,g as q}from"./vue-Cs4cahp0.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Df95_Dth.js";import"./@element-plus-icons-vue-DfQfjj5s.js";import"./dayjs-GGXMDmCk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-C_F9xDf5.js";import"./marked--VTVY_DP.js";const it=O({__name:"page",setup(o){return c(this,null,function*(){let t,e;const _=new P(T(g)),s=([t,e]=w(()=>_.getExtension().catch(()=>null)),t=yield t,e(),t),u=V({loading:G,notify:g,useTitle:L,alert:U,access:s==null?void 0:s.access}),d=s?([t,e]=w(()=>new J(s).load()),t=yield t,e(),t):{},{__BASE_PATH__:p="/"}=s||{},{provider:r,onReady:i}=k({mode:B.Runtime,service:_,materialPath:p,adapter:y(y({},u),d.adapter),dependencies:{Vue:()=>C(()=>import("./vue-Cs4cahp0.js").then(a=>a.aA),[],import.meta.url),VueRouter:()=>C(()=>import("./vue-router-DLyhMsB6.js"),__vite__mapDeps([0,1]),import.meta.url)}}),l=D(),f=b(),n=q(),v=a=>c(null,null,function*(){f.value=yield r.getRenderComponent(l.params.id.toString(),m=>{S(a,l,m)})});return i(()=>c(null,null,function*(){const a=n==null?void 0:n.appContext.app;a&&(a.use(I),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(),z(H(f.value),{key:0})):N("",!0)})}});export{it as default};
2
+ var R=Object.defineProperty;var E=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var x=(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)&&x(o,e,t[e]);if(E)for(var e of E(t))A.call(t,e)&&x(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 P}from"./vue-router-DLyhMsB6.js";import"./element-plus-ClWnlNxy.js";import"./vxe-BJJKGxpR.js";import{J as T,L as V,T as D,N as L,y as O,Y as k,O as B}from"./Editor-CNsf5H5x-DmFntYTg.js";import{a as I,n as g,l as N,E as S}from"./utils-CxKk6g6m.js";import{y as J}from"./@vueuse-DGhgU4Wj.js";import{x as Y,az as w,d as z,E as H,S as U,U as b,r as j,D as q,g as F}from"./vue-Cs4cahp0.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Df95_Dth.js";import"./@element-plus-icons-vue-DfQfjj5s.js";import"./dayjs-GGXMDmCk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-C_F9xDf5.js";import"./marked--VTVY_DP.js";const it=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:N,notify:g,useTitle:J,alert:I,access:s==null?void 0:s.access}),d=s?([t,e]=w(()=>new S(s).load()),t=yield t,e(),t):{},{__BASE_PATH__:p="/"}=s||{},{provider:r,onReady:i}=L({mode:O.Runtime,service:_,materialPath:p,adapter:y(y({},u),d.adapter),dependencies:{Vue:()=>C(()=>import("./vue-Cs4cahp0.js").then(a=>a.aA),[],import.meta.url),VueRouter:()=>C(()=>import("./vue-router-DLyhMsB6.js"),__vite__mapDeps([0,1]),import.meta.url)}}),l=P(),f=j(),n=F(),v=a=>c(null,null,function*(){f.value=yield r.getRenderComponent(l.params.id.toString(),m=>{B(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))})),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(U(f.value),{key:0})):b("",!0)})}});export{it as default};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-DLyhMsB6.js","./vue-Cs4cahp0.js"])))=>i.map(i=>d[i]);
2
+ var R=Object.defineProperty;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var E=(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={}))A.call(e,t)&&E(o,t,e[t]);if(y)for(var t of y(e))T.call(e,t)&&E(o,t,e[t]);return o};var f=(o,e,t)=>new Promise((c,s)=>{var _=a=>{try{i(t.next(a))}catch(p){s(p)}},n=a=>{try{i(t.throw(a))}catch(p){s(p)}},i=a=>a.done?c(a.value):Promise.resolve(a.value).then(_,n);i((t=t.apply(o,e)).next())});import{_ as w}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as g}from"./vue-router-DLyhMsB6.js";import"./element-plus-ClWnlNxy.js";import"./vxe-BJJKGxpR.js";import{J as B,L as P,T as V,N as D,y as L,B as O,Y as k,O as I}from"./Editor-CNsf5H5x-DmFntYTg.js";import{a as N,n as h,l as S,E as J}from"./utils-CxKk6g6m.js";import{y as Y}from"./@vueuse-DGhgU4Wj.js";import{x as z,az as x,E as H,S as U,U as b,r as j,D as q,g as F}from"./vue-Cs4cahp0.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Df95_Dth.js";import"./@element-plus-icons-vue-DfQfjj5s.js";import"./dayjs-GGXMDmCk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-C_F9xDf5.js";import"./marked--VTVY_DP.js";const pe=z({__name:"preview",setup(o){return f(this,null,function*(){let e,t;const c=new B(P(h)),s=([e,t]=x(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e||{}),_=V({loading:S,notify:h,useTitle:Y,alert:N,access:s==null?void 0:s.access}),n=s?([e,t]=x(()=>new J(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:i="/"}=s||{},{provider:a,onReady:p}=D({mode:L.Runtime,service:c,materialPath:i,adapter:d(d({},_),n.adapter),dependencies:{Vue:()=>w(()=>import("./vue-Cs4cahp0.js").then(m=>m.aA),[],import.meta.url),VueRouter:()=>w(()=>import("./vue-router-DLyhMsB6.js"),__vite__mapDeps([0,1]),import.meta.url)}}),v=g(),u=j(),l=F();return p(()=>f(null,null,function*(){const m=yield O(s.enhance),r=l==null?void 0:l.appContext.app;r&&(n.install&&n.install(r),m&&r.use(m,a),r.use(k),r.use(a),u.value=yield a.getRenderComponent(v.params.id.toString(),C=>{I(r,v,C)}))})),(m,r)=>u.value?(q(),H(U(u.value),{key:0})):b("",!0)})}});export{pe as default};
@@ -0,0 +1 @@
1
+ var O=Object.defineProperty;var T=Object.getOwnPropertySymbols;var m=Object.prototype.hasOwnProperty,u=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={}))m.call(a,s)&&S(t,s,a[s]);if(T)for(var s of T(a))u.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-Cs4cahp0.js";import{W as A,I,z as f,v as V,a as P,G as b,$ as h,j as R,q as M,b as y,H as L,S as B,X as N,c as k,e as D,k as H,K as v,f as K,F as G,g as w,A as x,Q as W,h as F,i as U,l as j,m as Y,n as C,o as J,p as $,r as z,s as X,t as Z,u as q,w as Q,C as aa,D as sa,P as ea,E as ta,M as ra,R as ia,U as na,V as oa,_ as _a,a0 as la,a1 as Ea,a2 as ca,a3 as Sa,a4 as Ta,a5 as pa,a6 as ga,a7 as Oa,a8 as ma,a9 as ua,aa as da,ab as Aa,ac as Ia,ad as fa,ae as Va,af as Pa,ag as ba,ah as ha,ai as Ra,aj as Ma,ak as ya,al as La,am as Ba,an as Na,ao as ka,ap as Da,aq as Ha,ar as va,as as Ka,at as Ga,au as wa,av as xa,aw as Wa,Z as Fa,ax as Ua,ay as ja,az as Ya,aA as Ca,aB as Ja,aC as $a,aD as za,aE as Xa}from"./Editor-CNsf5H5x-DmFntYTg.js";import{E as Za,a as qa,b as Qa}from"./element-plus-ClWnlNxy.js";import"./dayjs-GGXMDmCk.js";const as=Object.freeze(Object.defineProperty({__proto__:null,API_METHOD_TYPES:A,ActionMenu:I,Assets:f,Binder:V,Box:P,CodeIncrementalUpdater:b,DEVTOOLS_DEP:h,Designer:R,EVENT_MODIFIERS:M,Editor:y,Engine:L,EventBinder:B,GET_TOKENS_LINK:N,HOT_KEYS_DEP:k,Icon:D,Item:H,KEYBOARD_EVENT_LIST:v,MAX_TOKENS:K,MOBILE_SIZE:G,MOUSE_EVENT_LIST:w,NAME_REGEX:x,NPM_REGISTRY_URL:W,OpenApi:F,PAD_SIZE:U,Panel:j,REPORT_API:Y,RegionType:C,RegionWrapper:J,Renderer:$,SAVE_BLOCK_FILE_FINISH:z,SESSION_ID_KEY:X,STATE_KEY:Z,SetterView:q,SetterWrapper:Q,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:Ta,Viewer:pa,Viewport:ga,WidgetGroup:Oa,WidgetWrapper:ma,alert:ua,builtInDeps:da,builtInMaterials:Aa,builtInSetters:Ia,builtInWidgets:fa,codeIncrementalUpdater:Va,confirm:Pa,createSlotsPicker:ba,defaultSetter:ha,depsManager:Ra,engineKey:Ma,expressionValidate:ya,getClassProperties:La,loading:Ba,message:Na,normalizedStyle:ka,notify:Da,proxyContext:Ha,readJsonFile:va,regions:Ka,setterManager:Ga,setters:wa,upgradeVersion:xa,useEngine:Wa,widgetManager:Fa,widgets:Ua},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({},Ya),as),ja),o={Vue:d,__VTJ_PRO__:s};for(const[_,g]of Object.entries(o))window[_]=g;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=>Ja(e)).map(e=>`${s}${e}`);if($a(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 Qa.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 Za.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__ = '1776350003548';
14
+ var __BUILD_TIME__ = '1776482476111';
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
- <!--{{1776350003548}}-->
30
+ <!--{{1776482476111}}-->
31
31
 
32
- <script type="module" crossorigin src="./assets/index-Cy714gl2.js"></script>
32
+ <script type="module" crossorigin src="./assets/index-DI67EnXr.js"></script>
33
33
  <link rel="modulepreload" crossorigin href="./assets/vue-Cs4cahp0.js">
34
34
  <link rel="modulepreload" crossorigin href="./assets/@vueuse-DGhgU4Wj.js">
35
35
  <link rel="modulepreload" crossorigin href="./assets/lodash-es-BxdYFYdv.js">