@vtj/pro 0.12.37 → 0.12.38
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 +28 -28
- package/dist/assets/{Editor-BmppC8Mj-NFpJtWoy.js → Editor-CyNe60Cy-DrJAuHY9.js} +82 -82
- package/dist/assets/{auth-BeixuS10.js → auth-BMKC5RGB.js} +1 -1
- package/dist/assets/{index-D2NzrHNy.js → index-CznrUnKa.js} +2 -2
- package/dist/assets/{index-DsD3rV00.js → index-IANB9gbG.js} +1 -1
- package/dist/assets/page-DQHD3q6U.js +2 -0
- package/dist/assets/preview-CaYFKrJD.js +2 -0
- package/dist/assets/{utils-D2LJBKOM.js → utils-BJP0FOwA.js} +1 -1
- package/dist/index.html +3 -3
- package/dist/uni/assets/index-LCuTbG1u.js +77 -0
- package/dist/uni/index.html +1 -1
- package/package.json +12 -12
- package/dist/assets/page-RD61OCp4.js +0 -2
- package/dist/assets/preview-zruN6KxJ.js +0 -2
- package/dist/uni/assets/index-DA3yO9Oh.js +0 -77
- /package/dist/assets/{Editor-BmppC8Mj-BN1eKDXZ.css → Editor-CyNe60Cy-BN1eKDXZ.css} +0 -0
|
@@ -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,A=Object.prototype.propertyIsEnumerable;var y=(o,t,e)=>t in o?C(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,l=(o,t)=>{for(var e in t||(t={}))B.call(t,e)&&y(o,e,t[e]);if(f)for(var e of f(t))A.call(t,e)&&y(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{p as v,B as E,a3 as h,o as I,ay as $,y as g}from"./Editor-CyNe60Cy-DrJAuHY9.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=v(l(l({alert:h},E),i.access)),a=q(),m=c=>p(null,null,function*(){const d=`${i.remote||I}/api/open/user/${c}`,u=yield $(d).catch(()=>null);return!u||!u.success?(yield h("登录失败"),null):u.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 g,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-IANB9gbG.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-CyNe60Cy-DrJAuHY9.js","./monaco-editor-B5WqzYTl.js","./monaco-editor-Cpw7ccEV.css","./html2canvas-CIV5arX1.js","./mockjs-Du5X89jz.js","./marked-BQZxLJfc.js","./Editor-CyNe60Cy-BN1eKDXZ.css","./utils-BJP0FOwA.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-jC2E5tg_.css","./preview-CaYFKrJD.js","./page-DQHD3q6U.js","./uni-page-BiootGtZ.js","./uni-page-Diqmj53r.css","./auth-BMKC5RGB.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-IANB9gbG.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-CaYFKrJD.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-DQHD3q6U.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-BMKC5RGB.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
|
|
1
|
+
var D=Object.defineProperty;var g=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,w=(a,e)=>{for(var t in e||(e={}))H.call(e,t)&&x(a,t,e[t]);if(g)for(var t of g(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(p){r(p)}},o=n=>{try{i(t.throw(n))}catch(p){r(p)}},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{y as J,m as N,u as U,p as j,t as E,D as z}from"./Editor-CyNe60Cy-DrJAuHY9.js";import{E as G,a as P,n as v,l as K}from"./utils-BJP0FOwA.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(w({alert:P},o==null?void 0:o.__ACCESS__)),p=o?([e,t]=S(()=>new G(o).load()),e=yield e,t(),e):{},{__BASE_PATH__:d="/",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",c=location.pathname;let m=c===`${d}__vtj__/`?d:c;const f=s.currentFile;if(f&&f.type==="page"&&s.homepage!==f.id){const y=`${b(h)}${u?"pages":k}/${f.id}`;m=T()?`${m}#/${y}`:`${m}${y}`}window.open(m,"VTJProject")}}}),E.set("Previewer",{props:{path:(s,u)=>{const c=location.pathname;return u.platform==="uniapp"?`${c}uni/#/pages/${s.id}`:`${c}#/preview/${s.id}`}}});const $=new z(w({container:r,service:l,materialPath:d,pageBasePath:h==="/"?"":h,adapter:i,access:n,remote:B,auth:q,checkVersion:F,enhance:R},p));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 R=Object.defineProperty;var v=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable;var E=(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={}))h.call(e,t)&&E(o,t,e[t]);if(v)for(var t of v(e))x.call(e,t)&&E(o,t,e[t]);return o};var l=(o,e,t)=>new Promise((p,r)=>{var i=a=>{try{n(t.next(a))}catch(m){r(m)}},c=a=>{try{n(t.throw(a))}catch(m){r(m)}},n=a=>a.done?p(a.value):Promise.resolve(a.value).then(i,c);n((t=t.apply(o,e)).next())});import{_ as w}from"./monaco-editor-B5WqzYTl.js";import{useRoute as P}from"./vue-router-BO40Wv73.js";import"./element-plus-XVJlWyfz.js";import"./vxe-CWcmrjam.js";import{y as g,m as V,u as T,d as k,w as B,A as D,c as I}from"./Editor-CyNe60Cy-DrJAuHY9.js";import{a as O,n as A,l as L,E as S}from"./utils-BJP0FOwA.js";import{q}from"./@vueuse-vmN9qs5b.js";import{d as z,ay as C,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 p=new g(V(A)),r=([e,t]=C(()=>p.getExtension().catch(()=>null)),e=yield e,t(),e),i=T({loading:L,notify:A,useTitle:q,alert:O,access:r==null?void 0:r.access}),c=r?([e,t]=C(()=>new S(r).load()),e=yield e,t(),e):{},{__BASE_PATH__:n="/"}=r||{},{provider:a,onReady:m}=k({mode:B.Runtime,service:p,materialPath:n,adapter:d(d({},i),c.adapter),dependencies:{Vue:()=>w(()=>import("./vue-BfodOvnP.js").then(s=>s.az),[],import.meta.url),VueRouter:()=>w(()=>import("./vue-router-BO40Wv73.js"),__vite__mapDeps([0,1]),import.meta.url)}}),f=P(),_=H(),u=F();return m(()=>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(),y=>{I(s,f,y)}))})),(s,y)=>_.value?(j(),K(b(_.value),{key:0})):N("",!0)})}});export{ne 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 R=Object.defineProperty;var v=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var y=(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={}))x.call(e,t)&&y(o,t,e[t]);if(v)for(var t of v(e))P.call(e,t)&&y(o,t,e[t]);return o};var f=(o,e,t)=>new Promise((c,s)=>{var _=a=>{try{i(t.next(a))}catch(m){s(m)}},n=a=>{try{i(t.throw(a))}catch(m){s(m)}},i=a=>a.done?c(a.value):Promise.resolve(a.value).then(_,n);i((t=t.apply(o,e)).next())});import{_ as w}from"./monaco-editor-B5WqzYTl.js";import{useRoute as V}from"./vue-router-BO40Wv73.js";import"./element-plus-XVJlWyfz.js";import"./vxe-CWcmrjam.js";import{y as g,m as T,u as k,d as B,w as D,h as I,A as O,c as L}from"./Editor-CyNe60Cy-DrJAuHY9.js";import{a as S,n as E,l as q,E as z}from"./utils-BJP0FOwA.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 me=K({__name:"preview",setup(o){return f(this,null,function*(){let e,t;const c=new g(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:m}=B({mode:D.Runtime,service:c,materialPath:i,adapter:d(d({},_),n.adapter),dependencies:{Vue:()=>w(()=>import("./vue-BfodOvnP.js").then(p=>p.az),[],import.meta.url),VueRouter:()=>w(()=>import("./vue-router-BO40Wv73.js"),__vite__mapDeps([0,1]),import.meta.url)}}),h=V(),u=N(),l=J();return m(()=>f(null,null,function*(){const p=yield I(s.enhance),r=l==null?void 0:l.appContext.app;r&&(n.install&&n.install(r),p&&r.use(p,a),r.use(O),r.use(a),u.value=yield a.getRenderComponent(h.params.id.toString(),C=>{L(r,h,C)}))})),(p,r)=>u.value?(G(),b(F(u.value),{key:0})):j("",!0)})}});export{me 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
|
|
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 f}from"./vue-BfodOvnP.js";import{B as O,T as V,L as A,a as b,e as R,b as m,f as P,R as D,O as M,D as B,U as L,g as h,G as y,I as N,x,V as j,i as w,N as k,j as v,k as H,l as U,n as Y,o as G,q as K,P as W,Q as C,M as F,r as $,s as z,v 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 fa,aa as Oa,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 Ba,ak as La,al as ha,am as ya,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-CyNe60Cy-DrJAuHY9.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:O,API_METHOD_TYPES:V,Assets:A,Binder:b,Box:R,Designer:m,DevTools:P,EVENT_MODIFIERS:D,Editor:M,Engine:B,EventBinder:L,Icon:h,Item:y,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:fa,defaultSetter:Oa,depsManager:Va,engineKey:Aa,expressionValidate:ba,getClassProperties:Ra,message:ma,normalizedStyle:Pa,notify:Da,proxyContext:Ma,readJsonFile:Ba,regions:La,setterManager:ha,setters:ya,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:f,__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__ = '1749608588029';
|
|
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
|
+
<!--{{1749608588029}}-->
|
|
29
29
|
|
|
30
|
-
<script type="module" crossorigin src="./assets/index-
|
|
30
|
+
<script type="module" crossorigin src="./assets/index-CznrUnKa.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">
|