@vtj/pro 0.18.13 → 0.18.14
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-d78sWhgI-Dwg_0_ge.js → Editor-uPV3tKdM-CYWQH8Ar.js} +73 -73
- package/dist/assets/{auth-DQPgwkSr.js → auth-BgZjdY8h.js} +1 -1
- package/dist/assets/{index-CwQo5RIj.js → index-Cgi-8dTX.js} +1 -1
- package/dist/assets/{index-CbSwCzdC.js → index-DuhaSX1b.js} +2 -2
- package/dist/assets/{page-CdH4i_HN.js → page-puAU3hkL.js} +1 -1
- package/dist/assets/{preview-CzCWT3Gx.js → preview-VQ6ixgOZ.js} +1 -1
- package/dist/assets/{utils-3AN3Doit.js → utils-BJAv0BPV.js} +1 -1
- package/dist/index.html +3 -3
- package/dist/uni/assets/{@dcloudio-uni-h5-vue-DC2wuYrq.js → @dcloudio-uni-h5-vue-8G49trTf.js} +1 -1
- package/dist/uni/assets/{index-B6PriJq1.js → index-D_QsbzKe.js} +28 -28
- package/dist/uni/assets/{vue-router-Br7a6pVO.js → vue-router-LSjIZEXc.js} +1 -1
- package/dist/uni/index.html +3 -3
- package/package.json +11 -11
- /package/dist/assets/{Editor-d78sWhgI-C4uXNc6V.css → Editor-uPV3tKdM-C4uXNc6V.css} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
var I=Object.defineProperty;var y=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var k=(o,e,t)=>e in o?I(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,u=(o,e)=>{for(var t in e||(e={}))x.call(e,t)&&k(o,t,e[t]);if(y)for(var t of y(e))A.call(e,t)&&k(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{O as U,aI as b,ac as d,aJ as B,aK as E,K}from"./Editor-
|
|
1
|
+
var I=Object.defineProperty;var y=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var k=(o,e,t)=>e in o?I(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,u=(o,e)=>{for(var t in e||(e={}))x.call(e,t)&&k(o,t,e[t]);if(y)for(var t of y(e))A.call(e,t)&&k(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{O as U,aI as b,ac as d,aJ as B,aK as E,K}from"./Editor-uPV3tKdM-CYWQH8Ar.js";import{useRoute as q}from"./vue-router-CDqTjrgM.js";import{y as w,az as f,I as v,D as C,u as l,E as R,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 O={class:"loading"},S=w({__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)=>(C(),v("div",O,"正在登录中..."))})}}),z=g(S,[["__scopeId","data-v-2cb061ca"]]),ee=w({__name:"auth",setup(o){return _(this,null,function*(){let e,t;const c=new K,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)?(C(),R(l(z),{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 K=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={}))K.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 O}from"./vue-router-CDqTjrgM.js";import{y as W}from"./@vueuse-SvwMwBjL.js";import{K as j,G as z,V as D,O as J,o as E,l as U,d as v}from"./Editor-
|
|
1
|
+
var H=Object.defineProperty;var P=Object.getOwnPropertySymbols;var K=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={}))K.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 O}from"./vue-router-CDqTjrgM.js";import{y as W}from"./@vueuse-SvwMwBjL.js";import{K as j,G as z,V as D,O as J,o as E,l as U,d as v}from"./Editor-uPV3tKdM-CYWQH8Ar.js";import"./element-plus-_gYoEp33.js";import"./vxe-BulginLS.js";import{E as L,a as S,n as A,l as M}from"./utils-BJAv0BPV.js";import{y as Q,az as B,e as X,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=Q({__name:"index",setup(n){return d(this,null,function*(){let e,t;const _=O(),r=Z(),l=new j(z(A)),s=([e,t]=B(()=>l.getExtension().catch(()=>null)),e=yield e,t(),e||{}),i=s?([e,t]=B(()=>new L(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:o="/",history:p="hash",base:h="/",pageRouteName:w="page",remote:g,auth:k,checkVersion:V=!0,enhance:F,platform:I="web"}=s||{},R=D({loading:M,notify:A,useTitle:W,alert:S,access:s==null?void 0:s.access,settings:{proxyPath:`${g}/api/proxy`}}),T=J($({alert:S},s==null?void 0:s.__ACCESS__)),b=()=>p==="hash",q=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 G=s.pageBasePath?`/${w}`:"",x=`${q(h)}${u?`pages${G}`:w}/${f.id}`;m=b()?`${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 U($({container:r,service:l,materialPath:o,pageBasePath:h==="/"?"":h,adapter:R,access:T,remote:g,auth:k,checkVersion:V,enhance:F,project:{platform:I}},i));return y.ready(()=>d(null,null,function*(){yield v(300),y.openFile(_.query.id)})),X(()=>_.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-Cgi-8dTX.js","./vue-router-CDqTjrgM.js","./vue-fMktb-5o.js","./@vueuse-SvwMwBjL.js","./Editor-uPV3tKdM-CYWQH8Ar.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-uPV3tKdM-C4uXNc6V.css","./utils-BJAv0BPV.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-Br68Req3.css","./preview-VQ6ixgOZ.js","./page-puAU3hkL.js","./uni-page--udw_bNq.js","./uni-page-Diqmj53r.css","./auth-BgZjdY8h.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-Cgi-8dTX.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-VQ6ixgOZ.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-puAU3hkL.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-BgZjdY8h.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 P=Object.defineProperty;var E=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var C=(o,t,e)=>t in o?P(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,y=(o,t)=>{for(var e in t||(t={}))R.call(t,e)&&C(o,e,t[e]);if(E)for(var e of E(t))V.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 h}from"./vue-router-CDqTjrgM.js";import"./element-plus-_gYoEp33.js";import"./vxe-BulginLS.js";import{K as A,G as D,V as T,j as k,P as B,Y as I,N}from"./Editor-
|
|
2
|
+
var P=Object.defineProperty;var E=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var C=(o,t,e)=>t in o?P(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,y=(o,t)=>{for(var e in t||(t={}))R.call(t,e)&&C(o,e,t[e]);if(E)for(var e of E(t))V.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 h}from"./vue-router-CDqTjrgM.js";import"./element-plus-_gYoEp33.js";import"./vxe-BulginLS.js";import{K as A,G as D,V as T,j as k,P as B,Y as I,N}from"./Editor-uPV3tKdM-CYWQH8Ar.js";import{a as S,n as w,l as j,E as G}from"./utils-BJAv0BPV.js";import{y as K}from"./@vueuse-SvwMwBjL.js";import{y as L,az as x,e as O,E as Y,S as z,U as H,r as U,D as b,g as q}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=L({__name:"page",setup(o){return c(this,null,function*(){let t,e;const _=new A(D(w)),s=([t,e]=x(()=>_.getExtension().catch(()=>null)),t=yield t,e(),t),u=T({loading:j,notify:w,useTitle:K,alert:S,access:s==null?void 0:s.access}),d=s?([t,e]=x(()=>new G(s).load()),t=yield t,e(),t):{},{__BASE_PATH__:p="/"}=s||{},{provider:r,onReady:i}=k({mode:B.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=h(),f=U(),n=q(),v=a=>c(null,null,function*(){f.value=yield r.getRenderComponent(l.params.id.toString(),m=>{N(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))})),O(()=>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{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 V=Object.defineProperty;var y=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var E=(o,e,t)=>e in o?V(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,d=(o,e)=>{for(var t in e||(e={}))x.call(e,t)&&E(o,t,e[t]);if(y)for(var t of y(e))A.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{K as g,G as D,V as T,j as k,P as B,U as I,Y as N,N as S}from"./Editor-
|
|
2
|
+
var V=Object.defineProperty;var y=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var E=(o,e,t)=>e in o?V(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,d=(o,e)=>{for(var t in e||(e={}))x.call(e,t)&&E(o,t,e[t]);if(y)for(var t of y(e))A.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{K as g,G as D,V as T,j as k,P as B,U as I,Y as N,N as S}from"./Editor-uPV3tKdM-CYWQH8Ar.js";import{a as U,n as h,l as j,E as G}from"./utils-BJAv0BPV.js";import{y as K}from"./@vueuse-SvwMwBjL.js";import{y as L,az as C,E as O,S as Y,U as z,r as H,D as b,g as q}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=L({__name:"preview",setup(o){return f(this,null,function*(){let e,t;const c=new g(D(h)),r=([e,t]=C(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e||{}),_=T({loading:j,notify:h,useTitle:K,alert:U,access:r==null?void 0:r.access}),s=r?([e,t]=C(()=>new G(r).load()),e=yield e,t(),e):{},{__BASE_PATH__:i="/"}=r||{},{provider:a,onReady:p}=k({mode:B.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=H(),l=q();return p(()=>f(null,null,function*(){const m=yield I(r.enhance),n=l==null?void 0:l.appContext.app;n&&(s.install&&s.install(n),m&&n.use(m,a),n.use(N),n.use(a),u.value=yield a.getRenderComponent(v.params.id.toString(),R=>{S(n,v,R)}))})),(m,n)=>u.value?(b(),O(Y(u.value),{key:0})):z("",!0)})}});export{me as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var T=Object.defineProperty;var p=Object.getOwnPropertySymbols;var u=Object.prototype.hasOwnProperty,
|
|
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,_=(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 l=(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{X as m,a as A,s as f,y as h,f as V,c as b,r as P,Q as M,e as R,Z as y,n as D,l as B,b as K,g as L,h as N,x as k,k as x,i as w,m as H,p as W,q as v,R as Y,t as F,u as G,W as C,v as U,w as X,z as $,A as j,B as q,C as z,D as J,E as Z,F as Q,H as aa,S as sa,I as ea,J as ta,L as ra,M as na,T as ia,_ as oa,$ as Ea,a0 as la,a1 as _a,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 ba,ah as Pa,ai as Ma,aj as Ra,ak as ya,al as Da,am as Ba,an as Ka,ao as La,ap as Na,aq as ka,ar as xa,as as wa,at as Ha,au as Wa,av as va,aw as Ya,ax as Fa,ay as Ga,az as Ca,o as Ua,aA as Xa,aB as $a,aC as ja,aD as qa,aE as za,aF as Ja,aG as Za,aH as Qa}from"./Editor-uPV3tKdM-CYWQH8Ar.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:b,DEVTOOLS_DEP:P,DepsManager:M,Designer:R,EVENT_MODIFIERS:y,Editor:D,Engine:B,EventBinder:K,GET_TOKENS_LINK:L,HOT_KEYS_DEP:N,Icon:k,Item:x,KEYBOARD_EVENT_LIST:w,MAX_TOKENS:H,MOBILE_SIZE:W,MOUSE_EVENT_LIST:v,NAME_REGEX:Y,NPM_REGISTRY_URL:F,OpenApi:G,PAD_SIZE:C,Panel:U,REPORT_API:X,RegionType:$,RegionWrapper:j,Renderer:q,SAVE_BLOCK_FILE_FINISH:z,SESSION_ID_KEY:J,STATE_KEY:Z,SetterManager:Q,SetterView:aa,SetterWrapper:sa,Simulator:ea,Skeleton:ta,SkeletonWrapper:ra,SlotsPicker:na,State:ia,TOOL_CONFIGS:oa,Tabs:Ea,ToolRegistry:la,VERSION_REGEX:_a,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:ba,codeIncrementalUpdater:Pa,confirm:Ma,createSlotsPicker:Ra,defaultSetter:ya,depsManager:Da,engineKey:Ba,expressionValidate:Ka,getClassProperties:La,loading:Na,message:ka,normalizedStyle:xa,notify:wa,proxyContext:Ha,readJsonFile:Wa,regions:va,setterManager:Ya,setters:Fa,upgradeVersion:Ga,useEngine:Ca,widgetManager:Ua,widgets:Xa},Symbol.toStringTag,{value:"Module"}));class ls{constructor(a){l(this,"urls",[]);l(this,"library","");l(this,"params",[]);l(this,"__BASE_PATH__","/");this.config=a;const s=_(_(_({},ja),ts),$a),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=>qa(e)).map(e=>`${s}${e}`),n=this.urls.filter(e=>za(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 Qa(this.config,a)}}function _s(){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{ls as E,gs as a,_s 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__ = '1783137531780';
|
|
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
|
+
<!--{{1783137531780}}-->
|
|
31
31
|
|
|
32
|
-
<script type="module" crossorigin src="./assets/index-
|
|
32
|
+
<script type="module" crossorigin src="./assets/index-DuhaSX1b.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">
|