@vtj/pro 0.18.20 → 0.18.21
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 +5 -5
- package/dist/assets/{Editor-8bcLN8x9-CZmDIOJ6.js → Editor-BtHpdmgy-BsN1n3B_.js} +99 -99
- package/dist/assets/{auth-B2G7YeSi.js → auth-BJYr8qUg.js} +1 -1
- package/dist/assets/{index-CKZ1FqDN.js → index-CkLQGMO1.js} +1 -1
- package/dist/assets/{index-7OeWNK5B.js → index-sZpYQ3KH.js} +2 -2
- package/dist/assets/{page-Db-d3qgd.js → page-G_eZBhIZ.js} +1 -1
- package/dist/assets/{preview-V_k8JFvb.js → preview-JAkp4P52.js} +1 -1
- package/dist/assets/{utils-ZbodytfM.js → utils-f_F5YUCU.js} +1 -1
- package/dist/index.html +3 -3
- package/dist/uni/assets/{@dcloudio-uni-h5-vue-8G49trTf.js → @dcloudio-uni-h5-vue-BSNRkEM_.js} +1 -1
- package/dist/uni/assets/{index-CpsS6Czr.js → index-BUZb83gv.js} +31 -31
- package/dist/uni/assets/{vue-router-LSjIZEXc.js → vue-router-DFsWHEOo.js} +1 -1
- package/dist/uni/index.html +3 -3
- package/package.json +11 -11
- /package/dist/assets/{Editor-8bcLN8x9-C4uXNc6V.css → Editor-BtHpdmgy-C4uXNc6V.css} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
var x=Object.defineProperty;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var w=(o,e,t)=>e in o?x(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)&&w(o,t,e[t]);if(y)for(var t of y(e))I.call(e,t)&&w(o,t,e[t]);return o};var _=(o,e,t)=>new Promise((c,r)=>{var n=s=>{try{i(t.next(s))}catch(a){r(a)}},p=s=>{try{i(t.throw(s))}catch(a){r(a)}},i=s=>s.done?c(s.value):Promise.resolve(s.value).then(n,p);i((t=t.apply(o,e)).next())});import"./element-plus-_gYoEp33.js";import"./vxe-BulginLS.js";import{D as U,aI as b,ac as d,aJ as B,aK as E,X as R}from"./Editor-
|
|
1
|
+
var x=Object.defineProperty;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var w=(o,e,t)=>e in o?x(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)&&w(o,t,e[t]);if(y)for(var t of y(e))I.call(e,t)&&w(o,t,e[t]);return o};var _=(o,e,t)=>new Promise((c,r)=>{var n=s=>{try{i(t.next(s))}catch(a){r(a)}},p=s=>{try{i(t.throw(s))}catch(a){r(a)}},i=s=>s.done?c(s.value):Promise.resolve(s.value).then(n,p);i((t=t.apply(o,e)).next())});import"./element-plus-_gYoEp33.js";import"./vxe-BulginLS.js";import{D as U,aI as b,ac as d,aJ as B,aK as E,X as R}from"./Editor-BtHpdmgy-BsN1n3B_.js";import{useRoute as q}from"./vue-router-CDqTjrgM.js";import{y as C,az as f,I as v,D as k,u as l,E as D,U as $}from"./vue-fMktb-5o.js";import{_ as g}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vueuse-SvwMwBjL.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";import"./@element-plus-icons-vue-DA02k83P.js";import"./dayjs-CxR8wwn9.js";import"./monaco-editor-Bgo-w-Z8.js";import"./axios-Cc-15rbk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-Cu-wxkKz.js";import"./marked--VTVY_DP.js";const K={class:"loading"},N=C({__name:"Auth",props:{remote:{},access:{},baseUrl:{default:"/"}},setup(o){return _(this,null,function*(){let e,t;const c=o,r=U(u(u({alert:d},b),c.access)),n=q(),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,s=i?([e,t]=f(()=>p(i)),e=yield e,t(),e):null;if(s)try{r.login(s);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)=>(k(),v("div",K,"正在登录中..."))})}}),S=g(N,[["__scopeId","data-v-2cb061ca"]]),ee=C({__name:"auth",setup(o){return _(this,null,function*(){let e,t;const c=new R,r=([e,t]=f(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e),n=r==null?void 0:r.remote,p=r==null?void 0:r.__ACCESS__;return(i,s)=>l(n)?(k(),D(l(S),{key:0,remote:l(n),access:l(p)},null,8,["remote","access"])):$("",!0)})}});export{ee as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var H=Object.defineProperty;var P=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var C=(n,e,t)=>e in n?H(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,$=(n,e)=>{for(var t in e||(e={}))M.call(e,t)&&C(n,t,e[t]);if(P)for(var t of P(e))N.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-CDqTjrgM.js";import{y as W}from"./@vueuse-SvwMwBjL.js";import{X,J as j,M as z,D as U,o as E,l as G,d as v}from"./Editor-
|
|
1
|
+
var H=Object.defineProperty;var P=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var C=(n,e,t)=>e in n?H(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,$=(n,e)=>{for(var t in e||(e={}))M.call(e,t)&&C(n,t,e[t]);if(P)for(var t of P(e))N.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-CDqTjrgM.js";import{y as W}from"./@vueuse-SvwMwBjL.js";import{X,J as j,M as z,D as U,o as E,l as G,d as v}from"./Editor-BtHpdmgy-BsN1n3B_.js";import"./element-plus-_gYoEp33.js";import"./vxe-BulginLS.js";import{E as K,a as S,n as A,l as L}from"./utils-f_F5YUCU.js";import{y as O,az as B,e as Q,I as Y,r as Z,D as ee}from"./vue-fMktb-5o.js";import{_ as te}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./monaco-editor-Bgo-w-Z8.js";import"./dayjs-CxR8wwn9.js";import"./axios-Cc-15rbk.js";import"./@element-plus-icons-vue-DA02k83P.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-Cu-wxkKz.js";import"./marked--VTVY_DP.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";const ae=O({__name:"index",setup(n){return d(this,null,function*(){let e,t;const _=V(),r=Z(),l=new X(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:w="page",remote:g,auth:k,checkVersion:D=!0,enhance:F,platform:I="web"}=s||{},J=z({loading:L,notify:A,useTitle:W,alert:S,access:s==null?void 0:s.access,settings:{proxyPath:`${g}/api/proxy`}}),R=U($({alert:S},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 q=s.pageBasePath?`/${w}`:"",x=`${b(h)}${u?`pages${q}`:w}/${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 y=new G($({container:r,service:l,materialPath:o,pageBasePath:h==="/"?"":h,adapter:J,access:R,remote:g,auth:k,checkVersion:D,enhance:F,project:{platform:I}},i));return y.ready(()=>d(null,null,function*(){yield v(300),y.openFile(_.query.id)})),Q(()=>_.query.id,a=>d(null,null,function*(){yield v(300),y.openFile(a)})),(a,u)=>(ee(),Y("div",{class:"designer",ref_key:"container",ref:r},null,512))})}}),xe=te(ae,[["__scopeId","data-v-f41f19f5"]]);export{xe as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-
|
|
2
|
-
import{y 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-fMktb-5o.js";import{z as g,c as y}from"./element-plus-_gYoEp33.js";import"./dayjs-CxR8wwn9.js";import{_ as r}from"./monaco-editor-Bgo-w-Z8.js";import{createRouter as E,createWebHashHistory as O}from"./vue-router-CDqTjrgM.js";import"./@vueuse-SvwMwBjL.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";import"./@element-plus-icons-vue-DA02k83P.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(y),{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-CkLQGMO1.js","./vue-router-CDqTjrgM.js","./vue-fMktb-5o.js","./@vueuse-SvwMwBjL.js","./Editor-BtHpdmgy-BsN1n3B_.js","./monaco-editor-Bgo-w-Z8.js","./monaco-editor-C0wzwsn5.css","./element-plus-_gYoEp33.js","./lodash-es-BxdYFYdv.js","./shared-Bc0G8KpM.js","./@element-plus-icons-vue-DA02k83P.js","./dayjs-CxR8wwn9.js","./element-plus-Bw1qTWaj.css","./axios-Cc-15rbk.js","./vxe-BulginLS.js","./vxe-BAb1d5vW.css","./html2canvas-DNSjNh3_.js","./mockjs-Cu-wxkKz.js","./marked--VTVY_DP.js","./Editor-BtHpdmgy-C4uXNc6V.css","./utils-f_F5YUCU.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-Br68Req3.css","./preview-JAkp4P52.js","./page-G_eZBhIZ.js","./uni-page--udw_bNq.js","./uni-page-Diqmj53r.css","./auth-BJYr8qUg.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{y 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-fMktb-5o.js";import{z as g,c as y}from"./element-plus-_gYoEp33.js";import"./dayjs-CxR8wwn9.js";import{_ as r}from"./monaco-editor-Bgo-w-Z8.js";import{createRouter as E,createWebHashHistory as O}from"./vue-router-CDqTjrgM.js";import"./@vueuse-SvwMwBjL.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";import"./@element-plus-icons-vue-DA02k83P.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(y),{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-CkLQGMO1.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,22]),import.meta.url)},{path:"/preview/:id",name:"preview",component:()=>r(()=>import("./preview-JAkp4P52.js"),__vite__mapDeps([23,5,6,1,2,7,3,8,9,10,11,12,14,15,4,13,16,17,18,19,20]),import.meta.url)},{path:"/page/:id",name:"page",component:()=>r(()=>import("./page-G_eZBhIZ.js"),__vite__mapDeps([24,5,6,1,2,7,3,8,9,10,11,12,14,15,4,13,16,17,18,19,20]),import.meta.url),meta:{pure:!0}},{path:"/pages/:id",name:"pages",component:()=>r(()=>import("./uni-page--udw_bNq.js"),__vite__mapDeps([25,1,2,21,26]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>r(()=>import("./auth-BJYr8qUg.js"),__vite__mapDeps([27,7,3,2,8,9,10,11,12,14,15,4,5,6,13,1,16,17,18,19,21]),import.meta.url)}],A=E({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-CDqTjrgM.js","./vue-fMktb-5o.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 C=(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)&&C(o,e,t[e]);if(E)for(var e of E(t))A.call(t,e)&&C(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 g}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as P}from"./vue-router-CDqTjrgM.js";import"./element-plus-_gYoEp33.js";import"./vxe-BulginLS.js";import{X as T,J as V,M as D,$ as L,T as k,Y as B,L as I}from"./Editor-
|
|
2
|
+
var R=Object.defineProperty;var E=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var C=(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)&&C(o,e,t[e]);if(E)for(var e of E(t))A.call(t,e)&&C(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 g}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as P}from"./vue-router-CDqTjrgM.js";import"./element-plus-_gYoEp33.js";import"./vxe-BulginLS.js";import{X as T,J as V,M as D,$ as L,T as k,Y as B,L as I}from"./Editor-BtHpdmgy-BsN1n3B_.js";import{a as S,n as w,l as J,E as M}from"./utils-f_F5YUCU.js";import{y as O}from"./@vueuse-SvwMwBjL.js";import{y as X,az as x,e as Y,E as $,S as z,U as H,r as N,D as U,g as b}from"./vue-fMktb-5o.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";import"./@element-plus-icons-vue-DA02k83P.js";import"./dayjs-CxR8wwn9.js";import"./axios-Cc-15rbk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-Cu-wxkKz.js";import"./marked--VTVY_DP.js";const mt=X({__name:"page",setup(o){return c(this,null,function*(){let t,e;const _=new T(V(w)),s=([t,e]=x(()=>_.getExtension().catch(()=>null)),t=yield t,e(),t),u=D({loading:J,notify:w,useTitle:O,alert:S,access:s==null?void 0:s.access}),d=s?([t,e]=x(()=>new M(s).load()),t=yield t,e(),t):{},{__BASE_PATH__:p="/"}=s||{},{provider:r,onReady:i}=L({mode:k.Runtime,service:_,materialPath:p,adapter:y(y({},u),d.adapter),dependencies:{Vue:()=>g(()=>import("./vue-fMktb-5o.js").then(a=>a.aA),[],import.meta.url),VueRouter:()=>g(()=>import("./vue-router-CDqTjrgM.js"),__vite__mapDeps([0,1]),import.meta.url)}}),l=P(),f=N(),n=b(),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))})),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?(U(),$(z(f.value),{key:0})):H("",!0)})}});export{mt as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-CDqTjrgM.js","./vue-fMktb-5o.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var x=Object.defineProperty;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var E=(o,e,t)=>e in o?x(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,r)=>{var _=a=>{try{i(t.next(a))}catch(p){r(p)}},s=a=>{try{i(t.throw(a))}catch(p){r(p)}},i=a=>a.done?c(a.value):Promise.resolve(a.value).then(_,s);i((t=t.apply(o,e)).next())});import{_ as w}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as P}from"./vue-router-CDqTjrgM.js";import"./element-plus-_gYoEp33.js";import"./vxe-BulginLS.js";import{X as T,J as V,M as D,$ as L,T as k,z,Y as B,L as I}from"./Editor-
|
|
2
|
+
var x=Object.defineProperty;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var E=(o,e,t)=>e in o?x(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,r)=>{var _=a=>{try{i(t.next(a))}catch(p){r(p)}},s=a=>{try{i(t.throw(a))}catch(p){r(p)}},i=a=>a.done?c(a.value):Promise.resolve(a.value).then(_,s);i((t=t.apply(o,e)).next())});import{_ as w}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as P}from"./vue-router-CDqTjrgM.js";import"./element-plus-_gYoEp33.js";import"./vxe-BulginLS.js";import{X as T,J as V,M as D,$ as L,T as k,z,Y as B,L as I}from"./Editor-BtHpdmgy-BsN1n3B_.js";import{a as S,n as h,l as J,E as M}from"./utils-f_F5YUCU.js";import{y as O}from"./@vueuse-SvwMwBjL.js";import{y as X,az as C,E as Y,S as $,U as H,r as N,D as U,g as b}from"./vue-fMktb-5o.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";import"./@element-plus-icons-vue-DA02k83P.js";import"./dayjs-CxR8wwn9.js";import"./axios-Cc-15rbk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-Cu-wxkKz.js";import"./marked--VTVY_DP.js";const me=X({__name:"preview",setup(o){return f(this,null,function*(){let e,t;const c=new T(V(h)),r=([e,t]=C(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e||{}),_=D({loading:J,notify:h,useTitle:O,alert:S,access:r==null?void 0:r.access}),s=r?([e,t]=C(()=>new M(r).load()),e=yield e,t(),e):{},{__BASE_PATH__:i="/"}=r||{},{provider:a,onReady:p}=L({mode:k.Runtime,service:c,materialPath:i,adapter:d(d({},_),s.adapter),dependencies:{Vue:()=>w(()=>import("./vue-fMktb-5o.js").then(m=>m.aA),[],import.meta.url),VueRouter:()=>w(()=>import("./vue-router-CDqTjrgM.js"),__vite__mapDeps([0,1]),import.meta.url)}}),v=P(),u=N(),l=b();return p(()=>f(null,null,function*(){const m=yield z(r.enhance),n=l==null?void 0:l.appContext.app;n&&(s.install&&s.install(n),m&&n.use(m,a),n.use(B),n.use(a),u.value=yield a.getRenderComponent(v.params.id.toString(),R=>{I(n,v,R)}))})),(m,n)=>u.value?(U(),Y($(u.value),{key:0})):H("",!0)})}});export{me as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var T=Object.defineProperty;var p=Object.getOwnPropertySymbols;var u=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var g=(t,a,s)=>a in t?T(t,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[a]=s,
|
|
1
|
+
var T=Object.defineProperty;var p=Object.getOwnPropertySymbols;var u=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var g=(t,a,s)=>a in t?T(t,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[a]=s,l=(t,a)=>{for(var s in a||(a={}))u.call(a,s)&&g(t,s,a[s]);if(p)for(var s of p(a))I.call(a,s)&&g(t,s,a[s]);return t};var _=(t,a,s)=>g(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(E){n(E)}},c=r=>{try{i(s.throw(r))}catch(E){n(E)}},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-fMktb-5o.js";import{a as m,P as A,s as f,y as h,f as V,c as P,r as b,Q as y,e as R,Z as M,n as D,l as N,b as B,g as K,h as k,x as L,k as x,i as w,j as H,K as W,m as Y,R as v,p as G,q as F,W as U,t as C,u as j,v as X,w as q,A as Z,B as $,C as J,E as Q,F as z,G as aa,S as sa,H as ea,I as ta,N as ra,V as na,O as ia,U as oa,_ as Ea,a0 as _a,a1 as la,a2 as ca,a3 as ga,a4 as pa,a5 as Sa,a6 as Oa,a7 as Ta,a8 as ua,a9 as Ia,aa as da,ab as ma,ac as Aa,ad as fa,ae as ha,af as Va,ag as Pa,ah as ba,ai as ya,aj as Ra,ak as Ma,al as Da,am as Na,an as Ba,ao as Ka,ap as ka,aq as La,ar as xa,as as wa,at as Ha,au as Wa,av as Ya,aw as va,ax as Ga,ay as Fa,az as Ua,o as Ca,aA as ja,aB as Xa,aC as qa,aD as Za,aE as $a,aF as Ja,aG as Qa,aH as za}from"./Editor-BtHpdmgy-BsN1n3B_.js";import{E as as,a as ss,b as es}from"./element-plus-_gYoEp33.js";import"./dayjs-CxR8wwn9.js";const ts=Object.freeze(Object.defineProperty({__proto__:null,API_METHOD_TYPES:m,ActionMenu:A,Assets:f,Binder:h,Box:V,CodeIncrementalUpdater:P,DEVTOOLS_DEP:b,DepsManager:y,Designer:R,EVENT_MODIFIERS:M,Editor:D,Engine:N,EventBinder:B,GET_TOKENS_LINK:K,HOT_KEYS_DEP:k,Icon:L,Item:x,KEYBOARD_EVENT_LIST:w,MAX_TOKENS:H,MOBILE_SIZE:W,MOUSE_EVENT_LIST:Y,NAME_REGEX:v,NPM_REGISTRY_URL:G,OpenApi:F,PAD_SIZE:U,Panel:C,REPORT_API:j,RegionType:X,RegionWrapper:q,Renderer:Z,SAVE_BLOCK_FILE_FINISH:$,SESSION_ID_KEY:J,STATE_KEY:Q,SetterManager:z,SetterView:aa,SetterWrapper:sa,Simulator:ea,Skeleton:ta,SkeletonWrapper:ra,SlotsPicker:na,State:ia,TOOL_CONFIGS:oa,Tabs:Ea,ToolRegistry:_a,VERSION_REGEX:la,VTJ_DESIGNER_VERSION:ca,VUE_DEVTOOLS_FRAME_STATE_KEY:ga,VUE_DEVTOOLS_OVERLAY_PATH:pa,VUE_DEVTOOLS_PATH:Sa,VariableBinder:Oa,Viewer:Ta,Viewport:ua,WidgetGroup:Ia,WidgetManager:da,WidgetWrapper:ma,alert:Aa,builtInDeps:fa,builtInMaterials:ha,builtInSetters:Va,builtInWidgets:Pa,codeIncrementalUpdater:ba,confirm:ya,createSlotsPicker:Ra,defaultSetter:Ma,depsManager:Da,engineKey:Na,expressionValidate:Ba,getClassProperties:Ka,loading:ka,message:La,normalizedStyle:xa,notify:wa,proxyContext:Ha,readJsonFile:Wa,regions:Ya,setterManager:va,setters:Ga,upgradeVersion:Fa,useEngine:Ua,widgetManager:Ca,widgets:ja},Symbol.toStringTag,{value:"Module"}));class _s{constructor(a){_(this,"urls",[]);_(this,"library","");_(this,"params",[]);_(this,"__BASE_PATH__","/");this.config=a;const s=l(l(l({},qa),ts),Xa),o={Vue:d,__VTJ_PRO__:s};for(const[E,O]of Object.entries(o))window[E]=O;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=>Za(e)).map(e=>`${s}${e}`),n=this.urls.filter(e=>$a(e)).map(e=>`${s}${e}`);if(Ja(o),n.length){const e=yield Qa(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 ls(){return es.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"})}function cs(t,a="",s="warning"){ss({title:a,message:t,type:s})}function gs(t,a){return as.alert(t,a)}export{_s as E,gs as a,ls as l,cs 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__ = '1783759444925';
|
|
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
|
+
<!--{{1783759444925}}-->
|
|
31
31
|
|
|
32
|
-
<script type="module" crossorigin src="./assets/index-
|
|
32
|
+
<script type="module" crossorigin src="./assets/index-sZpYQ3KH.js"></script>
|
|
33
33
|
<link rel="modulepreload" crossorigin href="./assets/vue-fMktb-5o.js">
|
|
34
34
|
<link rel="modulepreload" crossorigin href="./assets/@vueuse-SvwMwBjL.js">
|
|
35
35
|
<link rel="modulepreload" crossorigin href="./assets/lodash-es-BxdYFYdv.js">
|