@vtj/pro 0.9.21 → 0.9.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.
@@ -1,2 +1,2 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-CrZzyM_O.js","./vue-DEqBd9tH.js"])))=>i.map(i=>d[i]);
2
- var T=Object.defineProperty,I=Object.defineProperties;var S=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var O=(o,e,t)=>e in o?T(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,g=(o,e)=>{for(var t in e||(e={}))V.call(e,t)&&O(o,t,e[t]);if(C)for(var t of C(e))b.call(e,t)&&O(o,t,e[t]);return o},l=(o,e)=>I(o,S(e));var E=(o,e,t)=>new Promise((_,i)=>{var p=s=>{try{a(t.next(s))}catch(m){i(m)}},c=s=>{try{a(t.throw(s))}catch(m){i(m)}},a=s=>s.done?_(s.value):Promise.resolve(s.value).then(p,c);a((t=t.apply(o,e)).next())});import{_ as R}from"./monaco-editor-BhWNbPWS.js";import{useRoute as B}from"./vue-router-CrZzyM_O.js";import{A as L,O as M,M as k,T as D,a as j,I as K,y as G}from"./index-CfUBkLtJ.js";import{a as H}from"./element-plus-C1NYT3Gu.js";import"./vxe-CzgOUQRv.js";import{b as J,E as N}from"./extension-DMkHTD-w.js";import{l as Y,n as v}from"./utils-B9i9aHNx.js";import{d as q,aA as w,e as z,J as F,M as Q,O as U,h as W,o as X}from"./vue-DEqBd9tH.js";import"./mockjs-D_rM_kf7.js";import"./dayjs-D_Mdy0hN.js";import"./lodash-es-Cd_vyJR8.js";import"./@vueuse-54eSL_G4.js";import"./@element-plus-icons-vue-CClttscX.js";import"./shared-CMPiinVg.js";import"./html2canvas-D2Pt4KSj.js";const le=q({__name:"page",setup(o){return E(this,null,function*(){let e,t;const _=L({loading:Y,notify:v}),i=new M(k(v)),p=([e,t]=w(()=>i.getExtension().catch(()=>null)),e=yield e,t(),e),{options:c,adapters:a}=p?([e,t]=w(()=>new N(p).load()),e=yield e,t(),e):{},{__BASE_PATH__:s="/"}=p||{},m=a==null?void 0:a.access,x=a==null?void 0:a.remote,P=m?new D(l(g({},m),{alert:H.alert,storageKey:j})):void 0,{provider:y,onReady:h}=K(l(g({mode:G.Runtime,service:i,materialPath:s,adapter:Object.assign(_,{access:P,remote:x},(c==null?void 0:c.adapter)||{})},c||{}),{dependencies:{Vue:()=>R(()=>import("./vue-DEqBd9tH.js").then(n=>n.ay),[],import.meta.url),VueRouter:()=>R(()=>import("./vue-router-CrZzyM_O.js"),__vite__mapDeps([0,1]),import.meta.url)}})),A=B(),u=z(),d=W();return h(()=>E(this,null,function*(){const n=d==null?void 0:d.appContext.app;n&&(n.use(J),n.use(y)),u.value=yield y.getRenderComponent(A.params.id.toString(),r=>{Object.assign(A.meta,r.meta);const f=n==null?void 0:n._container;(r==null?void 0:r.type)==="page"&&f.classList.add("is-page"),(r==null?void 0:r.pure)&&f.classList.add("is-pure")})})),(n,r)=>u.value?(X(),F(Q(u.value),{key:0})):U("",!0)})}});export{le as default};
2
+ var B=Object.defineProperty,D=Object.defineProperties;var I=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var R=(o,e,t)=>e in o?B(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,g=(o,e)=>{for(var t in e||(e={}))S.call(e,t)&&R(o,t,e[t]);if(C)for(var t of C(e))V.call(e,t)&&R(o,t,e[t]);return o},l=(o,e)=>D(o,I(e));var E=(o,e,t)=>new Promise((_,i)=>{var p=s=>{try{a(t.next(s))}catch(m){i(m)}},c=s=>{try{a(t.throw(s))}catch(m){i(m)}},a=s=>s.done?_(s.value):Promise.resolve(s.value).then(p,c);a((t=t.apply(o,e)).next())});import{_ as v}from"./monaco-editor-BhWNbPWS.js";import{useRoute as b}from"./vue-router-CrZzyM_O.js";import{I as L,B as M,D as T,A as k,a as j,M as K,y as G}from"./index-DxbV-kZL.js";import{a as H}from"./element-plus-C1NYT3Gu.js";import"./vxe-CzgOUQRv.js";import{b as J,E as N}from"./extension-CIBt87P8.js";import{l as Y,n as w}from"./utils-B9i9aHNx.js";import{d as q,aA as x,e as z,J as F,M as Q,O as U,h as W,o as X}from"./vue-DEqBd9tH.js";import"./mockjs-D_rM_kf7.js";import"./dayjs-D_Mdy0hN.js";import"./lodash-es-Cd_vyJR8.js";import"./@vueuse-54eSL_G4.js";import"./@element-plus-icons-vue-CClttscX.js";import"./shared-CMPiinVg.js";import"./html2canvas-D2Pt4KSj.js";const le=q({__name:"page",setup(o){return E(this,null,function*(){let e,t;const _=L({loading:Y,notify:w}),i=new M(T(w)),p=([e,t]=x(()=>i.getExtension().catch(()=>null)),e=yield e,t(),e),{options:c,adapters:a}=p?([e,t]=x(()=>new N(p).load()),e=yield e,t(),e):{},{__BASE_PATH__:s="/"}=p||{},m=a==null?void 0:a.access,O=a==null?void 0:a.remote,P=m?new k(l(g({},m),{alert:H.alert,storageKey:j})):void 0,{provider:y,onReady:h}=K(l(g({mode:G.Runtime,service:i,materialPath:s,adapter:Object.assign(_,{access:P,remote:O},(c==null?void 0:c.adapter)||{})},c||{}),{dependencies:{Vue:()=>v(()=>import("./vue-DEqBd9tH.js").then(n=>n.ay),[],import.meta.url),VueRouter:()=>v(()=>import("./vue-router-CrZzyM_O.js"),__vite__mapDeps([0,1]),import.meta.url)}})),A=b(),u=z(),d=W();return h(()=>E(this,null,function*(){const n=d==null?void 0:d.appContext.app;n&&(n.use(J),n.use(y)),u.value=yield y.getRenderComponent(A.params.id.toString(),r=>{Object.assign(A.meta,r.meta);const f=n==null?void 0:n._container;(r==null?void 0:r.type)==="page"&&f.classList.add("is-page"),(r==null?void 0:r.pure)&&f.classList.add("is-pure")})})),(n,r)=>u.value?(X(),F(Q(u.value),{key:0})):U("",!0)})}});export{le as default};
@@ -1,2 +1,2 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-CrZzyM_O.js","./vue-DEqBd9tH.js"])))=>i.map(i=>d[i]);
2
- var T=Object.defineProperty,I=Object.defineProperties;var S=Object.getOwnPropertyDescriptors;var f=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var C=(o,e,t)=>e in o?T(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,l=(o,e)=>{for(var t in e||(e={}))V.call(e,t)&&C(o,t,e[t]);if(f)for(var t of f(e))b.call(e,t)&&C(o,t,e[t]);return o},O=(o,e)=>I(o,S(e));var g=(o,e,t)=>new Promise((_,i)=>{var p=s=>{try{a(t.next(s))}catch(m){i(m)}},c=s=>{try{a(t.throw(s))}catch(m){i(m)}},a=s=>s.done?_(s.value):Promise.resolve(s.value).then(p,c);a((t=t.apply(o,e)).next())});import{_ as v}from"./monaco-editor-BhWNbPWS.js";import{useRoute as B}from"./vue-router-CrZzyM_O.js";import{a as L}from"./element-plus-C1NYT3Gu.js";import"./vxe-CzgOUQRv.js";import{b as M,E as k}from"./extension-DMkHTD-w.js";import{A as D,O as j,M as K,T as G,a as H,I as J,y as N}from"./index-CfUBkLtJ.js";import{l as Y,n as w}from"./utils-B9i9aHNx.js";import{d as q,aA as R,e as z,J as F,M as Q,O as U,h as W,o as X}from"./vue-DEqBd9tH.js";import"./lodash-es-Cd_vyJR8.js";import"./@vueuse-54eSL_G4.js";import"./@element-plus-icons-vue-CClttscX.js";import"./shared-CMPiinVg.js";import"./dayjs-D_Mdy0hN.js";import"./html2canvas-D2Pt4KSj.js";import"./mockjs-D_rM_kf7.js";const ge=q({__name:"preview",setup(o){return g(this,null,function*(){let e,t;const _=D({loading:Y,notify:w}),i=new j(K(w)),p=([e,t]=R(()=>i.getExtension().catch(()=>null)),e=yield e,t(),e),{options:c,adapters:a}=p?([e,t]=R(()=>new k(p).load()),e=yield e,t(),e):{},{__BASE_PATH__:s="/"}=p||{},m=a==null?void 0:a.access,x=a==null?void 0:a.remote,P=m?new G(l({alert:L.alert,storageKey:H},m)):void 0,{provider:E,onReady:h}=J(O(l({mode:N.Runtime,service:i,materialPath:s},c||{}),{adapter:Object.assign(_,{access:P,remote:x},(c==null?void 0:c.adapter)||{}),dependencies:{Vue:()=>v(()=>import("./vue-DEqBd9tH.js").then(n=>n.ay),[],import.meta.url),VueRouter:()=>v(()=>import("./vue-router-CrZzyM_O.js"),__vite__mapDeps([0,1]),import.meta.url)}})),y=B(),u=z(),d=W();return h(()=>g(this,null,function*(){const n=d==null?void 0:d.appContext.app;n&&(n.use(M),n.use(E)),u.value=yield E.getRenderComponent(y.params.id.toString(),r=>{Object.assign(y.meta,r.meta);const A=n==null?void 0:n._container;(r==null?void 0:r.type)==="page"&&A.classList.add("is-page"),(r==null?void 0:r.pure)&&A.classList.add("is-pure")})})),(n,r)=>u.value?(X(),F(Q(u.value),{key:0})):U("",!0)})}});export{ge as default};
2
+ var B=Object.defineProperty,D=Object.defineProperties;var I=Object.getOwnPropertyDescriptors;var f=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var C=(o,e,t)=>e in o?B(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,l=(o,e)=>{for(var t in e||(e={}))S.call(e,t)&&C(o,t,e[t]);if(f)for(var t of f(e))V.call(e,t)&&C(o,t,e[t]);return o},v=(o,e)=>D(o,I(e));var g=(o,e,t)=>new Promise((_,i)=>{var p=s=>{try{a(t.next(s))}catch(m){i(m)}},c=s=>{try{a(t.throw(s))}catch(m){i(m)}},a=s=>s.done?_(s.value):Promise.resolve(s.value).then(p,c);a((t=t.apply(o,e)).next())});import{_ as w}from"./monaco-editor-BhWNbPWS.js";import{useRoute as b}from"./vue-router-CrZzyM_O.js";import{a as L}from"./element-plus-C1NYT3Gu.js";import"./vxe-CzgOUQRv.js";import{b as M,E as T}from"./extension-CIBt87P8.js";import{I as k,B as j,D as K,A as G,a as H,M as J,y as N}from"./index-DxbV-kZL.js";import{l as Y,n as R}from"./utils-B9i9aHNx.js";import{d as q,aA as x,e as z,J as F,M as Q,O as U,h as W,o as X}from"./vue-DEqBd9tH.js";import"./lodash-es-Cd_vyJR8.js";import"./@vueuse-54eSL_G4.js";import"./@element-plus-icons-vue-CClttscX.js";import"./shared-CMPiinVg.js";import"./dayjs-D_Mdy0hN.js";import"./html2canvas-D2Pt4KSj.js";import"./mockjs-D_rM_kf7.js";const ge=q({__name:"preview",setup(o){return g(this,null,function*(){let e,t;const _=k({loading:Y,notify:R}),i=new j(K(R)),p=([e,t]=x(()=>i.getExtension().catch(()=>null)),e=yield e,t(),e),{options:c,adapters:a}=p?([e,t]=x(()=>new T(p).load()),e=yield e,t(),e):{},{__BASE_PATH__:s="/"}=p||{},m=a==null?void 0:a.access,O=a==null?void 0:a.remote,P=m?new G(l({alert:L.alert,storageKey:H},m)):void 0,{provider:E,onReady:h}=J(v(l({mode:N.Runtime,service:i,materialPath:s},c||{}),{adapter:Object.assign(_,{access:P,remote:O},(c==null?void 0:c.adapter)||{}),dependencies:{Vue:()=>w(()=>import("./vue-DEqBd9tH.js").then(n=>n.ay),[],import.meta.url),VueRouter:()=>w(()=>import("./vue-router-CrZzyM_O.js"),__vite__mapDeps([0,1]),import.meta.url)}})),y=b(),u=z(),d=W();return h(()=>g(this,null,function*(){const n=d==null?void 0:d.appContext.app;n&&(n.use(M),n.use(E)),u.value=yield E.getRenderComponent(y.params.id.toString(),r=>{Object.assign(y.meta,r.meta);const A=n==null?void 0:n._container;(r==null?void 0:r.type)==="page"&&A.classList.add("is-page"),(r==null?void 0:r.pure)&&A.classList.add("is-pure")})})),(n,r)=>u.value?(X(),F(Q(u.value),{key:0})):U("",!0)})}});export{ge as default};
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__ = '1736857259950';
12
+ var __BUILD_TIME__ = '1737521295453';
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
- <!--{{1736857259950}}-->
28
+ <!--{{1737521295453}}-->
29
29
 
30
- <script type="module" crossorigin src="./assets/index-CfUBkLtJ.js"></script>
30
+ <script type="module" crossorigin src="./assets/index-DxbV-kZL.js"></script>
31
31
  <link rel="modulepreload" crossorigin href="./assets/vue-DEqBd9tH.js">
32
32
  <link rel="modulepreload" crossorigin href="./assets/dayjs-D_Mdy0hN.js">
33
33
  <link rel="modulepreload" crossorigin href="./assets/mockjs-D_rM_kf7.js">
package/package.json CHANGED
@@ -2,23 +2,23 @@
2
2
  "name": "@vtj/pro",
3
3
  "description": "VTJ.PRO",
4
4
  "private": false,
5
- "version": "0.9.21",
5
+ "version": "0.9.23",
6
6
  "type": "module",
7
7
  "dependencies": {
8
- "@vtj/designer": "~0.9.21",
9
- "@vtj/local": "~0.9.21",
10
- "@vtj/renderer": "~0.9.21",
11
- "@vtj/core": "~0.9.21",
12
- "@vtj/materials": "~0.9.21"
8
+ "@vtj/core": "~0.9.23",
9
+ "@vtj/designer": "~0.9.23",
10
+ "@vtj/local": "~0.9.23",
11
+ "@vtj/materials": "~0.9.23",
12
+ "@vtj/renderer": "~0.9.23"
13
13
  },
14
14
  "devDependencies": {
15
15
  "vue": "~3.5.5",
16
16
  "vue-router": "~4.5.0",
17
+ "@vtj/charts": "~0.9.23",
17
18
  "@vtj/cli": "~0.9.8",
18
- "@vtj/ui": "~0.9.21",
19
- "@vtj/icons": "~0.9.21",
20
- "@vtj/utils": "~0.9.21",
21
- "@vtj/charts": "~0.9.21"
19
+ "@vtj/icons": "~0.9.23",
20
+ "@vtj/utils": "~0.9.23",
21
+ "@vtj/ui": "~0.9.23"
22
22
  },
23
23
  "exports": {
24
24
  "./vite": {
@@ -44,7 +44,7 @@
44
44
  "access": "public"
45
45
  },
46
46
  "vtj": {
47
- "platform": "h5",
47
+ "platform": "web",
48
48
  "adapters": {
49
49
  "remote": "https://lcdp.vtj.pro",
50
50
  "access": {
@@ -1 +0,0 @@
1
- var k=Object.defineProperty,A=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var w=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var g=(e,t,o)=>t in e?k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,E=(e,t)=>{for(var o in t||(t={}))v.call(t,o)&&g(e,o,t[o]);if(w)for(var o of w(t))B.call(t,o)&&g(e,o,t[o]);return e},x=(e,t)=>A(e,O(t));var u=(e,t,o)=>new Promise((i,m)=>{var p=n=>{try{r(o.next(n))}catch(a){m(a)}},s=n=>{try{r(o.throw(n))}catch(a){m(a)}},r=n=>n.done?i(n.value):Promise.resolve(n.value).then(p,s);r((o=o.apply(e,t)).next())});import{useRoute as I}from"./vue-router-CrZzyM_O.js";import{T as R,a as S,O as T,u as q}from"./index-CfUBkLtJ.js";import{a as y}from"./element-plus-C1NYT3Gu.js";import"./vxe-CzgOUQRv.js";import{E as K}from"./extension-DMkHTD-w.js";import{d as $,aA as _,c as b,o as G}from"./vue-DEqBd9tH.js";import{_ as L}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./mockjs-D_rM_kf7.js";import"./dayjs-D_Mdy0hN.js";import"./monaco-editor-BhWNbPWS.js";import"./lodash-es-Cd_vyJR8.js";import"./@vueuse-54eSL_G4.js";import"./@element-plus-icons-vue-CClttscX.js";import"./shared-CMPiinVg.js";import"./html2canvas-D2Pt4KSj.js";const M={class:"loading"},U=$({__name:"auth",setup(e){return u(this,null,function*(){let t,o;const i=I(),m=new T,p=([t,o]=_(()=>m.getExtension().catch(()=>null)),t=yield t,o(),t),{adapters:s}=p?([t,o]=_(()=>new K(p).load()),t=yield t,o(),t):{},r=s==null?void 0:s.access,n=s==null?void 0:s.remote,a=r?new R(x(E({},r),{alert:y.alert,storageKey:S})):void 0,C=c=>u(this,null,function*(){const h=`${n}/api/open/user/${c}`,l=yield q(h).catch(()=>null);return!l||!l.success?(yield y.alert("登录失败"),null):l.data}),f=i.query.token,d=f?([t,o]=_(()=>C(f)),t=yield t,o(),t):null;if(d)try{a==null||a.login(d);const c=i.query.redirect;location.href=decodeURIComponent(c||"/")}catch(c){location.reload()}return(c,h)=>(G(),b("div",M,"正在登录中..."))})}}),et=L(U,[["__scopeId","data-v-b861aa1a"]]);export{et as default};