@vtj/pro 0.14.4 → 0.14.6
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-C6JXvONx-CmcDxQxs.js → Editor-C_EExuNE-BNt1njgR.js} +88 -88
- package/dist/assets/{auth-NQ55yh4K.js → auth-iyBPX44S.js} +1 -1
- package/dist/assets/{index-Cb6scLk6.js → index-B4hQ9dEE.js} +2 -2
- package/dist/assets/index-DbJqXUYv.js +1 -0
- package/dist/assets/page-DXf4Va0j.js +2 -0
- package/dist/assets/preview-Cn405ST7.js +2 -0
- package/dist/assets/{utils-Cjo34e7U.js → utils-BXxSC83K.js} +1 -1
- package/dist/index.html +3 -3
- package/dist/uni/assets/{@dcloudio-uni-h5-vue-Dxv_ts1w.js → @dcloudio-uni-h5-vue--Y-1zMNX.js} +1 -1
- package/dist/uni/assets/{index-CBz8WStD.js → index-CVViubHZ.js} +22 -22
- package/dist/uni/assets/{vue-router-C2iVG-hf.js → vue-router-C4Y5ZKSl.js} +1 -1
- package/dist/uni/index.html +3 -3
- package/package.json +11 -11
- package/dist/assets/index-DDQUYdtN.js +0 -1
- package/dist/assets/page-C0YToYb-.js +0 -2
- package/dist/assets/preview-DwpKbly0.js +0 -2
- /package/dist/assets/{Editor-C6JXvONx-_7Uc9_sr.css → Editor-C_EExuNE-_7Uc9_sr.css} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
var k=Object.defineProperty;var y=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,
|
|
1
|
+
var k=Object.defineProperty;var y=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var C=(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)&&C(o,t,e[t]);if(y)for(var t of y(e))R.call(e,t)&&C(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-BX1jDXnG.js";import"./vxe-aXV8hoyj.js";import{R as U,aA as b,a6 as d,aB as v,aC as B,M as I}from"./Editor-C_EExuNE-BNt1njgR.js";import{useRoute as q}from"./vue-router-9nM-QXBE.js";import{d as w,az as f,c as E,o as A,G as $,Q as g,u as l}from"./vue-BcPzY9Qk.js";import{_ as M}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./shared-CcA2kMdO.js";import"./dayjs-BGdj-UA2.js";import"./@vueuse-DQhHxflu.js";import"./@element-plus-icons-vue-CtsYLlt1.js";import"./lodash-es-1LTVIlMy.js";import"./monaco-editor-Bgo-w-Z8.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-D31ObUBJ.js";import"./marked-Dt4xUbva.js";const S={class:"loading"},z=w({__name:"Auth",props:{remote:{},access:{},baseUrl:{default:"/"}},setup(o){return _(this,null,function*(){let e,t;const c=o,s=U(u(u({alert:d},b),c.access)),n=q(),p=a=>_(null,null,function*(){const h=`${c.remote||v}/api/open/user/${a}`,m=yield B(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)=>(A(),E("div",S,"正在登录中..."))})}}),G=M(z,[["__scopeId","data-v-2cb061ca"]]),Z=w({__name:"auth",setup(o){return _(this,null,function*(){let e,t;const c=new I,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)?(A(),$(l(G),{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{d as _,G as p,u as s,ac as d,o as m,M as c,aB as f,W as h,av as v}from"./vue-BcPzY9Qk.js";import{z as g,c as y}from"./element-plus-BX1jDXnG.js";import{_ as r}from"./monaco-editor-Bgo-w-Z8.js";import{createRouter as E,createWebHashHistory as O}from"./vue-router-9nM-QXBE.js";import"./shared-CcA2kMdO.js";import"./dayjs-BGdj-UA2.js";import"./@vueuse-DQhHxflu.js";import"./@element-plus-icons-vue-CtsYLlt1.js";import"./lodash-es-1LTVIlMy.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:c(()=>[(m(),p(f,null,{default:c(()=>[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-DbJqXUYv.js","./vue-router-9nM-QXBE.js","./vue-BcPzY9Qk.js","./@vueuse-DQhHxflu.js","./Editor-C_EExuNE-BNt1njgR.js","./monaco-editor-Bgo-w-Z8.js","./monaco-editor-C0wzwsn5.css","./element-plus-BX1jDXnG.js","./shared-CcA2kMdO.js","./dayjs-BGdj-UA2.js","./@element-plus-icons-vue-CtsYLlt1.js","./lodash-es-1LTVIlMy.js","./element-plus-BwqxpCyV.css","./vxe-aXV8hoyj.js","./vxe-BAb1d5vW.css","./html2canvas-DNSjNh3_.js","./mockjs-D31ObUBJ.js","./marked-Dt4xUbva.js","./Editor-C_EExuNE-_7Uc9_sr.css","./utils-BXxSC83K.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-Ce7h16Vb.css","./preview-Cn405ST7.js","./page-DXf4Va0j.js","./uni-page-CilIsjJf.js","./uni-page-Diqmj53r.css","./auth-iyBPX44S.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{d as _,G as p,u as s,ac as d,o as m,M as c,aB as f,W as h,av as v}from"./vue-BcPzY9Qk.js";import{z as g,c as y}from"./element-plus-BX1jDXnG.js";import{_ as r}from"./monaco-editor-Bgo-w-Z8.js";import{createRouter as E,createWebHashHistory as O}from"./vue-router-9nM-QXBE.js";import"./shared-CcA2kMdO.js";import"./dayjs-BGdj-UA2.js";import"./@vueuse-DQhHxflu.js";import"./@element-plus-icons-vue-CtsYLlt1.js";import"./lodash-es-1LTVIlMy.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:c(()=>[(m(),p(f,null,{default:c(()=>[h(i)]),_:1}))]),_:1},8,["locale"])}}}),L=[{path:"/",name:"home",component:()=>r(()=>import("./index-DbJqXUYv.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-Cn405ST7.js"),__vite__mapDeps([22,5,6,1,2,7,8,9,3,10,11,12,13,14,4,15,16,17,18,19]),import.meta.url)},{path:"/page/:id",name:"page",component:()=>r(()=>import("./page-DXf4Va0j.js"),__vite__mapDeps([23,5,6,1,2,7,8,9,3,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-CilIsjJf.js"),__vite__mapDeps([24,1,2,20,25]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>r(()=>import("./auth-iyBPX44S.js"),__vite__mapDeps([26,7,2,8,9,3,10,11,12,13,14,4,5,6,1,15,16,17,18,20]),import.meta.url)}],A=E({history:O(),routes:L}),u=v(P);u.use(A);u.mount("#app");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var N=Object.defineProperty;var P=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var C=(o,e,t)=>e in o?N(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,y=(o,e)=>{for(var t in e||(e={}))V.call(e,t)&&C(o,t,e[t]);if(P)for(var t of P(e))W.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(c){r(c)}},s=n=>{try{i(t.throw(n))}catch(c){r(c)}},i=n=>n.done?_(n.value):Promise.resolve(n.value).then(l,s);i((t=t.apply(o,e)).next())});import{useRoute as z}from"./vue-router-9nM-QXBE.js";import{x as I}from"./@vueuse-DQhHxflu.js";import{M as J,F as U,j as D,R as G,t as E,$ as K,d as v}from"./Editor-C_EExuNE-BNt1njgR.js";import"./element-plus-BX1jDXnG.js";import"./vxe-aXV8hoyj.js";import{E as L,a as S,n as A,l as O}from"./utils-BXxSC83K.js";import{d as Q,b as X,az as B,e as Y,c as Z,o as ee}from"./vue-BcPzY9Qk.js";import{_ as te}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./monaco-editor-Bgo-w-Z8.js";import"./@element-plus-icons-vue-CtsYLlt1.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-D31ObUBJ.js";import"./dayjs-BGdj-UA2.js";import"./marked-Dt4xUbva.js";import"./shared-CcA2kMdO.js";import"./lodash-es-1LTVIlMy.js";const ae=Q({__name:"index",setup(o){return f(this,null,function*(){let e,t;const _=z(),r=X(),l=new J(U(A)),s=([e,t]=B(()=>l.getExtension().catch(()=>null)),e=yield e,t(),e||{}),i=D({loading:O,notify:A,useTitle:I,alert:S,access:s==null?void 0:s.access}),n=G(y({alert:S},s==null?void 0:s.__ACCESS__)),c=s?([e,t]=B(()=>new L(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:h="/",history:F="hash",base:$="/",pageRouteName:g="page",remote:R,auth:b,checkVersion:k=!0,enhance:T,platform:j="web"}=s||{},q=()=>F==="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",p=location.pathname;let m=p===`${h}__vtj__/`?h:p;const d=a.currentFile;if(d&&d.type==="page"&&a.homepage!==d.id){const M=s.pageBasePath?`/${g}`:"",x=`${H($)}${u?`pages${M}`:g}/${d.id}`;m=q()?`${m}#/${x}`:`${m}${x}`}window.open(m,"VTJProject")}}}),E.set("Previewer",{props:{path:(a,u)=>{const p=location.pathname;return u.platform==="uniapp"?`${p}uni/#/pages/${a.id}`:`${p}#/preview/${a.id}`}}});const w=new K(y({container:r,service:l,materialPath:h,pageBasePath:$==="/"?"":$,adapter:i,access:n,remote:R,auth:b,checkVersion:k,enhance:T,project:{platform:j}},c));return w.ready(()=>f(null,null,function*(){yield v(300),w.openFile(_.query.id)})),Y(()=>_.query.id,a=>f(null,null,function*(){yield v(300),w.openFile(a)})),(a,u)=>(ee(),Z("div",{class:"designer",ref_key:"container",ref:r},null,512))})}}),ge=te(ae,[["__scopeId","data-v-b20f3eda"]]);export{ge as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-9nM-QXBE.js","./vue-BcPzY9Qk.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var R=Object.defineProperty;var w=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,h=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,v=(o,t)=>{for(var e in t||(t={}))g.call(t,e)&&x(o,e,t[e]);if(w)for(var e of w(t))h.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 A}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as P}from"./vue-router-9nM-QXBE.js";import"./element-plus-BX1jDXnG.js";import"./vxe-aXV8hoyj.js";import{M as V,F as T,j as b,A as k,w as B,Y as D,b as I}from"./Editor-C_EExuNE-BNt1njgR.js";import{a as j,n as C,l as F,E as L}from"./utils-BXxSC83K.js";import{x as M}from"./@vueuse-DQhHxflu.js";import{d as O,az as E,b as S,e as Y,G as z,Q as G,R as H,o as N,l as Q}from"./vue-BcPzY9Qk.js";import"./shared-CcA2kMdO.js";import"./dayjs-BGdj-UA2.js";import"./@element-plus-icons-vue-CtsYLlt1.js";import"./lodash-es-1LTVIlMy.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-D31ObUBJ.js";import"./marked-Dt4xUbva.js";const it=O({__name:"page",setup(o){return c(this,null,function*(){let t,e;const _=new V(T(C)),s=([t,e]=E(()=>_.getExtension().catch(()=>null)),t=yield t,e(),t),u=b({loading:F,notify:C,useTitle:M,alert:j,access:s==null?void 0:s.access}),d=s?([t,e]=E(()=>new L(s).load()),t=yield t,e(),t):{},{__BASE_PATH__:p="/"}=s||{},{provider:r,onReady:i}=k({mode:B.Runtime,service:_,materialPath:p,adapter:v(v({},u),d.adapter),dependencies:{Vue:()=>A(()=>import("./vue-BcPzY9Qk.js").then(a=>a.aA),[],import.meta.url),VueRouter:()=>A(()=>import("./vue-router-9nM-QXBE.js"),__vite__mapDeps([0,1]),import.meta.url)}}),l=P(),f=S(),n=Q(),y=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(D),a.use(r),y(a))})),Y(()=>l.params.id,a=>c(null,null,function*(){if(a){const m=n==null?void 0:n.appContext.app;if(!m)return;y(m)}})),(a,m)=>f.value?(N(),z(H(f.value),{key:0})):G("",!0)})}});export{it as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-9nM-QXBE.js","./vue-BcPzY9Qk.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var y=Object.defineProperty;var w=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var A=(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={}))C.call(e,t)&&A(o,t,e[t]);if(w)for(var t of w(e))I.call(e,t)&&A(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 E}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as P}from"./vue-router-9nM-QXBE.js";import"./element-plus-BX1jDXnG.js";import"./vxe-aXV8hoyj.js";import{M as V,F as g,j as T,A as b,w as k,I as B,Y as D,b as j}from"./Editor-C_EExuNE-BNt1njgR.js";import{a as F,n as R,l as L,E as M}from"./utils-BXxSC83K.js";import{x as O}from"./@vueuse-DQhHxflu.js";import{d as S,az as h,b as Y,G as z,Q as G,R as H,o as N,l as Q}from"./vue-BcPzY9Qk.js";import"./shared-CcA2kMdO.js";import"./dayjs-BGdj-UA2.js";import"./@element-plus-icons-vue-CtsYLlt1.js";import"./lodash-es-1LTVIlMy.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-D31ObUBJ.js";import"./marked-Dt4xUbva.js";const pe=S({__name:"preview",setup(o){return f(this,null,function*(){let e,t;const c=new V(g(R)),s=([e,t]=h(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e||{}),_=T({loading:L,notify:R,useTitle:O,alert:F,access:s==null?void 0:s.access}),n=s?([e,t]=h(()=>new M(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:i="/"}=s||{},{provider:a,onReady:p}=b({mode:k.Runtime,service:c,materialPath:i,adapter:d(d({},_),n.adapter),dependencies:{Vue:()=>E(()=>import("./vue-BcPzY9Qk.js").then(m=>m.aA),[],import.meta.url),VueRouter:()=>E(()=>import("./vue-router-9nM-QXBE.js"),__vite__mapDeps([0,1]),import.meta.url)}}),v=P(),u=Y(),l=Q();return p(()=>f(null,null,function*(){const m=yield B(s.enhance),r=l==null?void 0:l.appContext.app;r&&(n.install&&n.install(r),m&&r.use(m,a),r.use(D),r.use(a),u.value=yield a.getRenderComponent(v.params.id.toString(),x=>{j(r,v,x)}))})),(m,r)=>u.value?(N(),z(H(u.value),{key:0})):G("",!0)})}});export{pe as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var A=Object.defineProperty;var g=Object.getOwnPropertySymbols;var u=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable;var S=(t,a,s)=>a in t?A(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)&&S(t,s,a[s]);if(g)for(var s of g(a))m.call(a,s)&&S(t,s,a[s]);return t};var E=(t,a,s)=>S(t,typeof a!="symbol"?a+"":a,s);var p=(t,a,s)=>new Promise((o,i)=>{var e=r=>{try{n(s.next(r))}catch(_){i(_)}},c=r=>{try{n(s.throw(r))}catch(_){i(_)}},n=r=>r.done?o(r.value):Promise.resolve(r.value).then(e,c);n((s=s.apply(t,a)).next())});import{aA as
|
|
1
|
+
var A=Object.defineProperty;var g=Object.getOwnPropertySymbols;var u=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable;var S=(t,a,s)=>a in t?A(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)&&S(t,s,a[s]);if(g)for(var s of g(a))m.call(a,s)&&S(t,s,a[s]);return t};var E=(t,a,s)=>S(t,typeof a!="symbol"?a+"":a,s);var p=(t,a,s)=>new Promise((o,i)=>{var e=r=>{try{n(s.next(r))}catch(_){i(_)}},c=r=>{try{n(s.throw(r))}catch(_){i(_)}},n=r=>r.done?o(r.value):Promise.resolve(r.value).then(e,c);n((s=s.apply(t,a)).next())});import{aA as O}from"./vue-BcPzY9Qk.js";import{a as d,k as I,c as f,r as h,e as V,B as b,L as P,f as R,X as L,$ as y,v as D,K as M,G as N,g as k,h as B,z as H,U as K,i as x,l as G,C as w,H as W,m as Y,n as j,S as U,J as F,W as $,o as v,p as z,Z as J,D as C,N as X,q as Z,s as q,u as Q,x as aa,y as sa,E as ea,O as ta,P as ra,Q as ia,T as na,V as oa,_ as _a,a0 as Ea,a1 as la,a2 as ca,a3 as Sa,a4 as ga,a5 as pa,a6 as Ta,a7 as Aa,a8 as ua,a9 as ma,aa as Oa,ab as da,ac as Ia,ad as fa,ae as ha,af as Va,ag as ba,ah as Pa,ai as Ra,aj as La,ak as ya,al as Da,am as Ma,an as Na,ao as ka,ap as Ba,aq as Ha,ar as Ka,t as xa,as as Ga,at as wa,au as Wa,av as Ya,aw as ja,ax as Ua,ay as Fa,az as $a}from"./Editor-C_EExuNE-BNt1njgR.js";import{E as va,a as za,b as Ja}from"./element-plus-BX1jDXnG.js";const Ca=Object.freeze(Object.defineProperty({__proto__:null,API_METHOD_TYPES:d,ActionMenu:I,Assets:f,Binder:h,Box:V,DEVTOOLS_DEP:b,Designer:P,EVENT_MODIFIERS:R,Editor:L,Engine:y,EventBinder:D,GET_TOKENS_LINK:M,HOT_KEYS_DEP:N,Icon:k,Item:B,KEYBOARD_EVENT_LIST:H,MAX_TOKENS:K,MOBILE_SIZE:x,MOUSE_EVENT_LIST:G,NAME_REGEX:w,NPM_REGISTRY_URL:W,OpenApi:Y,PAD_SIZE:j,Panel:U,REPORT_API:F,RegionType:$,RegionWrapper:v,Renderer:z,SAVE_BLOCK_FILE_FINISH:J,SESSION_ID_KEY:C,STATE_KEY:X,SetterView:Z,SetterWrapper:q,Simulator:Q,Skeleton:aa,SkeletonWrapper:sa,SlotsPicker:ea,State:ta,Tabs:ra,VERSION_REGEX:ia,VTJ_DESIGNER_VERSION:na,VUE_DEVTOOLS_FRAME_STATE_KEY:oa,VUE_DEVTOOLS_OVERLAY_PATH:_a,VUE_DEVTOOLS_PATH:Ea,VariableBinder:la,Viewer:ca,Viewport:Sa,WidgetGroup:ga,WidgetWrapper:pa,alert:Ta,builtInDeps:Aa,builtInMaterials:ua,builtInSetters:ma,builtInWidgets:Oa,confirm:da,createSlotsPicker:Ia,defaultSetter:fa,depsManager:ha,engineKey:Va,expressionValidate:ba,getClassProperties:Pa,loading:Ra,message:La,normalizedStyle:ya,notify:Da,proxyContext:Ma,readJsonFile:Na,regions:ka,setterManager:Ba,setters:Ha,useEngine:Ka,widgetManager:xa,widgets:Ga},Symbol.toStringTag,{value:"Module"}));class as{constructor(a){E(this,"urls",[]);E(this,"library","");E(this,"params",[]);E(this,"__BASE_PATH__","/");this.config=a;const s=l(l(l({},Wa),Ca),wa),o={Vue:O,__VTJ_PRO__:s};for(const[_,T]of Object.entries(o))window[_]=T;const{extension:i,__BASE_PATH__:e="/"}=a||{},{urls:c=[],library:n,params:r=[]}=i||{};n&&(this.urls=c,this.library=n,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=>Ya(e)).map(e=>`${s}${e}`),i=this.urls.filter(e=>ja(e)).map(e=>`${s}${e}`);if(Ua(o),i.length){const e=yield Fa(i,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 $a(this.config,a)}}function ss(){return Ja.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"})}function es(t,a="",s="warning"){za({title:a,message:t,type:s})}function ts(t,a){return va.alert(t,a)}export{as as E,ts as a,ss as l,es 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__ = '1769438080726';
|
|
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
|
+
<!--{{1769438080726}}-->
|
|
31
31
|
|
|
32
|
-
<script type="module" crossorigin src="./assets/index-
|
|
32
|
+
<script type="module" crossorigin src="./assets/index-B4hQ9dEE.js"></script>
|
|
33
33
|
<link rel="modulepreload" crossorigin href="./assets/vue-BcPzY9Qk.js">
|
|
34
34
|
<link rel="modulepreload" crossorigin href="./assets/shared-CcA2kMdO.js">
|
|
35
35
|
<link rel="modulepreload" crossorigin href="./assets/dayjs-BGdj-UA2.js">
|