@vtj/pro 0.16.21 → 0.16.23

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 (29) 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 +5 -5
  13. package/dist/assets/{Editor-DOwRDnWV-RqUph99l.css → Editor-CkTaBh2w-ClyxY6WL.css} +1 -1
  14. package/dist/assets/{Editor-DOwRDnWV-U9WcRjMP.js → Editor-CkTaBh2w-vY_VpQTs.js} +110 -110
  15. package/dist/assets/{auth-UEPK59VT.js → auth-DJnqGlPY.js} +1 -1
  16. package/dist/assets/{index-wjb4qznY.js → index-B7zPP__0.js} +2 -2
  17. package/dist/assets/index-Br68Req3.css +1 -0
  18. package/dist/assets/index-C9JV8M7i.js +1 -0
  19. package/dist/assets/{page-BaNcBeBb.js → page-DqrJx50j.js} +1 -1
  20. package/dist/assets/{preview-ByoToq69.js → preview-BQUivoCr.js} +1 -1
  21. package/dist/assets/utils-C9-A3ucB.js +1 -0
  22. package/dist/index.html +3 -3
  23. package/dist/uni/assets/index-B9UYmguL.js +76 -0
  24. package/dist/uni/index.html +1 -1
  25. package/package.json +11 -11
  26. package/dist/assets/index-Ce7h16Vb.css +0 -1
  27. package/dist/assets/index-DAOeQuqK.js +0 -1
  28. package/dist/assets/utils-C9mXua9J.js +0 -1
  29. package/dist/uni/assets/index-BKCYBwsc.js +0 -76
