@vtj/pro 0.16.30 → 0.16.31
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.
- package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
- package/dist/assets/{Editor-C-TdqSeA-BRYIqzWS.js → Editor-BiQ7hKH3-GiPeUrGn.js} +61 -61
- package/dist/assets/{auth-B2k7yFSN.js → auth-DJ4PMmme.js} +1 -1
- package/dist/assets/{index-Bwq6X_jn.js → index-D5nR8xfG.js} +2 -2
- package/dist/assets/{index-CDDHUgVh.js → index-DNnEziYU.js} +1 -1
- package/dist/assets/{page-CkxEcaiT.js → page-Cs5U5TFn.js} +1 -1
- package/dist/assets/{preview-P2Je_grN.js → preview-C_N5GqPT.js} +1 -1
- package/dist/assets/{utils-Bg43eza_.js → utils-DXX32UxF.js} +1 -1
- package/dist/index.html +3 -3
- package/dist/uni/assets/{index-C4A1RoXI.js → index-QBUMP5OB.js} +26 -26
- package/dist/uni/index.html +1 -1
- package/package.json +11 -11
- /package/dist/assets/{Editor-C-TdqSeA-ClyxY6WL.css → Editor-BiQ7hKH3-ClyxY6WL.css} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
var k=Object.defineProperty;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var x=(o,e,t)=>e in o?k(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)&&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{q,aF as I,a9 as d,aG as b,aH as E,Q as v}from"./Editor-
|
|
1
|
+
var k=Object.defineProperty;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var x=(o,e,t)=>e in o?k(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)&&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{q,aF as I,a9 as d,aG as b,aH as E,Q as v}from"./Editor-BiQ7hKH3-GiPeUrGn.js";import{useRoute as B}from"./vue-router-DLyhMsB6.js";import{x as w,az as f,I as R,D as C,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 L={class:"loading"},Q=w({__name:"Auth",props:{remote:{},access:{},baseUrl:{default:"/"}},setup(o){return _(this,null,function*(){let e,t;const c=o,s=q(u(u({alert:d},I),c.access)),n=B(),p=a=>_(null,null,function*(){const h=`${c.remote||b}/api/open/user/${a}`,m=yield E(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)=>(C(),R("div",L,"正在登录中..."))})}}),S=G(Q,[["__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)?(C(),$(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-
|
|
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-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-DNnEziYU.js","./vue-router-DLyhMsB6.js","./vue-Cs4cahp0.js","./@vueuse-DGhgU4Wj.js","./Editor-BiQ7hKH3-GiPeUrGn.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-BiQ7hKH3-ClyxY6WL.css","./utils-DXX32UxF.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-Br68Req3.css","./preview-C_N5GqPT.js","./page-Cs5U5TFn.js","./uni-page-hurVTe5x.js","./uni-page-Diqmj53r.css","./auth-DJ4PMmme.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-DNnEziYU.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-C_N5GqPT.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-Cs5U5TFn.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-DJ4PMmme.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 +1 @@
|
|
|
1
|
-
var L=Object.defineProperty;var P=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var C=(n,e,t)=>e in n?L(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))Q.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 V}from"./vue-router-DLyhMsB6.js";import{y as W}from"./@vueuse-DGhgU4Wj.js";import{Q as Z,G as j,L as z,q as D,Z as E,a as J,d as v}from"./Editor-
|
|
1
|
+
var L=Object.defineProperty;var P=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var C=(n,e,t)=>e in n?L(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))Q.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 V}from"./vue-router-DLyhMsB6.js";import{y as W}from"./@vueuse-DGhgU4Wj.js";import{Q as Z,G as j,L as z,q as D,Z as E,a as J,d as v}from"./Editor-BiQ7hKH3-GiPeUrGn.js";import"./element-plus-ClWnlNxy.js";import"./vxe-BJJKGxpR.js";import{E as K,a as S,n as A,l as O}from"./utils-DXX32UxF.js";import{x as U,az as B,d as M,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=U({__name:"index",setup(n){return d(this,null,function*(){let e,t;const _=V(),r=Y(),l=new Z(j(A)),s=([e,t]=B(()=>l.getExtension().catch(()=>null)),e=yield e,t(),e||{}),i=s?([e,t]=B(()=>new K(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:o="/",history:p="hash",base:h="/",pageRouteName:y="page",remote:g,auth:k,checkVersion:q=!0,enhance:F,platform:R="web"}=s||{},T=z({loading:O,notify:A,useTitle:W,alert:S,access:s==null?void 0:s.access,settings:{proxyPath:`${g}/api/proxy`}}),b=D(w({alert:S},s==null?void 0:s.__ACCESS__)),G=()=>p==="hash",H=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 I=s.pageBasePath?`/${y}`:"",x=`${H(h)}${u?`pages${I}`:y}/${f.id}`;m=G()?`${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 J(w({container:r,service:l,materialPath:o,pageBasePath:h==="/"?"":h,adapter:T,access:b,remote:g,auth:k,checkVersion:q,enhance:F,project:{platform:R}},i));return $.ready(()=>d(null,null,function*(){yield v(300),$.openFile(_.query.id)})),M(()=>_.query.id,a=>d(null,null,function*(){yield v(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 P}from"./vue-router-DLyhMsB6.js";import"./element-plus-ClWnlNxy.js";import"./vxe-BJJKGxpR.js";import{Q as V,G as D,L,K as T,y as k,Y as B,N as I}from"./Editor-
|
|
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{Q as V,G as D,L,K as T,y as k,Y as B,N as I}from"./Editor-BiQ7hKH3-GiPeUrGn.js";import{a as N,n as g,l as S,E as G}from"./utils-DXX32UxF.js";import{y as K}from"./@vueuse-DGhgU4Wj.js";import{x as O,az as w,d as Q,E as Y,S as z,U as H,r as U,D as b,g as j}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 V(D(g)),s=([t,e]=w(()=>_.getExtension().catch(()=>null)),t=yield t,e(),t),u=L({loading:S,notify:g,useTitle:K,alert:N,access:s==null?void 0:s.access}),d=s?([t,e]=w(()=>new G(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:()=>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=U(),n=j(),v=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),v(a))})),Q(()=>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?(b(),Y(z(f.value),{key:0})):H("",!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,g=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))g.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 P}from"./vue-router-DLyhMsB6.js";import"./element-plus-ClWnlNxy.js";import"./vxe-BJJKGxpR.js";import{Q as V,G as D,L,K as T,y as k,z,Y as B,N as I}from"./Editor-
|
|
2
|
+
var R=Object.defineProperty;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,g=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))g.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 P}from"./vue-router-DLyhMsB6.js";import"./element-plus-ClWnlNxy.js";import"./vxe-BJJKGxpR.js";import{Q as V,G as D,L,K as T,y as k,z,Y as B,N as I}from"./Editor-BiQ7hKH3-GiPeUrGn.js";import{a as N,n as h,l as S,E as G}from"./utils-DXX32UxF.js";import{y as K}from"./@vueuse-DGhgU4Wj.js";import{x as O,az as x,E as Q,S as Y,U as H,r as U,D as b,g as j}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=O({__name:"preview",setup(o){return f(this,null,function*(){let e,t;const c=new V(D(h)),s=([e,t]=x(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e||{}),_=L({loading:S,notify:h,useTitle:K,alert:N,access:s==null?void 0:s.access}),n=s?([e,t]=x(()=>new G(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:i="/"}=s||{},{provider:a,onReady:p}=T({mode:k.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=P(),u=U(),l=j();return p(()=>f(null,null,function*(){const m=yield z(s.enhance),r=l==null?void 0:l.appContext.app;r&&(n.install&&n.install(r),m&&r.use(m,a),r.use(B),r.use(a),u.value=yield a.getRenderComponent(v.params.id.toString(),C=>{I(r,v,C)}))})),(m,r)=>u.value?(b(),Q(Y(u.value),{key:0})):H("",!0)})}});export{pe as default};
|
|
@@ -1 +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,B as R,c as y,e as B,a as
|
|
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,B as R,c as y,e as B,a as D,A as L,X as M,f as N,S as k,k as H,g as K,F as v,h as x,i as w,j as F,l as G,m as W,n as Y,x as C,o as U,r as $,s as J,t as X,u as j,w as z,C as Z,D as q,E as Q,I as aa,M as sa,O as ea,P as ta,T 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 Ba,al as Da,am as La,an as Ma,ao as Na,ap as ka,aq as Ha,ar as Ka,as as va,at as xa,au as wa,av as Fa,aw as Ga,Z as Wa,ax as Ya,ay as Ca,az as Ua,aA as $a,aB as Ja,aC as Xa,aD as ja,aE as za}from"./Editor-BiQ7hKH3-GiPeUrGn.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:B,Engine:D,EventBinder:L,GET_TOKENS_LINK:M,HOT_KEYS_DEP:N,Icon:k,Item:H,KEYBOARD_EVENT_LIST:K,MAX_TOKENS:v,MOBILE_SIZE:x,MOUSE_EVENT_LIST:w,NAME_REGEX:F,NPM_REGISTRY_URL:G,OpenApi:W,PAD_SIZE:Y,Panel:C,REPORT_API:U,RegionType:$,RegionWrapper:J,Renderer:X,SAVE_BLOCK_FILE_FINISH:j,SESSION_ID_KEY:z,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:Ba,getClassProperties:Da,loading:La,message:Ma,normalizedStyle:Na,notify:ka,proxyContext:Ha,readJsonFile:Ka,regions:va,setterManager:xa,setters:wa,upgradeVersion:Fa,useEngine:Ga,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=>$a(e)).map(e=>`${s}${e}`),n=this.urls.filter(e=>Ja(e)).map(e=>`${s}${e}`);if(Xa(o),n.length){const e=yield ja(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 za(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__ = '
|
|
14
|
+
var __BUILD_TIME__ = '1777388843243';
|
|
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
|
-
<!--{{
|
|
30
|
+
<!--{{1777388843243}}-->
|
|
31
31
|
|
|
32
|
-
<script type="module" crossorigin src="./assets/index-
|
|
32
|
+
<script type="module" crossorigin src="./assets/index-D5nR8xfG.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">
|