@vtj/pro 0.11.1-alpha.1 → 0.11.2

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.
@@ -1,2 +1,2 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-5AKQpGpA.js","./vue-CK7CG2oW.js"])))=>i.map(i=>d[i]);
2
- var w=Object.defineProperty;var y=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var E=(o,t,e)=>t in o?w(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,d=(o,t)=>{for(var e in t||(t={}))x.call(t,e)&&E(o,e,t[e]);if(y)for(var e of y(t))B.call(t,e)&&E(o,e,t[e]);return o};var l=(o,t,e)=>new Promise((i,r)=>{var m=a=>{try{n(e.next(a))}catch(p){r(p)}},c=a=>{try{n(e.throw(a))}catch(p){r(p)}},n=a=>a.done?i(a.value):Promise.resolve(a.value).then(m,c);n((e=e.apply(o,t)).next())});import{_ as C}from"./monaco-editor-B8dwQNlP.js";import{useRoute as P}from"./vue-router-5AKQpGpA.js";import"./element-plus-CQpgC9_i.js";import"./vxe-N9ALOqba.js";import{B as g}from"./index-C2YhZpTF.js";import{n as A,t as V,Q as T,e as k,y as D,G as I}from"./index-N2JsHbmk.js";import{n as R,a as O,l as G,E as L}from"./utils-D4cr5QWV.js";import{q as Q}from"./@vueuse-CceCMEgA.js";import{d as S,aB as h,e as q,K as z,O as H,P as K,o as N,h as b}from"./vue-CK7CG2oW.js";import"./lodash-es-BL-d_OSa.js";import"./@element-plus-icons-vue-CiUy_FB_.js";import"./shared-CFJLz5mK.js";import"./dayjs-DO-COJPZ.js";import"./html2canvas-CIV5arX1.js";import"./mockjs-BSD1DCM1.js";const nt=S({__name:"page",setup(o){return l(this,null,function*(){let t,e;const i=new A(V(R)),r=([t,e]=h(()=>i.getExtension().catch(()=>null)),t=yield t,e(),t),m=T({loading:G,notify:R,useTitle:Q,alert:O,access:r==null?void 0:r.access}),c=r?([t,e]=h(()=>new L(r).load()),t=yield t,e(),t):{},{__BASE_PATH__:n="/"}=r||{},{provider:a,onReady:p}=k({mode:D.Runtime,service:i,materialPath:n,adapter:d(d({},m),c.adapter),dependencies:{Vue:()=>C(()=>import("./vue-CK7CG2oW.js").then(s=>s.az),[],import.meta.url),VueRouter:()=>C(()=>import("./vue-router-5AKQpGpA.js"),__vite__mapDeps([0,1]),import.meta.url)}}),f=P(),_=q(),u=b();return p(()=>l(this,null,function*(){const s=u==null?void 0:u.appContext.app;s&&(s.use(g),s.use(a),_.value=yield a.getRenderComponent(f.params.id.toString(),v=>{I(s,f,v)}))})),(s,v)=>_.value?(N(),z(K(_.value),{key:0})):H("",!0)})}});export{nt as default};
2
+ var w=Object.defineProperty;var y=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var E=(o,t,e)=>t in o?w(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,d=(o,t)=>{for(var e in t||(t={}))x.call(t,e)&&E(o,e,t[e]);if(y)for(var e of y(t))B.call(t,e)&&E(o,e,t[e]);return o};var l=(o,t,e)=>new Promise((p,r)=>{var m=a=>{try{n(e.next(a))}catch(i){r(i)}},c=a=>{try{n(e.throw(a))}catch(i){r(i)}},n=a=>a.done?p(a.value):Promise.resolve(a.value).then(m,c);n((e=e.apply(o,t)).next())});import{_ as C}from"./monaco-editor-B8dwQNlP.js";import{useRoute as P}from"./vue-router-5AKQpGpA.js";import"./element-plus-CQpgC9_i.js";import"./vxe-N9ALOqba.js";import{B as g}from"./index-BXIT1FC6.js";import{i as A,s as V,X as T,t as k,y as D,Y as I}from"./index-iXYOUDkv.js";import{n as R,a as O,l as L,E as S}from"./utils-DL42QyEO.js";import{q as X}from"./@vueuse-CceCMEgA.js";import{d as Y,aB as h,e as q,K as z,O as H,P as K,o as N,h as b}from"./vue-CK7CG2oW.js";import"./lodash-es-BL-d_OSa.js";import"./@element-plus-icons-vue-CiUy_FB_.js";import"./shared-CFJLz5mK.js";import"./dayjs-DO-COJPZ.js";import"./html2canvas-CIV5arX1.js";import"./mockjs-BSD1DCM1.js";const nt=Y({__name:"page",setup(o){return l(this,null,function*(){let t,e;const p=new A(V(R)),r=([t,e]=h(()=>p.getExtension().catch(()=>null)),t=yield t,e(),t),m=T({loading:L,notify:R,useTitle:X,alert:O,access:r==null?void 0:r.access}),c=r?([t,e]=h(()=>new S(r).load()),t=yield t,e(),t):{},{__BASE_PATH__:n="/"}=r||{},{provider:a,onReady:i}=k({mode:D.Runtime,service:p,materialPath:n,adapter:d(d({},m),c.adapter),dependencies:{Vue:()=>C(()=>import("./vue-CK7CG2oW.js").then(s=>s.az),[],import.meta.url),VueRouter:()=>C(()=>import("./vue-router-5AKQpGpA.js"),__vite__mapDeps([0,1]),import.meta.url)}}),f=P(),_=q(),u=b();return i(()=>l(this,null,function*(){const s=u==null?void 0:u.appContext.app;s&&(s.use(g),s.use(a),_.value=yield a.getRenderComponent(f.params.id.toString(),v=>{I(s,f,v)}))})),(s,v)=>_.value?(N(),z(K(_.value),{key:0})):H("",!0)})}});export{nt as default};
@@ -1,2 +1,2 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-5AKQpGpA.js","./vue-CK7CG2oW.js"])))=>i.map(i=>d[i]);
2
- var h=Object.defineProperty;var y=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var E=(o,t,e)=>t in o?h(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,d=(o,t)=>{for(var e in t||(t={}))x.call(t,e)&&E(o,e,t[e]);if(y)for(var e of y(t))B.call(t,e)&&E(o,e,t[e]);return o};var l=(o,t,e)=>new Promise((p,r)=>{var m=a=>{try{n(e.next(a))}catch(i){r(i)}},c=a=>{try{n(e.throw(a))}catch(i){r(i)}},n=a=>a.done?p(a.value):Promise.resolve(a.value).then(m,c);n((e=e.apply(o,t)).next())});import{_ as w}from"./monaco-editor-B8dwQNlP.js";import{useRoute as P}from"./vue-router-5AKQpGpA.js";import"./element-plus-CQpgC9_i.js";import"./vxe-N9ALOqba.js";import{B as A}from"./index-C2YhZpTF.js";import{n as V,t as g,Q as T,e as k,y as D,G as I}from"./index-N2JsHbmk.js";import{n as C,a as O,l as G,E as L}from"./utils-D4cr5QWV.js";import{q as Q}from"./@vueuse-CceCMEgA.js";import{d as S,aB as R,e as q,K as z,O as H,P as K,o as N,h as b}from"./vue-CK7CG2oW.js";import"./lodash-es-BL-d_OSa.js";import"./@element-plus-icons-vue-CiUy_FB_.js";import"./shared-CFJLz5mK.js";import"./dayjs-DO-COJPZ.js";import"./html2canvas-CIV5arX1.js";import"./mockjs-BSD1DCM1.js";const nt=S({__name:"preview",setup(o){return l(this,null,function*(){let t,e;const p=new V(g(C)),r=([t,e]=R(()=>p.getExtension().catch(()=>null)),t=yield t,e(),t),m=T({loading:G,notify:C,useTitle:Q,alert:O,access:r==null?void 0:r.access}),c=r?([t,e]=R(()=>new L(r).load()),t=yield t,e(),t):{},{__BASE_PATH__:n="/"}=r||{},{provider:a,onReady:i}=k({mode:D.Runtime,service:p,materialPath:n,adapter:d(d({},m),c.adapter),dependencies:{Vue:()=>w(()=>import("./vue-CK7CG2oW.js").then(s=>s.az),[],import.meta.url),VueRouter:()=>w(()=>import("./vue-router-5AKQpGpA.js"),__vite__mapDeps([0,1]),import.meta.url)}}),f=P(),_=q(),u=b();return i(()=>l(this,null,function*(){const s=u==null?void 0:u.appContext.app;s&&(s.use(A),s.use(a),_.value=yield a.getRenderComponent(f.params.id.toString(),v=>{I(s,f,v)}))})),(s,v)=>_.value?(N(),z(K(_.value),{key:0})):H("",!0)})}});export{nt as default};
2
+ var h=Object.defineProperty;var y=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var E=(o,t,e)=>t in o?h(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,d=(o,t)=>{for(var e in t||(t={}))x.call(t,e)&&E(o,e,t[e]);if(y)for(var e of y(t))B.call(t,e)&&E(o,e,t[e]);return o};var l=(o,t,e)=>new Promise((p,r)=>{var m=a=>{try{n(e.next(a))}catch(i){r(i)}},c=a=>{try{n(e.throw(a))}catch(i){r(i)}},n=a=>a.done?p(a.value):Promise.resolve(a.value).then(m,c);n((e=e.apply(o,t)).next())});import{_ as w}from"./monaco-editor-B8dwQNlP.js";import{useRoute as P}from"./vue-router-5AKQpGpA.js";import"./element-plus-CQpgC9_i.js";import"./vxe-N9ALOqba.js";import{B as A}from"./index-BXIT1FC6.js";import{i as V,s as g,X as T,t as k,y as D,Y as I}from"./index-iXYOUDkv.js";import{n as C,a as O,l as L,E as S}from"./utils-DL42QyEO.js";import{q as X}from"./@vueuse-CceCMEgA.js";import{d as Y,aB as R,e as q,K as z,O as H,P as K,o as N,h as b}from"./vue-CK7CG2oW.js";import"./lodash-es-BL-d_OSa.js";import"./@element-plus-icons-vue-CiUy_FB_.js";import"./shared-CFJLz5mK.js";import"./dayjs-DO-COJPZ.js";import"./html2canvas-CIV5arX1.js";import"./mockjs-BSD1DCM1.js";const nt=Y({__name:"preview",setup(o){return l(this,null,function*(){let t,e;const p=new V(g(C)),r=([t,e]=R(()=>p.getExtension().catch(()=>null)),t=yield t,e(),t),m=T({loading:L,notify:C,useTitle:X,alert:O,access:r==null?void 0:r.access}),c=r?([t,e]=R(()=>new S(r).load()),t=yield t,e(),t):{},{__BASE_PATH__:n="/"}=r||{},{provider:a,onReady:i}=k({mode:D.Runtime,service:p,materialPath:n,adapter:d(d({},m),c.adapter),dependencies:{Vue:()=>w(()=>import("./vue-CK7CG2oW.js").then(s=>s.az),[],import.meta.url),VueRouter:()=>w(()=>import("./vue-router-5AKQpGpA.js"),__vite__mapDeps([0,1]),import.meta.url)}}),f=P(),_=q(),u=b();return i(()=>l(this,null,function*(){const s=u==null?void 0:u.appContext.app;s&&(s.use(A),s.use(a),_.value=yield a.getRenderComponent(f.params.id.toString(),v=>{I(s,f,v)}))})),(s,v)=>_.value?(N(),z(K(_.value),{key:0})):H("",!0)})}});export{nt as default};
@@ -1 +1 @@
1
- var b=Object.defineProperty;var m=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable;var f=(r,s,t)=>s in r?b(r,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[s]=t,_=(r,s)=>{for(var t in s||(s={}))g.call(s,t)&&f(r,t,s[t]);if(m)for(var t of m(s))d.call(s,t)&&f(r,t,s[t]);return r};var c=(r,s,t)=>f(r,typeof s!="symbol"?s+"":s,t);var p=(r,s,t)=>new Promise((n,o)=>{var a=i=>{try{e(t.next(i))}catch(l){o(l)}},u=i=>{try{e(t.throw(i))}catch(l){o(l)}},e=i=>i.done?n(i.value):Promise.resolve(i.value).then(a,u);e((t=t.apply(r,s)).next())});import{az as E}from"./vue-CK7CG2oW.js";import{V as y,r as A,c as V,a as P,Z as x,Y as B,b as T}from"./index-N2JsHbmk.js";import{V as j,a as w,d as H}from"./index-C2YhZpTF.js";import{a as S,b as $,c as k,d as v}from"./element-plus-CQpgC9_i.js";class z{constructor(s){c(this,"urls",[]);c(this,"library","");c(this,"params",[]);c(this,"__BASE_PATH__","/");this.config=s;const t=_(_(_({},V),H),A),n={Vue:E,__VTJ_PRO__:t,VtjUtils:y,VtjIcons:w,VtjUI:j,ElementPlus:S};for(const[l,h]of Object.entries(n))window[l]=h;const{extension:o,__BASE_PATH__:a="/"}=s||{},{urls:u=[],library:e,params:i=[]}=o||{};this.urls=u,this.library=e,this.params=i,this.__BASE_PATH__=a}load(){return p(this,null,function*(){let s={};if(this.library){const t=this.__BASE_PATH__,n=this.urls.filter(a=>P(a)).map(a=>`${t}${a}`),o=this.urls.filter(a=>x(a)).map(a=>`${t}${a}`);if(B(n),o.length){const a=yield T(o,this.library).catch(()=>null);a&&typeof a=="function"?s=a.call(a,this.config,...this.params):s=a||{}}}return s})}}function J(){return v.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"})}function M(r,s="",t="warning"){k({title:s,message:r,type:t})}function N(r,s){return $.alert(r,s)}export{z as E,N as a,J as l,M as n};
1
+ var b=Object.defineProperty;var m=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable;var f=(r,s,t)=>s in r?b(r,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[s]=t,_=(r,s)=>{for(var t in s||(s={}))g.call(s,t)&&f(r,t,s[t]);if(m)for(var t of m(s))d.call(s,t)&&f(r,t,s[t]);return r};var c=(r,s,t)=>f(r,typeof s!="symbol"?s+"":s,t);var p=(r,s,t)=>new Promise((n,o)=>{var a=i=>{try{e(t.next(i))}catch(l){o(l)}},u=i=>{try{e(t.throw(i))}catch(l){o(l)}},e=i=>i.done?n(i.value):Promise.resolve(i.value).then(a,u);e((t=t.apply(r,s)).next())});import{az as E}from"./vue-CK7CG2oW.js";import{V as y,r as A,c as V,a as P,b as x,Q as B,d as T}from"./index-iXYOUDkv.js";import{V as j,a as w,b as H}from"./index-BXIT1FC6.js";import{a as S,b as $,c as k,d as v}from"./element-plus-CQpgC9_i.js";class X{constructor(s){c(this,"urls",[]);c(this,"library","");c(this,"params",[]);c(this,"__BASE_PATH__","/");this.config=s;const t=_(_(_({},V),H),A),n={Vue:E,__VTJ_PRO__:t,VtjUtils:y,VtjIcons:w,VtjUI:j,ElementPlus:S};for(const[l,h]of Object.entries(n))window[l]=h;const{extension:o,__BASE_PATH__:a="/"}=s||{},{urls:u=[],library:e,params:i=[]}=o||{};this.urls=u,this.library=e,this.params=i,this.__BASE_PATH__=a}load(){return p(this,null,function*(){let s={};if(this.library){const t=this.__BASE_PATH__,n=this.urls.filter(a=>P(a)).map(a=>`${t}${a}`),o=this.urls.filter(a=>x(a)).map(a=>`${t}${a}`);if(B(n),o.length){const a=yield T(o,this.library).catch(()=>null);a&&typeof a=="function"?s=a.call(a,this.config,...this.params):s=a||{}}}return s})}}function z(){return v.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"})}function J(r,s="",t="warning"){k({title:s,message:r,type:t})}function M(r,s){return $.alert(r,s)}export{X as E,M as a,z as l,J as n};
package/dist/index.html CHANGED
@@ -9,7 +9,7 @@
9
9
  <meta http-equiv="Expires" content="0"/>
10
10
  <title>低代码设计器 - VTJ.PRO</title>
11
11
  <script>
12
- var __BUILD_TIME__ = '1742264033207';
12
+ var __BUILD_TIME__ = '1742350322817';
13
13
  (function () {
14
14
  const regex = /<!--{{(\d*)}}-->/;
15
15
  window.fetch('?t=' + Date.now()).then(async (res) => {
@@ -25,9 +25,9 @@
25
25
  });
26
26
  })();
27
27
  </script>
28
- <!--{{1742264033207}}-->
28
+ <!--{{1742350322817}}-->
29
29
 
30
- <script type="module" crossorigin src="./assets/index-N2JsHbmk.js"></script>
30
+ <script type="module" crossorigin src="./assets/index-iXYOUDkv.js"></script>
31
31
  <link rel="modulepreload" crossorigin href="./assets/vue-CK7CG2oW.js">
32
32
  <link rel="modulepreload" crossorigin href="./assets/vue-router-5AKQpGpA.js">
33
33
  <link rel="modulepreload" crossorigin href="./assets/lodash-es-BL-d_OSa.js">