@vtj/pro 0.16.6 → 0.16.7
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-BlbojjPw-BdXeyUBf.css → Editor-BIJ_WidI-C2TD5nNE.css} +1 -1
- package/dist/assets/{Editor-BlbojjPw-B2_E9PRU.js → Editor-BIJ_WidI-Dz_HEpW0.js} +97 -254
- package/dist/assets/{auth-DrHv_RE7.js → auth-C5HcVZxj.js} +1 -1
- package/dist/assets/index-CY5fs_x_.js +1 -0
- package/dist/assets/{index-D-D_4vDt.js → index-DGr9MRzI.js} +2 -2
- package/dist/assets/page-Dp9aiJnn.js +2 -0
- package/dist/assets/preview-D5SKxeTR.js +2 -0
- package/dist/assets/utils-Cr6UwUU9.js +1 -0
- package/dist/index.html +3 -3
- package/dist/uni/assets/{index-lA3Nk9gt.js → index-Dt-sa32O.js} +26 -24
- package/dist/uni/index.html +1 -1
- package/package.json +11 -11
- package/dist/assets/index-D5NqJmuP.js +0 -1
- package/dist/assets/page-B_ZYeHZW.js +0 -2
- package/dist/assets/preview-BoVDvzn6.js +0 -2
- package/dist/assets/utils-BXwU_d56.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var k=Object.defineProperty;var y=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var A=(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={}))x.call(e,t)&&A(o,t,e[t]);if(y)for(var t of y(e))U.call(e,t)&&A(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-Cnk22g0r.js";import"./vxe-4LaZMynM.js";import{A as b,aE as B,a9 as d,aF as E,aG as I,D as $}from"./Editor-BIJ_WidI-Dz_HEpW0.js";import{useRoute as q}from"./vue-router-BEDJn_dq.js";import{j as w,az as f,n as v,o as C,u as l,l as R,B as S}from"./vue-C7aOYzfv.js";import{_ as g}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./shared-ClTq60Az.js";import"./dayjs-BGdj-UA2.js";import"./@element-plus-icons-vue-Cpi46I3H.js";import"./@vueuse-DBbmvAan.js";import"./lodash-es-B2U1jVvD.js";import"./monaco-editor-Bgo-w-Z8.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-D39zwwe_.js";import"./marked-Dt4xUbva.js";const D={class:"loading"},j=w({__name:"Auth",props:{remote:{},access:{},baseUrl:{default:"/"}},setup(o){return _(this,null,function*(){let e,t;const c=o,s=b(u(u({alert:d},B),c.access)),n=q(),p=a=>_(null,null,function*(){const h=`${c.remote||E}/api/open/user/${a}`,m=yield I(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(),v("div",D,"正在登录中..."))})}}),z=g(j,[["__scopeId","data-v-2cb061ca"]]),Z=w({__name:"auth",setup(o){return _(this,null,function*(){let e,t;const c=new $,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(),R(l(z),{key:0,remote:l(n),access:l(p)},null,8,["remote","access"])):S("",!0)})}});export{Z as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var M=Object.defineProperty;var P=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var C=(o,e,t)=>e in o?M(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,y=(o,e)=>{for(var t in e||(e={}))N.call(e,t)&&C(o,t,e[t]);if(P)for(var t of P(e))V.call(e,t)&&C(o,t,e[t]);return o};var f=(o,e,t)=>new Promise((_,r)=>{var l=n=>{try{i(t.next(n))}catch(p){r(p)}},s=n=>{try{i(t.throw(n))}catch(p){r(p)}},i=n=>n.done?_(n.value):Promise.resolve(n.value).then(l,s);i((t=t.apply(o,e)).next())});import{useRoute as W}from"./vue-router-BEDJn_dq.js";import{x as Z}from"./@vueuse-DBbmvAan.js";import{D as z,M as I,C as J,A as K,Z as A,P as O,d as E}from"./Editor-BIJ_WidI-Dz_HEpW0.js";import"./element-plus-Cnk22g0r.js";import"./vxe-4LaZMynM.js";import{E as U,a as v,n as S,l as G}from"./utils-Cr6UwUU9.js";import{j as L,az as B,K as Q,n as X,r as Y,o as ee}from"./vue-C7aOYzfv.js";import{_ as te}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./monaco-editor-Bgo-w-Z8.js";import"./@element-plus-icons-vue-Cpi46I3H.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-D39zwwe_.js";import"./dayjs-BGdj-UA2.js";import"./marked-Dt4xUbva.js";import"./shared-ClTq60Az.js";import"./lodash-es-B2U1jVvD.js";const ae=L({__name:"index",setup(o){return f(this,null,function*(){let e,t;const _=W(),r=Y(),l=new z(I(S)),s=([e,t]=B(()=>l.getExtension().catch(()=>null)),e=yield e,t(),e||{}),i=J({loading:G,notify:S,useTitle:Z,alert:v,access:s==null?void 0:s.access}),n=K(y({alert:v},s==null?void 0:s.__ACCESS__)),p=s?([e,t]=B(()=>new U(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:h="/",history:k="hash",base:w="/",pageRouteName:g="page",remote:b,auth:F,checkVersion:R=!0,enhance:T,platform:j="web"}=s||{},q=()=>k==="hash",D=a=>a==="/"?"":(a.startsWith("/")&&(a=a.substring(1)),a.endsWith("/")||(a=a+"/"),a);A.set("Switcher",{props:{onClick:a=>{const u=a.platform==="uniapp",c=location.pathname;let m=c===`${h}__vtj__/`?h:c;const d=a.currentFile;if(d&&d.type==="page"&&a.homepage!==d.id){const H=s.pageBasePath?`/${g}`:"",x=`${D(w)}${u?`pages${H}`:g}/${d.id}`;m=q()?`${m}#/${x}`:`${m}${x}`}window.open(m,"VTJProject")}}}),A.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 O(y({container:r,service:l,materialPath:h,pageBasePath:w==="/"?"":w,adapter:i,access:n,remote:b,auth:F,checkVersion:R,enhance:T,project:{platform:j}},p));return $.ready(()=>f(null,null,function*(){yield E(300),$.openFile(_.query.id)})),Q(()=>_.query.id,a=>f(null,null,function*(){yield E(300),$.openFile(a)})),(a,u)=>(ee(),X("div",{class:"designer",ref_key:"container",ref:r},null,512))})}}),ge=te(ae,[["__scopeId","data-v-b20f3eda"]]);export{ge as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-
|
|
2
|
-
import{j as _,l as p,u as s,a8 as d,o as m,v as u,aB as f,G as h,ar as v}from"./vue-C7aOYzfv.js";import{z as g,c as y}from"./element-plus-Cnk22g0r.js";import{_ as r}from"./monaco-editor-Bgo-w-Z8.js";import{createRouter as E,createWebHashHistory as O}from"./vue-router-BEDJn_dq.js";import"./shared-ClTq60Az.js";import"./dayjs-BGdj-UA2.js";import"./@element-plus-icons-vue-Cpi46I3H.js";import"./@vueuse-DBbmvAan.js";import"./lodash-es-B2U1jVvD.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-CY5fs_x_.js","./vue-router-BEDJn_dq.js","./vue-C7aOYzfv.js","./@vueuse-DBbmvAan.js","./Editor-BIJ_WidI-Dz_HEpW0.js","./monaco-editor-Bgo-w-Z8.js","./monaco-editor-C0wzwsn5.css","./element-plus-Cnk22g0r.js","./shared-ClTq60Az.js","./dayjs-BGdj-UA2.js","./@element-plus-icons-vue-Cpi46I3H.js","./lodash-es-B2U1jVvD.js","./element-plus-Mn1i2Uda.css","./vxe-4LaZMynM.js","./vxe-BAb1d5vW.css","./html2canvas-DNSjNh3_.js","./mockjs-D39zwwe_.js","./marked-Dt4xUbva.js","./Editor-BIJ_WidI-C2TD5nNE.css","./utils-Cr6UwUU9.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-Ce7h16Vb.css","./preview-D5SKxeTR.js","./page-Dp9aiJnn.js","./uni-page-DZxZ96XP.js","./uni-page-Diqmj53r.css","./auth-C5HcVZxj.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{j as _,l as p,u as s,a8 as d,o as m,v as u,aB as f,G as h,ar as v}from"./vue-C7aOYzfv.js";import{z as g,c as y}from"./element-plus-Cnk22g0r.js";import{_ as r}from"./monaco-editor-Bgo-w-Z8.js";import{createRouter as E,createWebHashHistory as O}from"./vue-router-BEDJn_dq.js";import"./shared-ClTq60Az.js";import"./dayjs-BGdj-UA2.js";import"./@element-plus-icons-vue-Cpi46I3H.js";import"./@vueuse-DBbmvAan.js";import"./lodash-es-B2U1jVvD.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-CY5fs_x_.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-D5SKxeTR.js"),__vite__mapDeps([22,5,6,1,2,7,8,9,10,3,11,12,13,14,4,15,16,17,18,19]),import.meta.url)},{path:"/page/:id",name:"page",component:()=>r(()=>import("./page-Dp9aiJnn.js"),__vite__mapDeps([23,5,6,1,2,7,8,9,10,3,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-DZxZ96XP.js"),__vite__mapDeps([24,1,2,20,25]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>r(()=>import("./auth-C5HcVZxj.js"),__vite__mapDeps([26,7,2,8,9,10,3,11,12,13,14,4,5,6,1,15,16,17,18,20]),import.meta.url)}],A=E({history:O(),routes:L}),c=v(P);c.use(A);c.mount("#app");
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-BEDJn_dq.js","./vue-C7aOYzfv.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var g=Object.defineProperty;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;var R=(o,t,e)=>t in o?g(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,C=(o,t)=>{for(var e in t||(t={}))A.call(t,e)&&R(o,e,t[e]);if(y)for(var e of y(t))h.call(t,e)&&R(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 w}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as P}from"./vue-router-BEDJn_dq.js";import"./element-plus-Cnk22g0r.js";import"./vxe-4LaZMynM.js";import{D as k,M as D,C as V,k as B,w as T,Y as I,R as L}from"./Editor-BIJ_WidI-Dz_HEpW0.js";import{a as M,n as x,l as O,E as S}from"./utils-Cr6UwUU9.js";import{x as Y}from"./@vueuse-DBbmvAan.js";import{j,az as E,K as z,l as H,A as K,B as N,r as b,o as q,g as F}from"./vue-C7aOYzfv.js";import"./shared-ClTq60Az.js";import"./dayjs-BGdj-UA2.js";import"./@element-plus-icons-vue-Cpi46I3H.js";import"./lodash-es-B2U1jVvD.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-D39zwwe_.js";import"./marked-Dt4xUbva.js";const it=j({__name:"page",setup(o){return c(this,null,function*(){let t,e;const _=new k(D(x)),s=([t,e]=E(()=>_.getExtension().catch(()=>null)),t=yield t,e(),t),u=V({loading:O,notify:x,useTitle:Y,alert:M,access:s==null?void 0:s.access}),d=s?([t,e]=E(()=>new S(s).load()),t=yield t,e(),t):{},{__BASE_PATH__:p="/"}=s||{},{provider:r,onReady:i}=B({mode:T.Runtime,service:_,materialPath:p,adapter:C(C({},u),d.adapter),dependencies:{Vue:()=>w(()=>import("./vue-C7aOYzfv.js").then(a=>a.aA),[],import.meta.url),VueRouter:()=>w(()=>import("./vue-router-BEDJn_dq.js"),__vite__mapDeps([0,1]),import.meta.url)}}),l=P(),f=b(),n=F(),v=a=>c(null,null,function*(){f.value=yield r.getRenderComponent(l.params.id.toString(),m=>{L(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))})),z(()=>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?(q(),H(K(f.value),{key:0})):N("",!0)})}});export{it as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-BEDJn_dq.js","./vue-C7aOYzfv.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var y=Object.defineProperty;var w=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var C=(o,e,t)=>e in o?y(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)&&C(o,t,e[t]);if(w)for(var t of w(e))g.call(e,t)&&C(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 R}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as k}from"./vue-router-BEDJn_dq.js";import"./element-plus-Cnk22g0r.js";import"./vxe-4LaZMynM.js";import{D,M as P,C as V,k as B,w as O,O as T,Y as I,R as L}from"./Editor-BIJ_WidI-Dz_HEpW0.js";import{a as M,n as E,l as S,E as Y}from"./utils-Cr6UwUU9.js";import{x as j}from"./@vueuse-DBbmvAan.js";import{j as z,az as h,l as H,A as N,B as b,r as q,o as F,g as G}from"./vue-C7aOYzfv.js";import"./shared-ClTq60Az.js";import"./dayjs-BGdj-UA2.js";import"./@element-plus-icons-vue-Cpi46I3H.js";import"./lodash-es-B2U1jVvD.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-D39zwwe_.js";import"./marked-Dt4xUbva.js";const pe=z({__name:"preview",setup(o){return f(this,null,function*(){let e,t;const c=new D(P(E)),s=([e,t]=h(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e||{}),_=V({loading:S,notify:E,useTitle:j,alert:M,access:s==null?void 0:s.access}),n=s?([e,t]=h(()=>new Y(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:i="/"}=s||{},{provider:a,onReady:p}=B({mode:O.Runtime,service:c,materialPath:i,adapter:d(d({},_),n.adapter),dependencies:{Vue:()=>R(()=>import("./vue-C7aOYzfv.js").then(m=>m.aA),[],import.meta.url),VueRouter:()=>R(()=>import("./vue-router-BEDJn_dq.js"),__vite__mapDeps([0,1]),import.meta.url)}}),v=k(),u=q(),l=G();return p(()=>f(null,null,function*(){const m=yield T(s.enhance),r=l==null?void 0:l.appContext.app;r&&(n.install&&n.install(r),m&&r.use(m,a),r.use(I),r.use(a),u.value=yield a.getRenderComponent(v.params.id.toString(),x=>{L(r,v,x)}))})),(m,r)=>u.value?(F(),H(N(u.value),{key:0})):b("",!0)})}});export{pe as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var O=Object.defineProperty;var S=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,l=(t,a)=>{for(var s in a||(a={}))m.call(a,s)&&T(t,s,a[s]);if(S)for(var s of S(a))u.call(a,s)&&T(t,s,a[s]);return t};var _=(t,a,s)=>T(t,typeof a!="symbol"?a+"":a,s);var p=(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-C7aOYzfv.js";import{J as A,S as I,N as f,a as V,c as P,j as h,b,T as R,G as y,e as B,P as D,f as M,q as N,Q as L,v as k,g as K,H as x,h as w,U as G,F as H,i as U,K as Y,V as v,z as F,x as W,W as j,l as C,m as $,n as J,o as z,B as X,p as Z,r as q,s as Q,t as aa,u as sa,y as ea,E as ta,I as ra,L as na,X as ia,_ as oa,$ as Ea,a0 as _a,a1 as la,a2 as ca,a3 as Ta,a4 as Sa,a5 as pa,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 ha,ah as ba,ai as Ra,aj as ya,ak as Ba,al as Da,am as Ma,an as Na,ao as La,ap as ka,aq as Ka,ar as xa,as as wa,at as Ga,au as Ha,av as Ua,Z as Ya,aw as va,ax as Fa,ay as Wa,az as ja,aA as Ca,aB as $a,aC as Ja,aD as za}from"./Editor-BIJ_WidI-Dz_HEpW0.js";import{E as Xa,a as Za,b as qa}from"./element-plus-Cnk22g0r.js";const Qa=Object.freeze(Object.defineProperty({__proto__:null,API_METHOD_TYPES:A,ActionMenu:I,Assets:f,Binder:V,Box:P,CodeIncrementalUpdater:h,DEVTOOLS_DEP:b,Designer:R,EVENT_MODIFIERS:y,Editor:B,Engine:D,EventBinder:M,GET_TOKENS_LINK:N,HOT_KEYS_DEP:L,Icon:k,Item:K,KEYBOARD_EVENT_LIST:x,MAX_TOKENS:w,MOBILE_SIZE:G,MOUSE_EVENT_LIST:H,NAME_REGEX:U,NPM_REGISTRY_URL:Y,OpenApi:v,PAD_SIZE:F,Panel:W,REPORT_API:j,RegionType:C,RegionWrapper:$,Renderer:J,SAVE_BLOCK_FILE_FINISH:z,SESSION_ID_KEY:X,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:Ea,VTJ_DESIGNER_VERSION:_a,VUE_DEVTOOLS_FRAME_STATE_KEY:la,VUE_DEVTOOLS_OVERLAY_PATH:ca,VUE_DEVTOOLS_PATH:Ta,VariableBinder:Sa,Viewer:pa,Viewport:ga,WidgetGroup:Oa,WidgetWrapper:ma,alert:ua,builtInDeps:da,builtInMaterials:Aa,builtInSetters:Ia,builtInWidgets:fa,codeIncrementalUpdater:Va,confirm:Pa,createSlotsPicker:ha,defaultSetter:ba,depsManager:Ra,engineKey:ya,expressionValidate:Ba,getClassProperties:Da,loading:Ma,message:Na,normalizedStyle:La,notify:ka,proxyContext:Ka,readJsonFile:xa,regions:wa,setterManager:Ga,setters:Ha,useEngine:Ua,widgetManager:Ya,widgets:va},Symbol.toStringTag,{value:"Module"}));class rs{constructor(a){_(this,"urls",[]);_(this,"library","");_(this,"params",[]);_(this,"__BASE_PATH__","/");this.config=a;const s=l(l(l({},Wa),Qa),Fa),o={Vue:d,__VTJ_PRO__:s};for(const[E,g]of Object.entries(o))window[E]=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 p(this,null,function*(){let a={};if(this.library){const s=this.__BASE_PATH__,o=this.urls.filter(e=>ja(e)).map(e=>`${s}${e}`),n=this.urls.filter(e=>Ca(e)).map(e=>`${s}${e}`);if($a(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 ns(){return qa.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"})}function is(t,a="",s="warning"){Za({title:a,message:t,type:s})}function os(t,a){return Xa.alert(t,a)}export{rs as E,os as a,ns as l,is 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__ = '1772853273254';
|
|
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
|
+
<!--{{1772853273254}}-->
|
|
31
31
|
|
|
32
|
-
<script type="module" crossorigin src="./assets/index-
|
|
32
|
+
<script type="module" crossorigin src="./assets/index-DGr9MRzI.js"></script>
|
|
33
33
|
<link rel="modulepreload" crossorigin href="./assets/vue-C7aOYzfv.js">
|
|
34
34
|
<link rel="modulepreload" crossorigin href="./assets/shared-ClTq60Az.js">
|
|
35
35
|
<link rel="modulepreload" crossorigin href="./assets/dayjs-BGdj-UA2.js">
|