@vtj/pro 0.16.26 → 0.16.28
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-DyuWe83--BVB-iC-v.js → Editor-1j6xPW7V-SwYZKX1P.js} +98 -94
- package/dist/assets/auth-3uEulBqT.js +1 -0
- package/dist/assets/index-BGMOI1x0.js +1 -0
- package/dist/assets/{index-KkwS5J8c.js → index-DrYlHksQ.js} +2 -2
- package/dist/assets/{page-Dy3HsUho.js → page-BszTT1Ax.js} +1 -1
- package/dist/assets/preview-CuRZXjJS.js +2 -0
- package/dist/assets/utils-CwTi1_bC.js +1 -0
- package/dist/index.html +3 -3
- package/dist/uni/assets/index-DdugrPRo.js +80 -0
- package/dist/uni/index.html +1 -1
- package/package.json +11 -11
- package/dist/assets/auth-CLpAqhe-.js +0 -1
- package/dist/assets/index-DC4JwDQC.js +0 -1
- package/dist/assets/preview-lwFqZLvM.js +0 -2
- package/dist/assets/utils-DwSQlKsg.js +0 -1
- package/dist/uni/assets/index-C59gwPz0.js +0 -76
- /package/dist/assets/{Editor-DyuWe83--ClyxY6WL.css → Editor-1j6xPW7V-ClyxY6WL.css} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var k=Object.defineProperty;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var w=(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={}))A.call(e,t)&&w(o,t,e[t]);if(y)for(var t of y(e))U.call(e,t)&&w(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-ClWnlNxy.js";import"./vxe-BJJKGxpR.js";import{L as I,aF as b,a9 as d,aG as E,aH as L,W as $}from"./Editor-1j6xPW7V-SwYZKX1P.js";import{useRoute as q}from"./vue-router-DLyhMsB6.js";import{x,az as f,I as v,D as C,u as l,E as B,U as R}from"./vue-Cs4cahp0.js";import{_ as g}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vueuse-DGhgU4Wj.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Df95_Dth.js";import"./@element-plus-icons-vue-DfQfjj5s.js";import"./dayjs-GGXMDmCk.js";import"./monaco-editor-Bgo-w-Z8.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-C_F9xDf5.js";import"./marked--VTVY_DP.js";const G={class:"loading"},S=x({__name:"Auth",props:{remote:{},access:{},baseUrl:{default:"/"}},setup(o){return _(this,null,function*(){let e,t;const c=o,s=I(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 L(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",G,"正在登录中..."))})}}),W=g(S,[["__scopeId","data-v-2cb061ca"]]),Z=x({__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(),B(l(W),{key:0,remote:l(n),access:l(p)},null,8,["remote","access"])):R("",!0)})}});export{Z as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var I=Object.defineProperty;var P=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var B=(n,e,t)=>e in n?I(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,w=(n,e)=>{for(var t in e||(e={}))L.call(e,t)&&B(n,t,e[t]);if(P)for(var t of P(e))N.call(e,t)&&B(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 V}from"./vue-router-DLyhMsB6.js";import{y as Z}from"./@vueuse-DGhgU4Wj.js";import{W as j,z as D,B as J,L as K,Z as C,a as O,d as E}from"./Editor-1j6xPW7V-SwYZKX1P.js";import"./element-plus-ClWnlNxy.js";import"./vxe-BJJKGxpR.js";import{E as U,a as v,n as S,l as G}from"./utils-CwTi1_bC.js";import{x as M,az as A,d as Q,I as X,r as Y,D as ee}from"./vue-Cs4cahp0.js";import{_ as te}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./monaco-editor-Bgo-w-Z8.js";import"./dayjs-GGXMDmCk.js";import"./@element-plus-icons-vue-DfQfjj5s.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-C_F9xDf5.js";import"./marked--VTVY_DP.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Df95_Dth.js";const ae=M({__name:"index",setup(n){return d(this,null,function*(){let e,t;const _=V(),r=Y(),l=new j(D(S)),s=([e,t]=A(()=>l.getExtension().catch(()=>null)),e=yield e,t(),e||{}),i=s?([e,t]=A(()=>new U(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:o="/",history:p="hash",base:h="/",pageRouteName:y="page",remote:g,auth:k,checkVersion:W=!0,enhance:z,platform:F="web"}=s||{},R=J({loading:G,notify:S,useTitle:Z,alert:v,access:s==null?void 0:s.access,settings:{proxyPath:`${g}/api/proxy`}}),T=K(w({alert:v},s==null?void 0:s.__ACCESS__)),b=()=>p==="hash",q=a=>a==="/"?"":(a.startsWith("/")&&(a=a.substring(1)),a.endsWith("/")||(a=a+"/"),a);C.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 H=s.pageBasePath?`/${y}`:"",x=`${q(h)}${u?`pages${H}`:y}/${f.id}`;m=b()?`${m}#/${x}`:`${m}${x}`}window.open(m,"VTJProject")}}}),C.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(w({container:r,service:l,materialPath:o,pageBasePath:h==="/"?"":h,adapter:R,access:T,remote:g,auth:k,checkVersion:W,enhance:z,project:{platform:F}},i));return $.ready(()=>d(null,null,function*(){yield E(300),$.openFile(_.query.id)})),Q(()=>_.query.id,a=>d(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-f41f19f5"]]);export{ge as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-
|
|
2
|
-
import{x 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-Cs4cahp0.js";import{z as g,c as E}from"./element-plus-ClWnlNxy.js";import"./dayjs-GGXMDmCk.js";import{_ as r}from"./monaco-editor-Bgo-w-Z8.js";import{createRouter as y,createWebHashHistory as O}from"./vue-router-DLyhMsB6.js";import"./@vueuse-DGhgU4Wj.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Df95_Dth.js";import"./@element-plus-icons-vue-DfQfjj5s.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(E),{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-BGMOI1x0.js","./vue-router-DLyhMsB6.js","./vue-Cs4cahp0.js","./@vueuse-DGhgU4Wj.js","./Editor-1j6xPW7V-SwYZKX1P.js","./monaco-editor-Bgo-w-Z8.js","./monaco-editor-C0wzwsn5.css","./element-plus-ClWnlNxy.js","./lodash-es-BxdYFYdv.js","./shared-Df95_Dth.js","./@element-plus-icons-vue-DfQfjj5s.js","./dayjs-GGXMDmCk.js","./element-plus-AP7zs95r.css","./vxe-BJJKGxpR.js","./vxe-BAb1d5vW.css","./html2canvas-DNSjNh3_.js","./mockjs-C_F9xDf5.js","./marked--VTVY_DP.js","./Editor-1j6xPW7V-ClyxY6WL.css","./utils-CwTi1_bC.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-Br68Req3.css","./preview-CuRZXjJS.js","./page-BszTT1Ax.js","./uni-page-hurVTe5x.js","./uni-page-Diqmj53r.css","./auth-3uEulBqT.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{x 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-Cs4cahp0.js";import{z as g,c as E}from"./element-plus-ClWnlNxy.js";import"./dayjs-GGXMDmCk.js";import{_ as r}from"./monaco-editor-Bgo-w-Z8.js";import{createRouter as y,createWebHashHistory as O}from"./vue-router-DLyhMsB6.js";import"./@vueuse-DGhgU4Wj.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Df95_Dth.js";import"./@element-plus-icons-vue-DfQfjj5s.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(E),{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-BGMOI1x0.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-CuRZXjJS.js"),__vite__mapDeps([22,5,6,1,2,7,3,8,9,10,11,12,13,14,4,15,16,17,18,19]),import.meta.url)},{path:"/page/:id",name:"page",component:()=>r(()=>import("./page-BszTT1Ax.js"),__vite__mapDeps([23,5,6,1,2,7,3,8,9,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-hurVTe5x.js"),__vite__mapDeps([24,1,2,20,25]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>r(()=>import("./auth-3uEulBqT.js"),__vite__mapDeps([26,7,3,2,8,9,10,11,12,13,14,4,5,6,1,15,16,17,18,20]),import.meta.url)}],A=y({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-DLyhMsB6.js","./vue-Cs4cahp0.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var R=Object.defineProperty;var E=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,A=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,y=(o,t)=>{for(var e in t||(t={}))h.call(t,e)&&x(o,e,t[e]);if(E)for(var e of E(t))A.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 C}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as
|
|
2
|
+
var R=Object.defineProperty;var E=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,A=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,y=(o,t)=>{for(var e in t||(t={}))h.call(t,e)&&x(o,e,t[e]);if(E)for(var e of E(t))A.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 C}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as P}from"./vue-router-DLyhMsB6.js";import"./element-plus-ClWnlNxy.js";import"./vxe-BJJKGxpR.js";import{W as k,z as B,B as V,J as D,y as T,Y as z,k as I}from"./Editor-1j6xPW7V-SwYZKX1P.js";import{a as S,n as g,l as J,E as L}from"./utils-CwTi1_bC.js";import{y as O}from"./@vueuse-DGhgU4Wj.js";import{x as W,az as w,d as Y,E as H,S as N,U,r as b,D as j,g as q}from"./vue-Cs4cahp0.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Df95_Dth.js";import"./@element-plus-icons-vue-DfQfjj5s.js";import"./dayjs-GGXMDmCk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-C_F9xDf5.js";import"./marked--VTVY_DP.js";const it=W({__name:"page",setup(o){return c(this,null,function*(){let t,e;const _=new k(B(g)),s=([t,e]=w(()=>_.getExtension().catch(()=>null)),t=yield t,e(),t),u=V({loading:J,notify:g,useTitle:O,alert:S,access:s==null?void 0:s.access}),d=s?([t,e]=w(()=>new L(s).load()),t=yield t,e(),t):{},{__BASE_PATH__:p="/"}=s||{},{provider:r,onReady:i}=D({mode:T.Runtime,service:_,materialPath:p,adapter:y(y({},u),d.adapter),dependencies:{Vue:()=>C(()=>import("./vue-Cs4cahp0.js").then(a=>a.aA),[],import.meta.url),VueRouter:()=>C(()=>import("./vue-router-DLyhMsB6.js"),__vite__mapDeps([0,1]),import.meta.url)}}),l=P(),f=b(),n=q(),v=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(z),a.use(r),v(a))})),Y(()=>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?(j(),H(N(f.value),{key:0})):U("",!0)})}});export{it as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-DLyhMsB6.js","./vue-Cs4cahp0.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var R=Object.defineProperty;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,g=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={}))A.call(e,t)&&E(o,t,e[t]);if(y)for(var t of y(e))g.call(e,t)&&E(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 w}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as k}from"./vue-router-DLyhMsB6.js";import"./element-plus-ClWnlNxy.js";import"./vxe-BJJKGxpR.js";import{W as B,z as P,B as V,J as D,y as T,K as z,Y as I,k as S}from"./Editor-1j6xPW7V-SwYZKX1P.js";import{a as J,n as h,l as K,E as L}from"./utils-CwTi1_bC.js";import{y as O}from"./@vueuse-DGhgU4Wj.js";import{x as W,az as x,E as Y,S as H,U as N,r as U,D as b,g as j}from"./vue-Cs4cahp0.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Df95_Dth.js";import"./@element-plus-icons-vue-DfQfjj5s.js";import"./dayjs-GGXMDmCk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-C_F9xDf5.js";import"./marked--VTVY_DP.js";const pe=W({__name:"preview",setup(o){return f(this,null,function*(){let e,t;const c=new B(P(h)),s=([e,t]=x(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e||{}),_=V({loading:K,notify:h,useTitle:O,alert:J,access:s==null?void 0:s.access}),n=s?([e,t]=x(()=>new L(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:i="/"}=s||{},{provider:a,onReady:p}=D({mode:T.Runtime,service:c,materialPath:i,adapter:d(d({},_),n.adapter),dependencies:{Vue:()=>w(()=>import("./vue-Cs4cahp0.js").then(m=>m.aA),[],import.meta.url),VueRouter:()=>w(()=>import("./vue-router-DLyhMsB6.js"),__vite__mapDeps([0,1]),import.meta.url)}}),v=k(),u=U(),l=j();return p(()=>f(null,null,function*(){const m=yield z(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(),C=>{S(r,v,C)}))})),(m,r)=>u.value?(b(),Y(H(u.value),{key:0})):N("",!0)})}});export{pe as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var O=Object.defineProperty;var p=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,E=(t,a)=>{for(var s in a||(a={}))m.call(a,s)&&T(t,s,a[s]);if(p)for(var s of p(a))u.call(a,s)&&T(t,s,a[s]);return t};var l=(t,a,s)=>T(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(_){n(_)}},c=r=>{try{i(s.throw(r))}catch(_){n(_)}},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-Cs4cahp0.js";import{b as A,R as I,c as f,v as V,p as P,q as b,H as h,e as R,f as y,g as N,a as B,A as D,X as L,h as M,S as H,i as k,j as K,F as v,l as x,G,m as w,Q as F,n as Y,o as C,x as U,r as W,s as $,t as J,u as X,w as j,C as z,D as Z,E as q,I as Q,M as aa,N as sa,O as ea,P as ta,T as ra,V as na,U as ia,_ as oa,$ as _a,a0 as la,a1 as Ea,a2 as ca,a3 as Ta,a4 as pa,a5 as Sa,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 ba,ah as ha,ai as Ra,aj as ya,ak as Na,al as Ba,am as Da,an as La,ao as Ma,ap as Ha,aq as ka,ar as Ka,as as va,at as xa,au as Ga,av as wa,aw as Fa,Z as Ya,ax as Ca,ay as Ua,az as Wa,aA as $a,aB as Ja,aC as Xa,aD as ja,aE as za}from"./Editor-1j6xPW7V-SwYZKX1P.js";import{E as Za,a as qa,b as Qa}from"./element-plus-ClWnlNxy.js";import"./dayjs-GGXMDmCk.js";const as=Object.freeze(Object.defineProperty({__proto__:null,API_METHOD_TYPES:A,ActionMenu:I,Assets:f,Binder:V,Box:P,CodeIncrementalUpdater:b,DEVTOOLS_DEP:h,Designer:R,EVENT_MODIFIERS:y,Editor:N,Engine:B,EventBinder:D,GET_TOKENS_LINK:L,HOT_KEYS_DEP:M,Icon:H,Item:k,KEYBOARD_EVENT_LIST:K,MAX_TOKENS:v,MOBILE_SIZE:x,MOUSE_EVENT_LIST:G,NAME_REGEX:w,NPM_REGISTRY_URL:F,OpenApi:Y,PAD_SIZE:C,Panel:U,REPORT_API:W,RegionType:$,RegionWrapper:J,Renderer:X,SAVE_BLOCK_FILE_FINISH:j,SESSION_ID_KEY:z,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:_a,VTJ_DESIGNER_VERSION:la,VUE_DEVTOOLS_FRAME_STATE_KEY:Ea,VUE_DEVTOOLS_OVERLAY_PATH:ca,VUE_DEVTOOLS_PATH:Ta,VariableBinder:pa,Viewer:Sa,Viewport:ga,WidgetGroup:Oa,WidgetWrapper:ma,alert:ua,builtInDeps:da,builtInMaterials:Aa,builtInSetters:Ia,builtInWidgets:fa,codeIncrementalUpdater:Va,confirm:Pa,createSlotsPicker:ba,defaultSetter:ha,depsManager:Ra,engineKey:ya,expressionValidate:Na,getClassProperties:Ba,loading:Da,message:La,normalizedStyle:Ma,notify:Ha,proxyContext:ka,readJsonFile:Ka,regions:va,setterManager:xa,setters:Ga,upgradeVersion:wa,useEngine:Fa,widgetManager:Ya,widgets:Ca},Symbol.toStringTag,{value:"Module"}));class is{constructor(a){l(this,"urls",[]);l(this,"library","");l(this,"params",[]);l(this,"__BASE_PATH__","/");this.config=a;const s=E(E(E({},Wa),as),Ua),o={Vue:d,__VTJ_PRO__:s};for(const[_,g]of Object.entries(o))window[_]=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 S(this,null,function*(){let a={};if(this.library){const s=this.__BASE_PATH__,o=this.urls.filter(e=>$a(e)).map(e=>`${s}${e}`),n=this.urls.filter(e=>Ja(e)).map(e=>`${s}${e}`);if(Xa(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 os(){return Qa.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"})}function _s(t,a="",s="warning"){qa({title:a,message:t,type:s})}function ls(t,a){return Za.alert(t,a)}export{is as E,ls as a,os as l,_s 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__ = '1777360148001';
|
|
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
|
+
<!--{{1777360148001}}-->
|
|
31
31
|
|
|
32
|
-
<script type="module" crossorigin src="./assets/index-
|
|
32
|
+
<script type="module" crossorigin src="./assets/index-DrYlHksQ.js"></script>
|
|
33
33
|
<link rel="modulepreload" crossorigin href="./assets/vue-Cs4cahp0.js">
|
|
34
34
|
<link rel="modulepreload" crossorigin href="./assets/@vueuse-DGhgU4Wj.js">
|
|
35
35
|
<link rel="modulepreload" crossorigin href="./assets/lodash-es-BxdYFYdv.js">
|