@vtj/pro 0.12.35 → 0.12.37
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 +5 -5
- 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/ui/style.css +1 -1
- package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
- package/dist/assets/Editor-BmppC8Mj-BN1eKDXZ.css +1 -0
- package/dist/assets/{Editor-CW6zEu5u-BTE34LwK.js → Editor-BmppC8Mj-NFpJtWoy.js} +51 -50
- package/dist/assets/{auth-7HWWbR6w.js → auth-BeixuS10.js} +1 -1
- package/dist/assets/{index-CTaLIyV2.js → index-D2NzrHNy.js} +2 -2
- package/dist/assets/{index-CHdMIoQB.js → index-DsD3rV00.js} +1 -1
- package/dist/assets/page-RD61OCp4.js +2 -0
- package/dist/assets/{preview-Ctzh7IGk.js → preview-zruN6KxJ.js} +1 -1
- package/dist/assets/{utils-DTJk6MtW.js → utils-D2LJBKOM.js} +1 -1
- package/dist/index.html +3 -3
- package/dist/uni/assets/{@dcloudio-uni-h5-vue-DzAZSbri.js → @dcloudio-uni-h5-vue-aeVRcOfZ.js} +1 -1
- package/dist/uni/assets/{index-BWQ6L-C_.js → index-DA3yO9Oh.js} +34 -33
- package/dist/uni/assets/{vue-router-DNkp_UbP.js → vue-router-DVjQ9Lh0.js} +1 -1
- package/dist/uni/index.html +3 -3
- package/package.json +11 -11
- package/dist/assets/Editor-CW6zEu5u-Dz53-s3r.css +0 -1
- package/dist/assets/page-CFUDOFfF.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
var C=Object.defineProperty;var f=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,
|
|
1
|
+
var C=Object.defineProperty;var f=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var h=(o,t,e)=>t in o?C(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,u=(o,t)=>{for(var e in t||(t={}))B.call(t,e)&&h(o,e,t[e]);if(f)for(var e of f(t))g.call(t,e)&&h(o,e,t[e]);return o};var p=(o,t,e)=>new Promise((i,s)=>{var a=r=>{try{n(e.next(r))}catch(c){s(c)}},m=r=>{try{n(e.throw(r))}catch(c){s(c)}},n=r=>r.done?i(r.value):Promise.resolve(r.value).then(a,m);n((e=e.apply(o,t)).next())});import"./element-plus-XVJlWyfz.js";import"./vxe-CWcmrjam.js";import{l as A,B as v,a3 as y,r as E,ay as I,g as $}from"./Editor-BmppC8Mj-NFpJtWoy.js";import{useRoute as q}from"./vue-router-BO40Wv73.js";import{d as k,ay as x,c as R,o as w,K as S,O as V,u as _}from"./vue-BfodOvnP.js";import{_ as K}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es-BL-d_OSa.js";import"./@vueuse-vmN9qs5b.js";import"./@element-plus-icons-vue-CM-7yUXL.js";import"./shared-CzXu-bVE.js";import"./dayjs-DO-COJPZ.js";import"./monaco-editor-B5WqzYTl.js";import"./html2canvas-CIV5arX1.js";import"./mockjs-Du5X89jz.js";import"./marked-BQZxLJfc.js";const L={class:"loading"},N=k({__name:"Auth",props:{remote:{},access:{}},setup(o){return p(this,null,function*(){let t,e;const i=o,s=A(u(u({alert:y},v),i.access)),a=q(),m=c=>p(null,null,function*(){const d=`${i.remote||E}/api/open/user/${c}`,l=yield I(d).catch(()=>null);return!l||!l.success?(yield y("登录失败"),null):l.data}),n=a.query.token,r=n?([t,e]=x(()=>m(n)),t=yield t,e(),t):null;if(r)try{s.login(r);const c=a.query.redirect;location.href=decodeURIComponent(c||"/")}catch(c){location.reload()}return(c,d)=>(w(),R("div",L,"正在登录中..."))})}}),O=K(N,[["__scopeId","data-v-720ff9d2"]]),Z=k({__name:"auth",setup(o){return p(this,null,function*(){let t,e;const i=new $,s=([t,e]=x(()=>i.getExtension().catch(()=>null)),t=yield t,e(),t),a=s==null?void 0:s.remote,m=s==null?void 0:s.__ACCESS__;return(n,r)=>_(a)?(w(),S(_(O),{key:0,remote:_(a),access:_(m)},null,8,["remote","access"])):V("",!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 _,K as p,u as s,ai as d,o as m,L as u,aA as f,T as h,av as v}from"./vue-BfodOvnP.js";import{z as g,d as y}from"./element-plus-XVJlWyfz.js";import{_ as r}from"./monaco-editor-B5WqzYTl.js";import{createRouter as E,createWebHashHistory as L}from"./vue-router-BO40Wv73.js";import"./lodash-es-BL-d_OSa.js";import"./@vueuse-vmN9qs5b.js";import"./@element-plus-icons-vue-CM-7yUXL.js";import"./shared-CzXu-bVE.js";import"./dayjs-DO-COJPZ.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 O=_({__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"])}}}),P=[{path:"/",name:"home",component:()=>r(()=>import("./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-DsD3rV00.js","./vue-router-BO40Wv73.js","./vue-BfodOvnP.js","./@vueuse-vmN9qs5b.js","./element-plus-XVJlWyfz.js","./lodash-es-BL-d_OSa.js","./@element-plus-icons-vue-CM-7yUXL.js","./shared-CzXu-bVE.js","./dayjs-DO-COJPZ.js","./element-plus-EFxNtExC.css","./vxe-CWcmrjam.js","./vxe-BAb1d5vW.css","./Editor-BmppC8Mj-NFpJtWoy.js","./monaco-editor-B5WqzYTl.js","./monaco-editor-Cpw7ccEV.css","./html2canvas-CIV5arX1.js","./mockjs-Du5X89jz.js","./marked-BQZxLJfc.js","./Editor-BmppC8Mj-BN1eKDXZ.css","./utils-D2LJBKOM.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-jC2E5tg_.css","./preview-zruN6KxJ.js","./page-RD61OCp4.js","./uni-page-BiootGtZ.js","./uni-page-Diqmj53r.css","./auth-BeixuS10.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{d as _,K as p,u as s,ai as d,o as m,L as u,aA as f,T as h,av as v}from"./vue-BfodOvnP.js";import{z as g,d as y}from"./element-plus-XVJlWyfz.js";import{_ as r}from"./monaco-editor-B5WqzYTl.js";import{createRouter as E,createWebHashHistory as L}from"./vue-router-BO40Wv73.js";import"./lodash-es-BL-d_OSa.js";import"./@vueuse-vmN9qs5b.js";import"./@element-plus-icons-vue-CM-7yUXL.js";import"./shared-CzXu-bVE.js";import"./dayjs-DO-COJPZ.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 O=_({__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"])}}}),P=[{path:"/",name:"home",component:()=>r(()=>import("./index-DsD3rV00.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-zruN6KxJ.js"),__vite__mapDeps([22,13,14,1,2,4,5,3,6,7,8,9,10,11,12,15,16,17,18,19]),import.meta.url)},{path:"/page/:id",name:"page",component:()=>r(()=>import("./page-RD61OCp4.js"),__vite__mapDeps([23,13,14,1,2,4,5,3,6,7,8,9,10,11,12,15,16,17,18,19]),import.meta.url),meta:{pure:!0}},{path:"/pages/:id",name:"page",component:()=>r(()=>import("./uni-page-BiootGtZ.js"),__vite__mapDeps([24,1,2,20,25]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>r(()=>import("./auth-BeixuS10.js"),__vite__mapDeps([26,4,2,5,3,6,7,8,9,10,11,12,13,14,1,15,16,17,18,20]),import.meta.url)}],A=E({history:L(),routes:P}),c=v(O);c.use(A);c.mount("#app");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var D=Object.defineProperty;var y=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var x=(a,e,t)=>e in a?D(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,
|
|
1
|
+
var D=Object.defineProperty;var y=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var x=(a,e,t)=>e in a?D(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,g=(a,e)=>{for(var t in e||(e={}))H.call(e,t)&&x(a,t,e[t]);if(y)for(var t of y(e))V.call(e,t)&&x(a,t,e[t]);return a};var C=(a,e,t)=>new Promise((_,r)=>{var l=n=>{try{i(t.next(n))}catch(c){r(c)}},o=n=>{try{i(t.throw(n))}catch(c){r(c)}},i=n=>n.done?_(n.value):Promise.resolve(n.value).then(l,o);i((t=t.apply(a,e)).next())});import{useRoute as W}from"./vue-router-BO40Wv73.js";import{q as I}from"./@vueuse-vmN9qs5b.js";import"./element-plus-XVJlWyfz.js";import"./vxe-CWcmrjam.js";import{g as J,d as N,c as U,l as j,t as E,D as z}from"./Editor-BmppC8Mj-NFpJtWoy.js";import{E as G,a as P,n as v,l as K}from"./utils-D2LJBKOM.js";import{d as L,e as M,ay as S,f as O,c as Q,o as X}from"./vue-BfodOvnP.js";import{_ as Y}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es-BL-d_OSa.js";import"./@element-plus-icons-vue-CM-7yUXL.js";import"./shared-CzXu-bVE.js";import"./dayjs-DO-COJPZ.js";import"./monaco-editor-B5WqzYTl.js";import"./html2canvas-CIV5arX1.js";import"./mockjs-Du5X89jz.js";import"./marked-BQZxLJfc.js";const Z=L({__name:"index",setup(a){return C(this,null,function*(){let e,t;const _=W(),r=M(),l=new J(N(v)),o=([e,t]=S(()=>l.getExtension().catch(()=>null)),e=yield e,t(),e||{}),i=U({loading:K,notify:v,useTitle:I,alert:P,access:o==null?void 0:o.access}),n=j(g({alert:P},o==null?void 0:o.__ACCESS__)),c=o?([e,t]=S(()=>new G(o).load()),e=yield e,t(),e):{},{__BASE_PATH__:f="/",history:A="hash",base:h="/",pageRouteName:k="page",remote:B,auth:q,checkVersion:F=!0,enhance:R}=o||{},T=()=>A==="hash",b=s=>s==="/"?"":(s.startsWith("/")&&(s=s.substring(1)),s.endsWith("/")||(s=s+"/"),s);E.set("Switcher",{props:{onClick:s=>{const u=s.platform==="uniapp",p=location.pathname;let m=p===`${f}__vtj__/`?f:p;const d=s.currentFile;if(d&&d.type==="page"&&s.homepage!==d.id){const w=`${b(h)}${u?"pages":k}/${d.id}`;m=T()?`${m}#/${w}`:`${m}${w}`}window.open(m,"VTJProject")}}}),E.set("Previewer",{props:{path:(s,u)=>{const p=location.pathname;return u.platform==="uniapp"?`${p}uni/#/pages/${s.id}`:`${p}#/preview/${s.id}`}}});const $=new z(g({container:r,service:l,materialPath:f,pageBasePath:h==="/"?"":h,adapter:i,access:n,remote:B,auth:q,checkVersion:F,enhance:R},c));return $.ready(()=>{$.openFile(_.query.id)}),O(()=>_.query.id,s=>{$.openFile(s)}),(s,u)=>(X(),Q("div",{class:"designer",ref_key:"container",ref:r},null,512))})}}),$e=Y(Z,[["__scopeId","data-v-73bfd256"]]);export{$e as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-BO40Wv73.js","./vue-BfodOvnP.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var C=Object.defineProperty;var y=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;var E=(o,e,t)=>e in o?C(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,d=(o,e)=>{for(var t in e||(e={}))R.call(e,t)&&E(o,t,e[t]);if(y)for(var t of y(e))h.call(e,t)&&E(o,t,e[t]);return o};var l=(o,e,t)=>new Promise((i,r)=>{var m=a=>{try{n(t.next(a))}catch(p){r(p)}},c=a=>{try{n(t.throw(a))}catch(p){r(p)}},n=a=>a.done?i(a.value):Promise.resolve(a.value).then(m,c);n((t=t.apply(o,e)).next())});import{_ as g}from"./monaco-editor-B5WqzYTl.js";import{useRoute as x}from"./vue-router-BO40Wv73.js";import"./element-plus-XVJlWyfz.js";import"./vxe-CWcmrjam.js";import{g as P,d as V,c as T,p as k,w as B,A as D,o as I}from"./Editor-BmppC8Mj-NFpJtWoy.js";import{a as O,n as w,l as L,E as S}from"./utils-D2LJBKOM.js";import{q}from"./@vueuse-vmN9qs5b.js";import{d as z,ay as A,e as H,K,O as N,P as b,o as j,h as F}from"./vue-BfodOvnP.js";import"./lodash-es-BL-d_OSa.js";import"./@element-plus-icons-vue-CM-7yUXL.js";import"./shared-CzXu-bVE.js";import"./dayjs-DO-COJPZ.js";import"./html2canvas-CIV5arX1.js";import"./mockjs-Du5X89jz.js";import"./marked-BQZxLJfc.js";const ne=z({__name:"page",setup(o){return l(this,null,function*(){let e,t;const i=new P(V(w)),r=([e,t]=A(()=>i.getExtension().catch(()=>null)),e=yield e,t(),e),m=T({loading:L,notify:w,useTitle:q,alert:O,access:r==null?void 0:r.access}),c=r?([e,t]=A(()=>new S(r).load()),e=yield e,t(),e):{},{__BASE_PATH__:n="/"}=r||{},{provider:a,onReady:p}=k({mode:B.Runtime,service:i,materialPath:n,adapter:d(d({},m),c.adapter),dependencies:{Vue:()=>g(()=>import("./vue-BfodOvnP.js").then(s=>s.az),[],import.meta.url),VueRouter:()=>g(()=>import("./vue-router-BO40Wv73.js"),__vite__mapDeps([0,1]),import.meta.url)}}),f=x(),_=H(),u=F();return p(()=>l(null,null,function*(){const s=u==null?void 0:u.appContext.app;s&&(s.use(D),s.use(a),_.value=yield a.getRenderComponent(f.params.id.toString(),v=>{I(s,f,v)}))})),(s,v)=>_.value?(j(),K(b(_.value),{key:0})):N("",!0)})}});export{ne as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-BO40Wv73.js","./vue-BfodOvnP.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var R=Object.defineProperty;var
|
|
2
|
+
var R=Object.defineProperty;var w=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable;var h=(o,e,t)=>e in o?R(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,d=(o,e)=>{for(var t in e||(e={}))g.call(e,t)&&h(o,t,e[t]);if(w)for(var t of w(e))x.call(e,t)&&h(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 y}from"./monaco-editor-B5WqzYTl.js";import{useRoute as P}from"./vue-router-BO40Wv73.js";import"./element-plus-XVJlWyfz.js";import"./vxe-CWcmrjam.js";import{g as V,d as T,c as k,p as B,w as D,f as I,A as O,o as L}from"./Editor-BmppC8Mj-NFpJtWoy.js";import{a as S,n as E,l as q,E as z}from"./utils-D2LJBKOM.js";import{q as H}from"./@vueuse-vmN9qs5b.js";import{d as K,ay as A,e as N,K as b,O as j,P as F,o as G,h as J}from"./vue-BfodOvnP.js";import"./lodash-es-BL-d_OSa.js";import"./@element-plus-icons-vue-CM-7yUXL.js";import"./shared-CzXu-bVE.js";import"./dayjs-DO-COJPZ.js";import"./html2canvas-CIV5arX1.js";import"./mockjs-Du5X89jz.js";import"./marked-BQZxLJfc.js";const pe=K({__name:"preview",setup(o){return f(this,null,function*(){let e,t;const c=new V(T(E)),s=([e,t]=A(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e||{}),_=k({loading:q,notify:E,useTitle:H,alert:S,access:s==null?void 0:s.access}),n=s?([e,t]=A(()=>new z(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:i="/"}=s||{},{provider:a,onReady:p}=B({mode:D.Runtime,service:c,materialPath:i,adapter:d(d({},_),n.adapter),dependencies:{Vue:()=>y(()=>import("./vue-BfodOvnP.js").then(m=>m.az),[],import.meta.url),VueRouter:()=>y(()=>import("./vue-router-BO40Wv73.js"),__vite__mapDeps([0,1]),import.meta.url)}}),v=P(),u=N(),l=J();return p(()=>f(null,null,function*(){const m=yield I(s.enhance),r=l==null?void 0:l.appContext.app;r&&(n.install&&n.install(r),m&&r.use(m,a),r.use(O),r.use(a),u.value=yield a.getRenderComponent(v.params.id.toString(),C=>{L(r,v,C)}))})),(m,r)=>u.value?(G(),b(F(u.value),{key:0})):j("",!0)})}});export{pe as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var T=Object.defineProperty;var S=Object.getOwnPropertySymbols;var d=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={}))d.call(a,s)&&g(t,s,a[s]);if(S)for(var s of S(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 p=(t,a,s)=>new Promise((o,i)=>{var e=r=>{try{n(s.next(r))}catch(E){i(E)}},c=r=>{try{n(s.throw(r))}catch(E){i(E)}},n=r=>r.done?o(r.value):Promise.resolve(r.value).then(e,c);n((s=s.apply(t,a)).next())});import{az as O}from"./vue-BfodOvnP.js";import{B as f,T as V,L as A,a as
|
|
1
|
+
var T=Object.defineProperty;var S=Object.getOwnPropertySymbols;var d=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={}))d.call(a,s)&&g(t,s,a[s]);if(S)for(var s of S(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 p=(t,a,s)=>new Promise((o,i)=>{var e=r=>{try{n(s.next(r))}catch(E){i(E)}},c=r=>{try{n(s.throw(r))}catch(E){i(E)}},n=r=>r.done?o(r.value):Promise.resolve(r.value).then(e,c);n((s=s.apply(t,a)).next())});import{az as O}from"./vue-BfodOvnP.js";import{B as f,T as V,L as A,a as b,e as R,b as m,h as P,R as D,O as M,D as h,U as y,i as B,G as L,I as N,x,V as j,j as w,N as k,k as v,m as H,n as U,q as Y,r as G,s as K,P as W,Q as C,M as F,u as $,v as z,y as J,z as Q,C as q,E as X,J as Z,F as aa,H as sa,K as ea,S as ta,W as ra,X as ia,Y as na,Z as oa,_ as Ea,$ as la,a0 as _a,a1 as ca,a2 as ga,a3 as Sa,a4 as pa,a5 as ua,a6 as Ta,a7 as da,a8 as Ia,a9 as Oa,aa as fa,ab as Va,ac as Aa,ad as ba,ae as Ra,af as ma,ag as Pa,ah as Da,ai as Ma,aj as ha,ak as ya,al as Ba,am as La,an as Na,t as xa,ao as ja,ap as wa,aq as ka,ar as va,as as Ha,at as Ua,au as Ya,av as Ga,aw as Ka,ax as Wa}from"./Editor-BmppC8Mj-NFpJtWoy.js";import{E as Ca,a as Fa,b as $a,c as za}from"./element-plus-XVJlWyfz.js";const Ja=Object.freeze(Object.defineProperty({__proto__:null,ACCESS:f,API_METHOD_TYPES:V,Assets:A,Binder:b,Box:R,Designer:m,DevTools:P,EVENT_MODIFIERS:D,Editor:M,Engine:h,EventBinder:y,Icon:B,Item:L,KEYBOARD_EVENT_LIST:N,MOBILE_SIZE:x,MOUSE_EVENT_LIST:j,MicroApp:w,NAME_REGEX:k,NPM_REGISTRY_URL:v,OpenApi:H,PAD_SIZE:U,Panel:Y,REMOTE:G,REPORT_API:K,RegionType:W,RegionWrapper:C,Renderer:F,SAVE_BLOCK_FILE_FINISH:$,SESSION_ID_KEY:z,STATE_KEY:J,SetterView:Q,SetterWrapper:q,Simulator:X,Skeleton:Z,SkeletonWrapper:aa,SlotsPicker:sa,Tabs:ea,VERSION_REGEX:ta,VTJ_DESIGNER_VERSION:ra,VUE_DEVTOOLS_FRAME_STATE_KEY:ia,VUE_DEVTOOLS_OVERLAY_PATH:na,VUE_DEVTOOLS_PATH:oa,VariableBinder:Ea,Viewer:la,Viewport:_a,WidgetGroup:ca,WidgetWrapper:ga,alert:Sa,builtInDeps:pa,builtInMaterials:ua,builtInSetters:Ta,builtInWidgets:da,confirm:Ia,createSlotsPicker:Oa,defaultSetter:fa,depsManager:Va,engineKey:Aa,expressionValidate:ba,getClassProperties:Ra,message:ma,normalizedStyle:Pa,notify:Da,proxyContext:Ma,readJsonFile:ha,regions:ya,setterManager:Ba,setters:La,useEngine:Na,widgetManager:xa,widgets:ja},Symbol.toStringTag,{value:"Module"}));class as{constructor(a){l(this,"urls",[]);l(this,"library","");l(this,"params",[]);l(this,"__BASE_PATH__","/");this.config=a;const s=_(_(_({},Ua),Ja),Ha),o={Vue:O,__VTJ_PRO__:s,VtjUtils:va,VtjIcons:ka,VtjUI:wa,ElementPlus:Ca};for(const[E,u]of Object.entries(o))window[E]=u;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=>Ga(e)).map(e=>`${s}${e}`);if(Ka(o),i.length){const e=yield Wa(i,this.library).catch(()=>null);e&&typeof e=="function"?a=e.call(e,this.config,...this.params):a=e||{}}}return a})}}function ss(){return za.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"})}function es(t,a="",s="warning"){$a({title:a,message:t,type:s})}function ts(t,a){return Fa.alert(t,a)}export{as as E,ts as a,ss as l,es as n};
|
package/dist/index.html
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<meta http-equiv="Expires" content="0"/>
|
|
10
10
|
<title>低代码设计器 - VTJ.PRO</title>
|
|
11
11
|
<script>
|
|
12
|
-
var __BUILD_TIME__ = '
|
|
12
|
+
var __BUILD_TIME__ = '1749461262399';
|
|
13
13
|
(function () {
|
|
14
14
|
const regex = /<!--{{(\d*)}}-->/;
|
|
15
15
|
window.fetch('?t=' + Date.now()).then(async (res) => {
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
});
|
|
26
26
|
})();
|
|
27
27
|
</script>
|
|
28
|
-
<!--{{
|
|
28
|
+
<!--{{1749461262399}}-->
|
|
29
29
|
|
|
30
|
-
<script type="module" crossorigin src="./assets/index-
|
|
30
|
+
<script type="module" crossorigin src="./assets/index-D2NzrHNy.js"></script>
|
|
31
31
|
<link rel="modulepreload" crossorigin href="./assets/vue-BfodOvnP.js">
|
|
32
32
|
<link rel="modulepreload" crossorigin href="./assets/lodash-es-BL-d_OSa.js">
|
|
33
33
|
<link rel="modulepreload" crossorigin href="./assets/@vueuse-vmN9qs5b.js">
|