@@ -1 +1 @@
1
- var A=Object.defineProperty;var y=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var k=(o,e,t)=>e in o?A(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,u=(o,e)=>{for(var t in e||(e={}))C.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,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{k as U,aF as b,a9 as d,aG as E,aH as q,K as v}from"./Editor-DOwRDnWV-U9WcRjMP.js";import{useRoute as B}from"./vue-router-DLyhMsB6.js";import{x as w,az as f,I as R,D as x,u as l,E as $,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 K={class:"loading"},S=w({__name:"Auth",props:{remote:{},access:{},baseUrl:{default:"/"}},setup(o){return _(this,null,function*(){let e,t;const c=o,s=U(u(u({alert:d},b),c.access)),n=B(),p=a=>_(null,null,function*(){const h=`${c.remote||E}/api/open/user/${a}`,m=yield q(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)=>(x(),R("div",K,"正在登录中..."))})}}),z=G(S,[["__scopeId","data-v-2cb061ca"]]),Z=w({__name:"auth",setup(o){return _(this,null,function*(){let e,t;const c=new v,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)?(x(),$(l(z),{key:0,remote:l(n),access:l(p)},null,8,["remote","access"])):g("",!0)})}});export{Z as default};
1
+ var A=Object.defineProperty;var y=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var k=(o,e,t)=>e in o?A(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,u=(o,e)=>{for(var t in e||(e={}))C.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,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{k as U,aF as b,a9 as d,aG as E,aH as q,K as v}from"./Editor-CkTaBh2w-vY_VpQTs.js";import{useRoute as B}from"./vue-router-DLyhMsB6.js";import{x as w,az as f,I as R,D as x,u as l,E as $,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 K={class:"loading"},L=w({__name:"Auth",props:{remote:{},access:{},baseUrl:{default:"/"}},setup(o){return _(this,null,function*(){let e,t;const c=o,s=U(u(u({alert:d},b),c.access)),n=B(),p=a=>_(null,null,function*(){const h=`${c.remote||E}/api/open/user/${a}`,m=yield q(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)=>(x(),R("div",K,"正在登录中..."))})}}),S=G(L,[["__scopeId","data-v-2cb061ca"]]),Z=w({__name:"auth",setup(o){return _(this,null,function*(){let e,t;const c=new v,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)?(x(),$(l(S),{key:0,remote:l(n),access:l(p)},null,8,["remote","access"])):g("",!0)})}});export{Z as default};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-DAOeQuqK.js","./vue-router-DLyhMsB6.js","./vue-Cs4cahp0.js","./@vueuse-DGhgU4Wj.js","./Editor-DOwRDnWV-U9WcRjMP.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-DOwRDnWV-RqUph99l.css","./utils-C9mXua9J.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-Ce7h16Vb.css","./preview-ByoToq69.js","./page-BaNcBeBb.js","./uni-page-hurVTe5x.js","./uni-page-Diqmj53r.css","./auth-UEPK59VT.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-DAOeQuqK.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-ByoToq69.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-BaNcBeBb.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-UEPK59VT.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-C9JV8M7i.js","./vue-router-DLyhMsB6.js","./vue-Cs4cahp0.js","./@vueuse-DGhgU4Wj.js","./Editor-CkTaBh2w-vY_VpQTs.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-CkTaBh2w-ClyxY6WL.css","./utils-C9-A3ucB.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-Br68Req3.css","./preview-BQUivoCr.js","./page-DqrJx50j.js","./uni-page-hurVTe5x.js","./uni-page-Diqmj53r.css","./auth-DJnqGlPY.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-C9JV8M7i.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-BQUivoCr.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-DqrJx50j.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-DJnqGlPY.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");
@@ -0,0 +1 @@
1
+ .designer[data-v-f41f19f5]{width:100%;height:100%}
@@ -0,0 +1 @@
1
+ var I=Object.defineProperty;var P=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var C=(n,e,t)=>e in n?I(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,w=(n,e)=>{for(var t in e||(e={}))N.call(e,t)&&C(n,t,e[t]);if(P)for(var t of P(e))V.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 W}from"./vue-router-DLyhMsB6.js";import{y as Z}from"./@vueuse-DGhgU4Wj.js";import{K as j,q as z,D as J,k as O,Z as E,a as U,d as k}from"./Editor-CkTaBh2w-vY_VpQTs.js";import"./element-plus-ClWnlNxy.js";import"./vxe-BJJKGxpR.js";import{E as G,a as v,n as S,l as L}from"./utils-C9-A3ucB.js";import{x as M,az as A,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(n){return d(this,null,function*(){let e,t;const _=W(),r=Y(),l=new j(z(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:y="page",remote:g,auth:B,checkVersion:q=!0,enhance:D,platform:F="web"}=s||{},K=J({loading:L,notify:S,useTitle:Z,alert:v,access:s==null?void 0:s.access,settings:{proxyPath:`${g}/api/proxy`}}),R=O(w({alert:v},s==null?void 0:s.__ACCESS__)),T=()=>p==="hash",b=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 H=s.pageBasePath?`/${y}`:"",x=`${b(h)}${u?`pages${H}`:y}/${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 $=new U(w({container:r,service:l,materialPath:o,pageBasePath:h==="/"?"":h,adapter:K,access:R,remote:g,auth:B,checkVersion:q,enhance:D,project:{platform:F}},i));return $.ready(()=>d(null,null,function*(){yield k(300),$.openFile(_.query.id)})),Q(()=>_.query.id,a=>d(null,null,function*(){yield k(300),$.openFile(a)})),(a,u)=>(ee(),X("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
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{K as P,q as T,D as B,B as V,y as k,Y as I,T as S}from"./Editor-DOwRDnWV-U9WcRjMP.js";import{a as q,n as g,l as K,E as L}from"./utils-C9mXua9J.js";import{y as O}from"./@vueuse-DGhgU4Wj.js";import{x as Y,az as w,d as z,E as H,S as N,U,r as b,D as j,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 P(T(g)),s=([t,e]=w(()=>_.getExtension().catch(()=>null)),t=yield t,e(),t),u=B({loading:K,notify:g,useTitle:O,alert:q,access:s==null?void 0:s.access}),d=s?([t,e]=w(()=>new L(s).load()),t=yield t,e(),t):{},{__BASE_PATH__:p="/"}=s||{},{provider:r,onReady:i}=V({mode:k.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=F(),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))})),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?(j(),H(N(f.value),{key:0})):U("",!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 D}from"./vue-router-DLyhMsB6.js";import"./element-plus-ClWnlNxy.js";import"./vxe-BJJKGxpR.js";import{K as P,q as T,D as B,B as V,y as k,Y as I,T as S}from"./Editor-CkTaBh2w-vY_VpQTs.js";import{a as q,n as g,l as K,E as L}from"./utils-C9-A3ucB.js";import{y as O}from"./@vueuse-DGhgU4Wj.js";import{x as Y,az as w,d as z,E as H,S as N,U,r as b,D as j,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 P(T(g)),s=([t,e]=w(()=>_.getExtension().catch(()=>null)),t=yield t,e(),t),u=B({loading:K,notify:g,useTitle:O,alert:q,access:s==null?void 0:s.access}),d=s?([t,e]=w(()=>new L(s).load()),t=yield t,e(),t):{},{__BASE_PATH__:p="/"}=s||{},{provider:r,onReady:i}=V({mode:k.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=F(),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))})),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?(j(),H(N(f.value),{key:0})):U("",!0)})}});export{it as default};
@@ -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 y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,D=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))D.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 T}from"./vue-router-DLyhMsB6.js";import"./element-plus-ClWnlNxy.js";import"./vxe-BJJKGxpR.js";import{K as g,q as B,D as P,B as V,y as L,L as k,Y as I,T as S}from"./Editor-DOwRDnWV-U9WcRjMP.js";import{a as q,n as h,l as K,E as O}from"./utils-C9mXua9J.js";import{y as Y}from"./@vueuse-DGhgU4Wj.js";import{x as z,az as x,E as H,S as N,U,r as b,D as j,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 g(B(h)),s=([e,t]=x(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e||{}),_=P({loading:K,notify:h,useTitle:Y,alert:q,access:s==null?void 0:s.access}),n=s?([e,t]=x(()=>new O(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:i="/"}=s||{},{provider:a,onReady:p}=V({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=T(),u=b(),l=F();return p(()=>f(null,null,function*(){const m=yield k(s.enhance),r=l==null?void 0:l.appContext.app;r&&(n.install&&n.install(r),m&&r.use(m,a),r.use(I),r.use(a),u.value=yield a.getRenderComponent(v.params.id.toString(),C=>{S(r,v,C)}))})),(m,r)=>u.value?(j(),H(N(u.value),{key:0})):U("",!0)})}});export{pe as default};
2
+ var R=Object.defineProperty;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,D=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))D.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 T}from"./vue-router-DLyhMsB6.js";import"./element-plus-ClWnlNxy.js";import"./vxe-BJJKGxpR.js";import{K as g,q as B,D as P,B as V,y as L,L as k,Y as I,T as S}from"./Editor-CkTaBh2w-vY_VpQTs.js";import{a as q,n as h,l as K,E as O}from"./utils-C9-A3ucB.js";import{y as Y}from"./@vueuse-DGhgU4Wj.js";import{x as z,az as x,E as H,S as N,U,r as b,D as j,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 g(B(h)),s=([e,t]=x(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e||{}),_=P({loading:K,notify:h,useTitle:Y,alert:q,access:s==null?void 0:s.access}),n=s?([e,t]=x(()=>new O(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:i="/"}=s||{},{provider:a,onReady:p}=V({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=T(),u=b(),l=F();return p(()=>f(null,null,function*(){const m=yield k(s.enhance),r=l==null?void 0:l.appContext.app;r&&(n.install&&n.install(r),m&&r.use(m,a),r.use(I),r.use(a),u.value=yield a.getRenderComponent(v.params.id.toString(),C=>{S(r,v,C)}))})),(m,r)=>u.value?(j(),H(N(u.value),{key:0})):U("",!0)})}});export{pe as default};
@@ -0,0 +1 @@
1
+ var O=Object.defineProperty;var p=Object.getOwnPropertySymbols;var m=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var T=(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)&&T(t,s,a[s]);if(p)for(var s of p(a))u.call(a,s)&&T(t,s,a[s]);return t};var l=(t,a,s)=>T(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 d}from"./vue-Cs4cahp0.js";import{W as A,R as I,J as f,v as V,p as P,b,H as h,c as R,e as y,f as N,a as B,A as L,X as M,g as D,S as H,h as k,i as K,F as v,j as x,G,l as w,Q as F,m as W,n as Y,x as C,o as U,r as J,s as $,t as j,u as z,w as X,z as Z,C as q,E as Q,I as aa,M as sa,N as ea,O as ta,P as ra,V as na,U as ia,_ as oa,$ as _a,a0 as la,a1 as Ea,a2 as ca,a3 as Ta,a4 as pa,a5 as Sa,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 ya,ak as Na,al as Ba,am as La,an as Ma,ao as Da,ap as Ha,aq as ka,ar as Ka,as as va,at as xa,au as Ga,av as wa,aw as Fa,Z as Wa,ax as Ya,ay as Ca,az as Ua,aA as Ja,aB as $a,aC as ja,aD as za,aE as Xa}from"./Editor-CkTaBh2w-vY_VpQTs.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:y,Editor:N,Engine:B,EventBinder:L,GET_TOKENS_LINK:M,HOT_KEYS_DEP:D,Icon:H,Item:k,KEYBOARD_EVENT_LIST:K,MAX_TOKENS:v,MOBILE_SIZE:x,MOUSE_EVENT_LIST:G,NAME_REGEX:w,NPM_REGISTRY_URL:F,OpenApi:W,PAD_SIZE:Y,Panel:C,REPORT_API:U,RegionType:J,RegionWrapper:$,Renderer:j,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:na,Tabs:ia,ToolRegistry:oa,VERSION_REGEX:_a,VTJ_DESIGNER_VERSION:la,VUE_DEVTOOLS_FRAME_STATE_KEY:Ea,VUE_DEVTOOLS_OVERLAY_PATH:ca,VUE_DEVTOOLS_PATH:Ta,VariableBinder:pa,Viewer:Sa,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:ya,expressionValidate:Na,getClassProperties:Ba,loading:La,message:Ma,normalizedStyle:Da,notify:Ha,proxyContext:ka,readJsonFile:Ka,regions:va,setterManager:xa,setters:Ga,upgradeVersion:wa,useEngine:Fa,widgetManager:Wa,widgets:Ya},Symbol.toStringTag,{value:"Module"}));class is{constructor(a){l(this,"urls",[]);l(this,"library","");l(this,"params",[]);l(this,"__BASE_PATH__","/");this.config=a;const s=E(E(E({},Ua),as),Ca),o={Vue:d,__VTJ_PRO__:s};for(const[_,g]of Object.entries(o))window[_]=g;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=>$a(e)).map(e=>`${s}${e}`);if(ja(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 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{is 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__ = '1776487610959';
14
+ var __BUILD_TIME__ = '1776997103411';
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
- <!--{{1776487610959}}-->
30
+ <!--{{1776997103411}}-->
31
31
 
32
- <script type="module" crossorigin src="./assets/index-wjb4qznY.js"></script>
32
+ <script type="module" crossorigin src="./assets/index-B7zPP__0.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">