@vtj/pro 0.13.39 → 0.13.41

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.
Files changed (29) hide show
  1. package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
  2. package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
  3. package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
  4. package/dist/@vtj/materials/assets/icons/index.umd.js +2 -2
  5. package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
  6. package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
  7. package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
  8. package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
  9. package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
  10. package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
  11. package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
  12. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
  13. package/dist/@vtj/materials/deps/uni-h5/style.css +1 -1
  14. package/dist/@vtj/materials/deps/vue-i18n/vue-i18n.global.js +7 -7
  15. package/dist/@vtj/materials/deps/vue-i18n/vue-i18n.global.prod.js +2 -2
  16. package/dist/assets/{Editor-CB7H71mV-ZgvMz2MG.js → Editor-DtYlUtiz-BLbwl4k5.js} +19 -19
  17. package/dist/assets/{Editor-CB7H71mV-C0ROBped.css → Editor-DtYlUtiz-CGeaFV1u.css} +1 -1
  18. package/dist/assets/auth-DXp-ZPTJ.js +1 -0
  19. package/dist/assets/{index-CfEg0G4X.js → index-D6rFgA1b.js} +1 -1
  20. package/dist/assets/{index-DRT_gnec.js → index-DmtmALuQ.js} +2 -2
  21. package/dist/assets/{page-BoUPZL85.js → page-BWwFGYBR.js} +1 -1
  22. package/dist/assets/{preview-6kb9FMSl.js → preview-tazB8dak.js} +1 -1
  23. package/dist/assets/{utils-BRRyiuJG.js → utils-DwR3V4VL.js} +1 -1
  24. package/dist/index.html +4 -3
  25. package/dist/uni/assets/{index-BBaSDF4L.js → index-DJC3P0pf.js} +5 -5
  26. package/dist/uni/index.html +5 -5
  27. package/package.json +11 -11
  28. package/src/Auth.vue +7 -0
  29. package/dist/assets/auth-DnD_8cBd.js +0 -1
@@ -0,0 +1 @@
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-CTJx9qrF.js";import"./vxe-CV1GhgEu.js";import{A as b,aA as B,a6 as d,aB as I,aC as $,D as q}from"./Editor-DtYlUtiz-BLbwl4k5.js";import{useRoute as v}from"./vue-router-C7QxHR5l.js";import{d as C,az as f,c as E,o as w,G as R,O as S,u as l}from"./vue-DnlwaDgl.js";import{_ as g}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./dayjs-BGdj-UA2.js";import"./@vueuse-dfxA5MrB.js";import"./@element-plus-icons-vue-Cedkr9-t.js";import"./lodash-es-C_ofKwPd.js";import"./shared-CcA2kMdO.js";import"./monaco-editor-BnTtZo-x.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-D0SPmEx8.js";import"./marked-Dt4xUbva.js";const D={class:"loading"},z=C({__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=v(),p=a=>_(null,null,function*(){const h=`${c.remote||I}/api/open/user/${a}`,m=yield $(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)=>(w(),E("div",D,"正在登录中..."))})}}),G=g(z,[["__scopeId","data-v-2cb061ca"]]),Z=C({__name:"auth",setup(o){return _(this,null,function*(){let e,t;const c=new q,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)?(w(),R(l(G),{key:0,remote:l(n),access:l(p)},null,8,["remote","access"])):S("",!0)})}});export{Z as default};
@@ -1 +1 @@
1
- var N=Object.defineProperty;var C=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var P=(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)&&P(o,t,e[t]);if(C)for(var t of C(e))W.call(e,t)&&P(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 j}from"./vue-router-C7QxHR5l.js";import{x as z}from"./@vueuse-dfxA5MrB.js";import{D as I,M as J,C as U,A as G,e as A,H as K,d as E}from"./Editor-CB7H71mV-ZgvMz2MG.js";import"./element-plus-CTJx9qrF.js";import"./vxe-CV1GhgEu.js";import{E as L,a as v,n as S,l as O}from"./utils-BRRyiuJG.js";import{d as Q,b as X,az as B,e as Y,c as Z,o as ee}from"./vue-DnlwaDgl.js";import{_ as te}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./monaco-editor-BnTtZo-x.js";import"./@element-plus-icons-vue-Cedkr9-t.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-D0SPmEx8.js";import"./dayjs-BGdj-UA2.js";import"./marked-Dt4xUbva.js";import"./lodash-es-C_ofKwPd.js";import"./shared-CcA2kMdO.js";const ae=Q({__name:"index",setup(o){return f(this,null,function*(){let e,t;const _=j(),r=X(),l=new I(J(S)),s=([e,t]=B(()=>l.getExtension().catch(()=>null)),e=yield e,t(),e||{}),i=U({loading:O,notify:S,useTitle:z,alert:v,access:s==null?void 0:s.access}),n=G(y({alert:v},s==null?void 0:s.__ACCESS__)),c=s?([e,t]=B(()=>new L(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:h="/",history:b="hash",base:w="/",pageRouteName:g="page",remote:k,auth:H,checkVersion:T=!0,enhance:F,platform:R="web"}=s||{},q=()=>b==="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",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=`${D(w)}${u?`pages${M}`:g}/${d.id}`;m=q()?`${m}#/${x}`:`${m}${x}`}window.open(m,"VTJProject")}}}),A.set("Previewer",{props:{path:(a,u)=>{const p=location.pathname;return u.platform==="uniapp"?`${p}uni/#/pages/${a.id}`:`${p}#/preview/${a.id}`}}});const $=new K(y({container:r,service:l,materialPath:h,pageBasePath:w==="/"?"":w,adapter:i,access:n,remote:k,auth:H,checkVersion:T,enhance:F,project:{platform:R}},c));return $.ready(()=>f(null,null,function*(){yield E(300),$.openFile(_.query.id)})),Y(()=>_.query.id,a=>f(null,null,function*(){yield E(300),$.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};
1
+ var N=Object.defineProperty;var C=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var P=(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)&&P(o,t,e[t]);if(C)for(var t of C(e))W.call(e,t)&&P(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 j}from"./vue-router-C7QxHR5l.js";import{x as z}from"./@vueuse-dfxA5MrB.js";import{D as I,M as J,C as U,A as G,e as A,H as K,d as E}from"./Editor-DtYlUtiz-BLbwl4k5.js";import"./element-plus-CTJx9qrF.js";import"./vxe-CV1GhgEu.js";import{E as L,a as v,n as S,l as O}from"./utils-DwR3V4VL.js";import{d as Q,b as X,az as B,e as Y,c as Z,o as ee}from"./vue-DnlwaDgl.js";import{_ as te}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./monaco-editor-BnTtZo-x.js";import"./@element-plus-icons-vue-Cedkr9-t.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-D0SPmEx8.js";import"./dayjs-BGdj-UA2.js";import"./marked-Dt4xUbva.js";import"./lodash-es-C_ofKwPd.js";import"./shared-CcA2kMdO.js";const ae=Q({__name:"index",setup(o){return f(this,null,function*(){let e,t;const _=j(),r=X(),l=new I(J(S)),s=([e,t]=B(()=>l.getExtension().catch(()=>null)),e=yield e,t(),e||{}),i=U({loading:O,notify:S,useTitle:z,alert:v,access:s==null?void 0:s.access}),n=G(y({alert:v},s==null?void 0:s.__ACCESS__)),c=s?([e,t]=B(()=>new L(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:h="/",history:b="hash",base:w="/",pageRouteName:g="page",remote:k,auth:H,checkVersion:T=!0,enhance:F,platform:R="web"}=s||{},q=()=>b==="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",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=`${D(w)}${u?`pages${M}`:g}/${d.id}`;m=q()?`${m}#/${x}`:`${m}${x}`}window.open(m,"VTJProject")}}}),A.set("Previewer",{props:{path:(a,u)=>{const p=location.pathname;return u.platform==="uniapp"?`${p}uni/#/pages/${a.id}`:`${p}#/preview/${a.id}`}}});const $=new K(y({container:r,service:l,materialPath:h,pageBasePath:w==="/"?"":w,adapter:i,access:n,remote:k,auth:H,checkVersion:T,enhance:F,project:{platform:R}},c));return $.ready(()=>f(null,null,function*(){yield E(300),$.openFile(_.query.id)})),Y(()=>_.query.id,a=>f(null,null,function*(){yield E(300),$.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};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-CfEg0G4X.js","./vue-router-C7QxHR5l.js","./vue-DnlwaDgl.js","./@vueuse-dfxA5MrB.js","./Editor-CB7H71mV-ZgvMz2MG.js","./monaco-editor-BnTtZo-x.js","./monaco-editor-Cpw7ccEV.css","./element-plus-CTJx9qrF.js","./dayjs-BGdj-UA2.js","./@element-plus-icons-vue-Cedkr9-t.js","./lodash-es-C_ofKwPd.js","./shared-CcA2kMdO.js","./element-plus-Cubt0wGL.css","./vxe-CV1GhgEu.js","./vxe-BAb1d5vW.css","./html2canvas-DNSjNh3_.js","./mockjs-D0SPmEx8.js","./marked-Dt4xUbva.js","./Editor-CB7H71mV-C0ROBped.css","./utils-BRRyiuJG.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-Ce7h16Vb.css","./preview-6kb9FMSl.js","./page-BoUPZL85.js","./uni-page-DhlBsrdh.js","./uni-page-Diqmj53r.css","./auth-DnD_8cBd.js"])))=>i.map(i=>d[i]);
2
- import{d as _,G as p,u as s,al as d,o as m,K as u,aB as f,U as h,av as v}from"./vue-DnlwaDgl.js";import{z as g,c as y}from"./element-plus-CTJx9qrF.js";import{_ as r}from"./monaco-editor-BnTtZo-x.js";import{createRouter as E,createWebHashHistory as O}from"./vue-router-C7QxHR5l.js";import"./dayjs-BGdj-UA2.js";import"./@vueuse-dfxA5MrB.js";import"./@element-plus-icons-vue-Cedkr9-t.js";import"./lodash-es-C_ofKwPd.js";import"./shared-CcA2kMdO.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-CfEg0G4X.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-6kb9FMSl.js"),__vite__mapDeps([22,5,6,1,2,7,8,3,9,10,11,12,13,14,4,15,16,17,18,19]),import.meta.url)},{path:"/page/:id",name:"page",component:()=>r(()=>import("./page-BoUPZL85.js"),__vite__mapDeps([23,5,6,1,2,7,8,3,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-DhlBsrdh.js"),__vite__mapDeps([24,1,2,20,25]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>r(()=>import("./auth-DnD_8cBd.js"),__vite__mapDeps([26,7,2,8,3,9,10,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");
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-D6rFgA1b.js","./vue-router-C7QxHR5l.js","./vue-DnlwaDgl.js","./@vueuse-dfxA5MrB.js","./Editor-DtYlUtiz-BLbwl4k5.js","./monaco-editor-BnTtZo-x.js","./monaco-editor-Cpw7ccEV.css","./element-plus-CTJx9qrF.js","./dayjs-BGdj-UA2.js","./@element-plus-icons-vue-Cedkr9-t.js","./lodash-es-C_ofKwPd.js","./shared-CcA2kMdO.js","./element-plus-Cubt0wGL.css","./vxe-CV1GhgEu.js","./vxe-BAb1d5vW.css","./html2canvas-DNSjNh3_.js","./mockjs-D0SPmEx8.js","./marked-Dt4xUbva.js","./Editor-DtYlUtiz-CGeaFV1u.css","./utils-DwR3V4VL.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-Ce7h16Vb.css","./preview-tazB8dak.js","./page-BWwFGYBR.js","./uni-page-DhlBsrdh.js","./uni-page-Diqmj53r.css","./auth-DXp-ZPTJ.js"])))=>i.map(i=>d[i]);
2
+ import{d as _,G as p,u as s,al as d,o as m,K as u,aB as f,U as h,av as v}from"./vue-DnlwaDgl.js";import{z as g,c as y}from"./element-plus-CTJx9qrF.js";import{_ as r}from"./monaco-editor-BnTtZo-x.js";import{createRouter as E,createWebHashHistory as O}from"./vue-router-C7QxHR5l.js";import"./dayjs-BGdj-UA2.js";import"./@vueuse-dfxA5MrB.js";import"./@element-plus-icons-vue-Cedkr9-t.js";import"./lodash-es-C_ofKwPd.js";import"./shared-CcA2kMdO.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-D6rFgA1b.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-tazB8dak.js"),__vite__mapDeps([22,5,6,1,2,7,8,3,9,10,11,12,13,14,4,15,16,17,18,19]),import.meta.url)},{path:"/page/:id",name:"page",component:()=>r(()=>import("./page-BWwFGYBR.js"),__vite__mapDeps([23,5,6,1,2,7,8,3,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-DhlBsrdh.js"),__vite__mapDeps([24,1,2,20,25]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>r(()=>import("./auth-DXp-ZPTJ.js"),__vite__mapDeps([26,7,2,8,3,9,10,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");
@@ -1,2 +1,2 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-C7QxHR5l.js","./vue-DnlwaDgl.js"])))=>i.map(i=>d[i]);
2
- var P=Object.defineProperty;var y=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;var R=(o,t,e)=>t in o?P(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,C=(o,t)=>{for(var e in t||(t={}))g.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-BnTtZo-x.js";import{useRoute as A}from"./vue-router-C7QxHR5l.js";import"./element-plus-CTJx9qrF.js";import"./vxe-CV1GhgEu.js";import{D,M as V,C as T,F as k,w as B,Y as I,R as O}from"./Editor-CB7H71mV-ZgvMz2MG.js";import{a as F,n as x,l as L,E as M}from"./utils-BRRyiuJG.js";import{x as S}from"./@vueuse-dfxA5MrB.js";import{d as Y,az as E,b,e as z,G,O as H,P as N,o as j,l as q}from"./vue-DnlwaDgl.js";import"./dayjs-BGdj-UA2.js";import"./@element-plus-icons-vue-Cedkr9-t.js";import"./lodash-es-C_ofKwPd.js";import"./shared-CcA2kMdO.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-D0SPmEx8.js";import"./marked-Dt4xUbva.js";const it=Y({__name:"page",setup(o){return c(this,null,function*(){let t,e;const _=new D(V(x)),s=([t,e]=E(()=>_.getExtension().catch(()=>null)),t=yield t,e(),t),u=T({loading:L,notify:x,useTitle:S,alert:F,access:s==null?void 0:s.access}),d=s?([t,e]=E(()=>new M(s).load()),t=yield t,e(),t):{},{__BASE_PATH__:p="/"}=s||{},{provider:r,onReady:i}=k({mode:B.Runtime,service:_,materialPath:p,adapter:C(C({},u),d.adapter),dependencies:{Vue:()=>w(()=>import("./vue-DnlwaDgl.js").then(a=>a.aA),[],import.meta.url),VueRouter:()=>w(()=>import("./vue-router-C7QxHR5l.js"),__vite__mapDeps([0,1]),import.meta.url)}}),l=A(),f=b(),n=q(),v=a=>c(null,null,function*(){f.value=yield r.getRenderComponent(l.params.id.toString(),m=>{O(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?(j(),G(N(f.value),{key:0})):H("",!0)})}});export{it as default};
2
+ var P=Object.defineProperty;var y=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;var R=(o,t,e)=>t in o?P(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,C=(o,t)=>{for(var e in t||(t={}))g.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-BnTtZo-x.js";import{useRoute as A}from"./vue-router-C7QxHR5l.js";import"./element-plus-CTJx9qrF.js";import"./vxe-CV1GhgEu.js";import{D,M as V,C as T,F as k,w as B,Y as I,R as O}from"./Editor-DtYlUtiz-BLbwl4k5.js";import{a as F,n as x,l as L,E as M}from"./utils-DwR3V4VL.js";import{x as S}from"./@vueuse-dfxA5MrB.js";import{d as Y,az as E,b,e as z,G,O as H,P as N,o as j,l as q}from"./vue-DnlwaDgl.js";import"./dayjs-BGdj-UA2.js";import"./@element-plus-icons-vue-Cedkr9-t.js";import"./lodash-es-C_ofKwPd.js";import"./shared-CcA2kMdO.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-D0SPmEx8.js";import"./marked-Dt4xUbva.js";const it=Y({__name:"page",setup(o){return c(this,null,function*(){let t,e;const _=new D(V(x)),s=([t,e]=E(()=>_.getExtension().catch(()=>null)),t=yield t,e(),t),u=T({loading:L,notify:x,useTitle:S,alert:F,access:s==null?void 0:s.access}),d=s?([t,e]=E(()=>new M(s).load()),t=yield t,e(),t):{},{__BASE_PATH__:p="/"}=s||{},{provider:r,onReady:i}=k({mode:B.Runtime,service:_,materialPath:p,adapter:C(C({},u),d.adapter),dependencies:{Vue:()=>w(()=>import("./vue-DnlwaDgl.js").then(a=>a.aA),[],import.meta.url),VueRouter:()=>w(()=>import("./vue-router-C7QxHR5l.js"),__vite__mapDeps([0,1]),import.meta.url)}}),l=A(),f=b(),n=q(),v=a=>c(null,null,function*(){f.value=yield r.getRenderComponent(l.params.id.toString(),m=>{O(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?(j(),G(N(f.value),{key:0})):H("",!0)})}});export{it as default};
@@ -1,2 +1,2 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-C7QxHR5l.js","./vue-DnlwaDgl.js"])))=>i.map(i=>d[i]);
2
- var y=Object.defineProperty;var w=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,P=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))P.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-BnTtZo-x.js";import{useRoute as D}from"./vue-router-C7QxHR5l.js";import"./element-plus-CTJx9qrF.js";import"./vxe-CV1GhgEu.js";import{D as O,M as V,C as g,F as T,w as k,O as B,Y as I,R as F}from"./Editor-CB7H71mV-ZgvMz2MG.js";import{a as L,n as E,l as M,E as S}from"./utils-BRRyiuJG.js";import{x as Y}from"./@vueuse-dfxA5MrB.js";import{d as b,az as h,b as z,G,O as H,P as N,o as j,l as q}from"./vue-DnlwaDgl.js";import"./dayjs-BGdj-UA2.js";import"./@element-plus-icons-vue-Cedkr9-t.js";import"./lodash-es-C_ofKwPd.js";import"./shared-CcA2kMdO.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-D0SPmEx8.js";import"./marked-Dt4xUbva.js";const pe=b({__name:"preview",setup(o){return f(this,null,function*(){let e,t;const c=new O(V(E)),s=([e,t]=h(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e||{}),_=g({loading:M,notify:E,useTitle:Y,alert:L,access:s==null?void 0:s.access}),n=s?([e,t]=h(()=>new S(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:i="/"}=s||{},{provider:a,onReady:p}=T({mode:k.Runtime,service:c,materialPath:i,adapter:d(d({},_),n.adapter),dependencies:{Vue:()=>R(()=>import("./vue-DnlwaDgl.js").then(m=>m.aA),[],import.meta.url),VueRouter:()=>R(()=>import("./vue-router-C7QxHR5l.js"),__vite__mapDeps([0,1]),import.meta.url)}}),v=D(),u=z(),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(I),r.use(a),u.value=yield a.getRenderComponent(v.params.id.toString(),x=>{F(r,v,x)}))})),(m,r)=>u.value?(j(),G(N(u.value),{key:0})):H("",!0)})}});export{pe as default};
2
+ var y=Object.defineProperty;var w=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,P=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))P.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-BnTtZo-x.js";import{useRoute as D}from"./vue-router-C7QxHR5l.js";import"./element-plus-CTJx9qrF.js";import"./vxe-CV1GhgEu.js";import{D as O,M as V,C as g,F as T,w as k,O as B,Y as I,R as F}from"./Editor-DtYlUtiz-BLbwl4k5.js";import{a as L,n as E,l as M,E as S}from"./utils-DwR3V4VL.js";import{x as Y}from"./@vueuse-dfxA5MrB.js";import{d as b,az as h,b as z,G,O as H,P as N,o as j,l as q}from"./vue-DnlwaDgl.js";import"./dayjs-BGdj-UA2.js";import"./@element-plus-icons-vue-Cedkr9-t.js";import"./lodash-es-C_ofKwPd.js";import"./shared-CcA2kMdO.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-D0SPmEx8.js";import"./marked-Dt4xUbva.js";const pe=b({__name:"preview",setup(o){return f(this,null,function*(){let e,t;const c=new O(V(E)),s=([e,t]=h(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e||{}),_=g({loading:M,notify:E,useTitle:Y,alert:L,access:s==null?void 0:s.access}),n=s?([e,t]=h(()=>new S(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:i="/"}=s||{},{provider:a,onReady:p}=T({mode:k.Runtime,service:c,materialPath:i,adapter:d(d({},_),n.adapter),dependencies:{Vue:()=>R(()=>import("./vue-DnlwaDgl.js").then(m=>m.aA),[],import.meta.url),VueRouter:()=>R(()=>import("./vue-router-C7QxHR5l.js"),__vite__mapDeps([0,1]),import.meta.url)}}),v=D(),u=z(),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(I),r.use(a),u.value=yield a.getRenderComponent(v.params.id.toString(),x=>{F(r,v,x)}))})),(m,r)=>u.value?(j(),G(N(u.value),{key:0})):H("",!0)})}});export{pe as default};
@@ -1 +1 @@
1
- var A=Object.defineProperty;var g=Object.getOwnPropertySymbols;var m=Object.prototype.hasOwnProperty,u=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={}))m.call(a,s)&&S(t,s,a[s]);if(g)for(var s of g(a))u.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-DnlwaDgl.js";import{a as d,S as I,$ as f,o as V,s as b,U as h,B as P,b as R,X as L,H as y,c as B,K as N,G as k,u as D,f as M,z as H,J as x,j as K,g as w,h as W,i as Y,k as j,L as F,x as G,W as U,Q as J,l as v,m as X,n as $,p as z,N as Z,t as q,q as C,r as Q,v as aa,y as sa,E as ea,I as ta,P as ra,T as ia,V as na,Z 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 ma,a9 as ua,aa as Oa,ab as da,ac as Ia,ad as fa,ae as Va,af as ba,ag as ha,ah as Pa,ai as Ra,aj as La,ak as ya,al as Ba,am as Na,an as ka,ao as Da,ap as Ma,aq as Ha,ar as xa,e as Ka,as as wa,at as Wa,au as Ya,av as ja,aw as Fa,ax as Ga,ay as Ua,az as Ja}from"./Editor-CB7H71mV-ZgvMz2MG.js";import{E as va,a as Xa,b as $a}from"./element-plus-CTJx9qrF.js";const za=Object.freeze(Object.defineProperty({__proto__:null,API_METHOD_TYPES:d,ActionMenu:I,Assets:f,Binder:V,Box:b,DEVTOOLS_DEP:h,Designer:P,EVENT_MODIFIERS:R,Editor:L,Engine:y,EventBinder:B,GET_TOKENS_LINK:N,HOT_KEYS_DEP:k,Icon:D,Item:M,KEYBOARD_EVENT_LIST:H,MAX_TOKENS:x,MOBILE_SIZE:K,MOUSE_EVENT_LIST:w,NAME_REGEX:W,NPM_REGISTRY_URL:Y,OpenApi:j,PAD_SIZE:F,Panel:G,REPORT_API:U,RegionType:J,RegionWrapper:v,Renderer:X,SAVE_BLOCK_FILE_FINISH:$,SESSION_ID_KEY:z,STATE_KEY:Z,SetterView:q,SetterWrapper:C,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:ma,builtInSetters:ua,builtInWidgets:Oa,confirm:da,createSlotsPicker:Ia,defaultSetter:fa,depsManager:Va,engineKey:ba,expressionValidate:ha,getClassProperties:Pa,loading:Ra,message:La,normalizedStyle:ya,notify:Ba,proxyContext:Na,readJsonFile:ka,regions:Da,setterManager:Ma,setters:Ha,useEngine:xa,widgetManager:Ka,widgets:wa},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({},Ya),za),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=>ja(e)).map(e=>`${s}${e}`),i=this.urls.filter(e=>Fa(e)).map(e=>`${s}${e}`);if(Ga(o),i.length){const e=yield Ua(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"];return Ja(this.config,a)}}function ss(){return $a.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"})}function es(t,a="",s="warning"){Xa({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};
1
+ var A=Object.defineProperty;var g=Object.getOwnPropertySymbols;var m=Object.prototype.hasOwnProperty,u=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={}))m.call(a,s)&&S(t,s,a[s]);if(g)for(var s of g(a))u.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-DnlwaDgl.js";import{a as d,S as I,$ as f,o as V,s as b,U as h,B as P,b as R,X as L,H as y,c as B,K as N,G as k,u as D,f as M,z as H,J as x,j as K,g as w,h as W,i as Y,k as j,L as F,x as G,W as U,Q as J,l as v,m as X,n as $,p as z,N as Z,t as q,q as C,r as Q,v as aa,y as sa,E as ea,I as ta,P as ra,T as ia,V as na,Z 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 ma,a9 as ua,aa as Oa,ab as da,ac as Ia,ad as fa,ae as Va,af as ba,ag as ha,ah as Pa,ai as Ra,aj as La,ak as ya,al as Ba,am as Na,an as ka,ao as Da,ap as Ma,aq as Ha,ar as xa,e as Ka,as as wa,at as Wa,au as Ya,av as ja,aw as Fa,ax as Ga,ay as Ua,az as Ja}from"./Editor-DtYlUtiz-BLbwl4k5.js";import{E as va,a as Xa,b as $a}from"./element-plus-CTJx9qrF.js";const za=Object.freeze(Object.defineProperty({__proto__:null,API_METHOD_TYPES:d,ActionMenu:I,Assets:f,Binder:V,Box:b,DEVTOOLS_DEP:h,Designer:P,EVENT_MODIFIERS:R,Editor:L,Engine:y,EventBinder:B,GET_TOKENS_LINK:N,HOT_KEYS_DEP:k,Icon:D,Item:M,KEYBOARD_EVENT_LIST:H,MAX_TOKENS:x,MOBILE_SIZE:K,MOUSE_EVENT_LIST:w,NAME_REGEX:W,NPM_REGISTRY_URL:Y,OpenApi:j,PAD_SIZE:F,Panel:G,REPORT_API:U,RegionType:J,RegionWrapper:v,Renderer:X,SAVE_BLOCK_FILE_FINISH:$,SESSION_ID_KEY:z,STATE_KEY:Z,SetterView:q,SetterWrapper:C,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:ma,builtInSetters:ua,builtInWidgets:Oa,confirm:da,createSlotsPicker:Ia,defaultSetter:fa,depsManager:Va,engineKey:ba,expressionValidate:ha,getClassProperties:Pa,loading:Ra,message:La,normalizedStyle:ya,notify:Ba,proxyContext:Na,readJsonFile:ka,regions:Da,setterManager:Ma,setters:Ha,useEngine:xa,widgetManager:Ka,widgets:wa},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({},Ya),za),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=>ja(e)).map(e=>`${s}${e}`),i=this.urls.filter(e=>Fa(e)).map(e=>`${s}${e}`);if(Ga(o),i.length){const e=yield Ua(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"];return Ja(this.config,a)}}function ss(){return $a.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"})}function es(t,a="",s="warning"){Xa({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__ = '1766198097259';
14
+ var __BUILD_TIME__ = '1766992963878';
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
- <!--{{1766198097259}}-->
30
+ <!--{{1766992963878}}-->
31
31
 
32
- <script type="module" crossorigin src="./assets/index-DRT_gnec.js"></script>
32
+ <script type="module" crossorigin src="./assets/index-DmtmALuQ.js"></script>
33
33
  <link rel="modulepreload" crossorigin href="./assets/vue-DnlwaDgl.js">
34
34
  <link rel="modulepreload" crossorigin href="./assets/dayjs-BGdj-UA2.js">
35
35
  <link rel="modulepreload" crossorigin href="./assets/@vueuse-dfxA5MrB.js">
@@ -143,5 +143,6 @@
143
143
  s.parentNode.insertBefore(hm, s);
144
144
  })();
145
145
  </script>
146
+ </body>
146
147
 
147
148
  </html>
@@ -46,7 +46,7 @@ function print() { __p += __j.call(arguments, '') }
46
46
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
47
47
  * @name @vtj/core
48
48
  * @author CHC chenhuachun1549@dingtalk.com
49
- * @version 0.13.39
49
+ * @version 0.13.41
50
50
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
51
51
  */const og="VueMaterial",ag="VueRouterMaterial",ug={[og]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[ag]:["RouterView","RouterLink"]};let cg=class{constructor(){z(this,"listeners",[]);z(this,"isReady",!1)}triggerReady(){this.isReady=!0;for(const t of this.listeners)t();this.listeners=[]}ready(t){this.isReady?t():this.listeners.push(t)}resetReady(){this.isReady=!1}};var lg=Object.defineProperty,fg=(r,t,e)=>t in r?lg(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,ft=(r,t,e)=>fg(r,typeof t!="symbol"?t+"":t,e);(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const r=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,e,n){typeof n!="boolean"&&(n=n||{},n.passive=!1),r.call(this,t,e,n)}})();function So(r,t){return function(){return r.apply(t,arguments)}}const{toString:hg}=Object.prototype,{getPrototypeOf:En}=Object,{iterator:ir,toStringTag:To}=Symbol,sr=(r=>t=>{const e=hg.call(t);return r[e]||(r[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),yt=r=>(r=r.toLowerCase(),t=>sr(t)===r),or=r=>t=>typeof t===r,{isArray:ce}=Array,se=or("undefined");function Re(r){return r!==null&&!se(r)&&r.constructor!==null&&!se(r.constructor)&&ut(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}const Ro=yt("ArrayBuffer");function pg(r){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(r):t=r&&r.buffer&&Ro(r.buffer),t}const dg=or("string"),ut=or("function"),xo=or("number"),xe=r=>r!==null&&typeof r=="object",gg=r=>r===!0||r===!1,He=r=>{if(sr(r)!=="object")return!1;const t=En(r);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(To in r)&&!(ir in r)},vg=r=>{if(!xe(r)||Re(r))return!1;try{return Object.keys(r).length===0&&Object.getPrototypeOf(r)===Object.prototype}catch(t){return!1}},mg=yt("Date"),yg=yt("File"),bg=yt("Blob"),_g=yt("FileList"),wg=r=>xe(r)&&ut(r.pipe),Eg=r=>{let t;return r&&(typeof FormData=="function"&&r instanceof FormData||ut(r.append)&&((t=sr(r))==="formdata"||t==="object"&&ut(r.toString)&&r.toString()==="[object FormData]"))},Sg=yt("URLSearchParams"),[Tg,Rg,xg,Ag]=["ReadableStream","Request","Response","Headers"].map(yt),Og=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ae(r,t,{allOwnKeys:e=!1}={}){if(r===null||typeof r>"u")return;let n,i;if(typeof r!="object"&&(r=[r]),ce(r))for(n=0,i=r.length;n<i;n++)t.call(null,r[n],n,r);else{if(Re(r))return;const s=e?Object.getOwnPropertyNames(r):Object.keys(r),o=s.length;let u;for(n=0;n<o;n++)u=s[n],t.call(null,r[u],u,r)}}function Ao(r,t){if(Re(r))return null;t=t.toLowerCase();const e=Object.keys(r);let n=e.length,i;for(;n-- >0;)if(i=e[n],t===i.toLowerCase())return i;return null}const Lt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Oo=r=>!se(r)&&r!==Lt;function Yr(){const{caseless:r,skipUndefined:t}=Oo(this)&&this||{},e={},n=(i,s)=>{const o=r&&Ao(e,s)||s;He(e[o])&&He(i)?e[o]=Yr(e[o],i):He(i)?e[o]=Yr({},i):ce(i)?e[o]=i.slice():(!t||!se(i))&&(e[o]=i)};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&Ae(arguments[i],n);return e}const $g=(r,t,e,{allOwnKeys:n}={})=>(Ae(t,(i,s)=>{e&&ut(i)?r[s]=So(i,e):r[s]=i},{allOwnKeys:n}),r),Dg=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),Cg=(r,t,e,n)=>{r.prototype=Object.create(t.prototype,n),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:t.prototype}),e&&Object.assign(r.prototype,e)},Bg=(r,t,e,n)=>{let i,s,o;const u={};if(t=t||{},r==null)return t;do{for(i=Object.getOwnPropertyNames(r),s=i.length;s-- >0;)o=i[s],(!n||n(o,r,t))&&!u[o]&&(t[o]=r[o],u[o]=!0);r=e!==!1&&En(r)}while(r&&(!e||e(r,t))&&r!==Object.prototype);return t},jg=(r,t,e)=>{r=String(r),(e===void 0||e>r.length)&&(e=r.length),e-=t.length;const n=r.indexOf(t,e);return n!==-1&&n===e},Pg=r=>{if(!r)return null;if(ce(r))return r;let t=r.length;if(!xo(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=r[t];return e},Ng=(r=>t=>r&&t instanceof r)(typeof Uint8Array<"u"&&En(Uint8Array)),Ig=(r,t)=>{const e=(r&&r[ir]).call(r);let n;for(;(n=e.next())&&!n.done;){const i=n.value;t.call(r,i[0],i[1])}},Mg=(r,t)=>{let e;const n=[];for(;(e=r.exec(t))!==null;)n.push(e);return n},Fg=yt("HTMLFormElement"),Ug=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,n){return e.toUpperCase()+n}),Pi=(({hasOwnProperty:r})=>(t,e)=>r.call(t,e))(Object.prototype),Lg=yt("RegExp"),$o=(r,t)=>{const e=Object.getOwnPropertyDescriptors(r),n={};Ae(e,(i,s)=>{let o;(o=t(i,s,r))!==!1&&(n[s]=o||i)}),Object.defineProperties(r,n)},kg=r=>{$o(r,(t,e)=>{if(ut(r)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const n=r[e];if(ut(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},Hg=(r,t)=>{const e={},n=i=>{i.forEach(s=>{e[s]=!0})};return ce(r)?n(r):n(String(r).split(t)),e},Vg=()=>{},qg=(r,t)=>r!=null&&Number.isFinite(r=+r)?r:t;function zg(r){return!!(r&&ut(r.append)&&r[To]==="FormData"&&r[ir])}const Wg=r=>{const t=new Array(10),e=(n,i)=>{if(xe(n)){if(t.indexOf(n)>=0)return;if(Re(n))return n;if(!("toJSON"in n)){t[i]=n;const s=ce(n)?[]:{};return Ae(n,(o,u)=>{const l=e(o,i+1);!se(l)&&(s[u]=l)}),t[i]=void 0,s}}return n};return e(r,0)},Kg=yt("AsyncFunction"),Jg=r=>r&&(xe(r)||ut(r))&&ut(r.then)&&ut(r.catch),Do=((r,t)=>r?setImmediate:t?((e,n)=>(Lt.addEventListener("message",({source:i,data:s})=>{i===Lt&&s===e&&n.length&&n.shift()()},!1),i=>{n.push(i),Lt.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",ut(Lt.postMessage)),Gg=typeof queueMicrotask<"u"?queueMicrotask.bind(Lt):typeof process<"u"&&process.nextTick||Do,Yg=r=>r!=null&&ut(r[ir]),R={isArray:ce,isArrayBuffer:Ro,isBuffer:Re,isFormData:Eg,isArrayBufferView:pg,isString:dg,isNumber:xo,isBoolean:gg,isObject:xe,isPlainObject:He,isEmptyObject:vg,isReadableStream:Tg,isRequest:Rg,isResponse:xg,isHeaders:Ag,isUndefined:se,isDate:mg,isFile:yg,isBlob:bg,isRegExp:Lg,isFunction:ut,isStream:wg,isURLSearchParams:Sg,isTypedArray:Ng,isFileList:_g,forEach:Ae,merge:Yr,extend:$g,trim:Og,stripBOM:Dg,inherits:Cg,toFlatObject:Bg,kindOf:sr,kindOfTest:yt,endsWith:jg,toArray:Pg,forEachEntry:Ig,matchAll:Mg,isHTMLForm:Fg,hasOwnProperty:Pi,hasOwnProp:Pi,reduceDescriptors:$o,freezeMethods:kg,toObjectSet:Hg,toCamelCase:Ug,noop:Vg,toFiniteNumber:qg,findKey:Ao,global:Lt,isContextDefined:Oo,isSpecCompliantForm:zg,toJSONObject:Wg,isAsyncFn:Kg,isThenable:Jg,setImmediate:Do,asap:Gg,isIterable:Yg};function K(r,t,e,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",t&&(this.code=t),e&&(this.config=e),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}R.inherits(K,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:R.toJSONObject(this.config),code:this.code,status:this.status}}});const Co=K.prototype,Bo={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(r=>{Bo[r]={value:r}});Object.defineProperties(K,Bo);Object.defineProperty(Co,"isAxiosError",{value:!0});K.from=(r,t,e,n,i,s)=>{const o=Object.create(Co);R.toFlatObject(r,o,function(a){return a!==Error.prototype},a=>a!=="isAxiosError");const u=r&&r.message?r.message:"Error",l=t==null&&r?r.code:t;return K.call(o,u,l,e,n,i),r&&o.cause==null&&Object.defineProperty(o,"cause",{value:r,configurable:!0}),o.name=r&&r.name||"Error",s&&Object.assign(o,s),o};const Zg=null;function Zr(r){return R.isPlainObject(r)||R.isArray(r)}function jo(r){return R.endsWith(r,"[]")?r.slice(0,-2):r}function Ni(r,t,e){return r?r.concat(t).map(function(n,i){return n=jo(n),!e&&i?"["+n+"]":n}).join(e?".":""):t}function Qg(r){return R.isArray(r)&&!r.some(Zr)}const Xg=R.toFlatObject(R,{},null,function(r){return/^is[A-Z]/.test(r)});function ar(r,t,e){if(!R.isObject(r))throw new TypeError("target must be an object");t=t||new FormData,e=R.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,d){return!R.isUndefined(d[p])});const n=e.metaTokens,i=e.visitor||a,s=e.dots,o=e.indexes,u=(e.Blob||typeof Blob<"u"&&Blob)&&R.isSpecCompliantForm(t);if(!R.isFunction(i))throw new TypeError("visitor must be a function");function l(p){if(p===null)return"";if(R.isDate(p))return p.toISOString();if(R.isBoolean(p))return p.toString();if(!u&&R.isBlob(p))throw new K("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(p)||R.isTypedArray(p)?u&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function a(p,d,g){let y=p;if(p&&!g&&typeof p=="object"){if(R.endsWith(d,"{}"))d=n?d:d.slice(0,-2),p=JSON.stringify(p);else if(R.isArray(p)&&Qg(p)||(R.isFileList(p)||R.endsWith(d,"[]"))&&(y=R.toArray(p)))return d=jo(d),y.forEach(function(w,m){!(R.isUndefined(w)||w===null)&&t.append(o===!0?Ni([d],m,s):o===null?d:d+"[]",l(w))}),!1}return Zr(p)?!0:(t.append(Ni(g,d,s),l(p)),!1)}const c=[],f=Object.assign(Xg,{defaultVisitor:a,convertValue:l,isVisitable:Zr});function h(p,d){if(!R.isUndefined(p)){if(c.indexOf(p)!==-1)throw Error("Circular reference detected in "+d.join("."));c.push(p),R.forEach(p,function(g,y){(!(R.isUndefined(g)||g===null)&&i.call(t,g,R.isString(y)?y.trim():y,d,f))===!0&&h(g,d?d.concat(y):[y])}),c.pop()}}if(!R.isObject(r))throw new TypeError("data must be an object");return h(r),t}function Ii(r){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Sn(r,t){this._pairs=[],r&&ar(r,this,t)}const Po=Sn.prototype;Po.append=function(r,t){this._pairs.push([r,t])};Po.toString=function(r){const t=r?function(e){return r.call(this,e,Ii)}:Ii;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};function tv(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function No(r,t,e){if(!t)return r;const n=e&&e.encode||tv;R.isFunction(e)&&(e={serialize:e});const i=e&&e.serialize;let s;if(i?s=i(t,e):s=R.isURLSearchParams(t)?t.toString():new Sn(t,e).toString(n),s){const o=r.indexOf("#");o!==-1&&(r=r.slice(0,o)),r+=(r.indexOf("?")===-1?"?":"&")+s}return r}class Mi{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){R.forEach(this.handlers,function(e){e!==null&&t(e)})}}const Io={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ev=typeof URLSearchParams<"u"?URLSearchParams:Sn,rv=typeof FormData<"u"?FormData:null,nv=typeof Blob<"u"?Blob:null,iv={isBrowser:!0,classes:{URLSearchParams:ev,FormData:rv,Blob:nv},protocols:["http","https","file","blob","url","data"]},Tn=typeof window<"u"&&typeof document<"u",Qr=typeof navigator=="object"&&navigator||void 0,sv=Tn&&(!Qr||["ReactNative","NativeScript","NS"].indexOf(Qr.product)<0),ov=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",av=Tn&&window.location.href||"http://localhost",uv=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Tn,hasStandardBrowserEnv:sv,hasStandardBrowserWebWorkerEnv:ov,navigator:Qr,origin:av},Symbol.toStringTag,{value:"Module"})),it=H(H({},uv),iv);function cv(r,t){return ar(r,new it.classes.URLSearchParams,H({visitor:function(e,n,i,s){return it.isNode&&R.isBuffer(e)?(this.append(n,e.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function lv(r){return R.matchAll(/\w+|\[(\w*)]/g,r).map(t=>t[0]==="[]"?"":t[1]||t[0])}function fv(r){const t={},e=Object.keys(r);let n;const i=e.length;let s;for(n=0;n<i;n++)s=e[n],t[s]=r[s];return t}function Mo(r){function t(e,n,i,s){let o=e[s++];if(o==="__proto__")return!0;const u=Number.isFinite(+o),l=s>=e.length;return o=!o&&R.isArray(i)?i.length:o,l?(R.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!u):((!i[o]||!R.isObject(i[o]))&&(i[o]=[]),t(e,n,i[o],s)&&R.isArray(i[o])&&(i[o]=fv(i[o])),!u)}if(R.isFormData(r)&&R.isFunction(r.entries)){const e={};return R.forEachEntry(r,(n,i)=>{t(lv(n),i,e,0)}),e}return null}function hv(r,t,e){if(R.isString(r))try{return(t||JSON.parse)(r),R.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(e||JSON.stringify)(r)}const Oe={transitional:Io,adapter:["xhr","http","fetch"],transformRequest:[function(r,t){const e=t.getContentType()||"",n=e.indexOf("application/json")>-1,i=R.isObject(r);if(i&&R.isHTMLForm(r)&&(r=new FormData(r)),R.isFormData(r))return n?JSON.stringify(Mo(r)):r;if(R.isArrayBuffer(r)||R.isBuffer(r)||R.isStream(r)||R.isFile(r)||R.isBlob(r)||R.isReadableStream(r))return r;if(R.isArrayBufferView(r))return r.buffer;if(R.isURLSearchParams(r))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let s;if(i){if(e.indexOf("application/x-www-form-urlencoded")>-1)return cv(r,this.formSerializer).toString();if((s=R.isFileList(r))||e.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return ar(s?{"files[]":r}:r,o&&new o,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),hv(r)):r}],transformResponse:[function(r){const t=this.transitional||Oe.transitional,e=t&&t.forcedJSONParsing,n=this.responseType==="json";if(R.isResponse(r)||R.isReadableStream(r))return r;if(r&&R.isString(r)&&(e&&!this.responseType||n)){const i=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(r,this.parseReviver)}catch(s){if(i)throw s.name==="SyntaxError"?K.from(s,K.ERR_BAD_RESPONSE,this,null,this.response):s}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:it.classes.FormData,Blob:it.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};R.forEach(["delete","get","head","post","put","patch"],r=>{Oe.headers[r]={}});const pv=R.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),dv=r=>{const t={};let e,n,i;return r&&r.split(`
52
52
  `).forEach(function(s){i=s.indexOf(":"),e=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!e||t[e]&&pv[e])&&(e==="set-cookie"?t[e]?t[e].push(n):t[e]=[n]:t[e]=t[e]?t[e]+", "+n:n)}),t},Fi=Symbol("internals");function ge(r){return r&&String(r).trim().toLowerCase()}function Ve(r){return r===!1||r==null?r:R.isArray(r)?r.map(Ve):String(r)}function gv(r){const t=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=e.exec(r);)t[n[1]]=n[2];return t}const vv=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());function Ar(r,t,e,n,i){if(R.isFunction(n))return n.call(this,t,e);if(i&&(t=e),!!R.isString(t)){if(R.isString(n))return t.indexOf(n)!==-1;if(R.isRegExp(n))return n.test(t)}}function mv(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,n)=>e.toUpperCase()+n)}function yv(r,t){const e=R.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(r,n+e,{value:function(i,s,o){return this[n].call(this,t,i,s,o)},configurable:!0})})}let ct=class{constructor(t){t&&this.set(t)}set(t,e,n){const i=this;function s(u,l,a){const c=ge(l);if(!c)throw new Error("header name must be a non-empty string");const f=R.findKey(i,c);(!f||i[f]===void 0||a===!0||a===void 0&&i[f]!==!1)&&(i[f||l]=Ve(u))}const o=(u,l)=>R.forEach(u,(a,c)=>s(a,c,l));if(R.isPlainObject(t)||t instanceof this.constructor)o(t,e);else if(R.isString(t)&&(t=t.trim())&&!vv(t))o(dv(t),e);else if(R.isObject(t)&&R.isIterable(t)){let u={},l,a;for(const c of t){if(!R.isArray(c))throw TypeError("Object iterator must return a key-value pair");u[a=c[0]]=(l=u[a])?R.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}o(u,e)}else t!=null&&s(e,t,n);return this}get(t,e){if(t=ge(t),t){const n=R.findKey(this,t);if(n){const i=this[n];if(!e)return i;if(e===!0)return gv(i);if(R.isFunction(e))return e.call(this,i,n);if(R.isRegExp(e))return e.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=ge(t),t){const n=R.findKey(this,t);return!!(n&&this[n]!==void 0&&(!e||Ar(this,this[n],n,e)))}return!1}delete(t,e){const n=this;let i=!1;function s(o){if(o=ge(o),o){const u=R.findKey(n,o);u&&(!e||Ar(n,n[u],u,e))&&(delete n[u],i=!0)}}return R.isArray(t)?t.forEach(s):s(t),i}clear(t){const e=Object.keys(this);let n=e.length,i=!1;for(;n--;){const s=e[n];(!t||Ar(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const e=this,n={};return R.forEach(this,(i,s)=>{const o=R.findKey(n,s);if(o){e[o]=Ve(i),delete e[s];return}const u=t?mv(s):String(s).trim();u!==s&&delete e[s],e[u]=Ve(i),n[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return R.forEach(this,(n,i)=>{n!=null&&n!==!1&&(e[i]=t&&R.isArray(n)?n.join(", "):n)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(`
@@ -57,9 +57,9 @@ function print() { __p += __j.call(arguments, '') }
57
57
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
58
58
  * @name @vtj/renderer
59
59
  * @author CHC chenhuachun1549@dingtalk.com
60
- * @version 0.13.39
60
+ * @version 0.13.41
61
61
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
62
- */const jr="0.13.39";var X=(r=>(r.Runtime="Runtime",r.Design="Design",r.Raw="Raw",r.VNode="VNode",r))(X||{});const es=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],hm=["vIf","vElseIf","vElse","vShow","vModel","vFor","vBind","vHtml"],pm={String,Number,Boolean,Array,Object,Function,Date},Ke="VtjPage",Pr="VtjHomepage",dm="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot,svg".split(","),gm="component,slot".split(",");function Ue(r,t){return r.map(e=>Ye(e)||e.startsWith("/")?e:`${t}${e}`)}function cr(r){return/\.css$/.test(r)}function lr(r){return/\.js$/.test(r)}function vm(r){return/\.json$/.test(r)}function mm(r,t=!1){return t&&r.endsWith(".prod.js")?r.replace(".prod.js",".js"):r}function ym(r,t,e=!1){const n=r.filter(h=>!!h.enabled),i=[],s=[],o=[],u=[],l={},a={},c=[],f={};return n.forEach(({urls:h,assetsUrl:p,library:d,assetsLibrary:g,localeLibrary:y})=>{h==null||h.forEach(w=>{lr(w)&&i.push(mm(w,e)),cr(w)&&s.push(w)}),d&&(u.push(d),l[d]=Ue(h||[],t),y&&(a[d]=y)),p&&o.push(p),g&&c.push(g),d&&g&&(f[g]=d)}),{scripts:Ue(i,t),css:Ue(s,t),materials:Ue(o,t),libraryExports:u,materialExports:Wd(c),materialMapLibrary:f,libraryMap:l,libraryLocaleMap:a}}function bm(r,t){var s;const{name:e,parent:n,alias:i}=r;return n?(s=t[n])==null?void 0:s[i||e]:t[i||e]}function _m(r=[]){const t=r.filter(n=>cr(n)),e=r.filter(n=>lr(n));return{css:t,js:e}}function wm(r,t){const e=a=>{const c=[];let f=0;for(;f<a.length;){if(/\s/.test(a[f])){f++;continue}if(a.substring(f,f+2)==="/*"){const w=a.indexOf("*/",f+2);if(w!==-1){f=w+2;continue}}if(a[f]==="@"){const w=f;for(;f<a.length&&a[f]!=="{"&&a[f]!==";";)f++;const m=a.substring(w,f).trim(),b=m.includes("@keyframes");if(a[f]===";")c.push({type:"simple-at-rule",content:a.substring(w,f+1)}),f++;else if(a[f]==="{"){const _=f+1;let S=1;for(f++;f<a.length&&S>0;)a[f]==="{"?S++:a[f]==="}"&&S--,f++;const v=a.substring(w,f),T=a.substring(_,f-1);c.push({type:b?"keyframes":"at-rule",rule:m,content:v,inner:T})}continue}const h=f;for(;f<a.length&&a[f]!=="{";)f++;if(f>=a.length)break;const p=a.substring(h,f).trim();if(!p){f++;continue}const d=f+1;let g=1;for(f++;f<a.length&&g>0;)a[f]==="{"?g++:a[f]==="}"&&g--,f++;const y=a.substring(d,f-1);c.push({type:"rule",selector:p,content:y.trim()})}return c},n=a=>{const c=a.trim();return/^(from|to|\d+(\.\d+)?%)$/.test(c)},i=a=>a.replace(/::v-deep\(/g,":deep(").replace(/::v-deep\s+/g,":deep(").replace(/\/deep\//g," ").replace(/>>>/g," ").replace(/(.*?):deep\(([^)]+)\)/g,(c,f,h)=>{const p=f.trim(),d=h.trim();return p?`${p}[${t}] ${d}`:d}),s=a=>{const c=a.trim();if(!c||c.includes(`[${t}]`)||/^(:root|:host|html|body)(\s|$|:|\.|\#|\[)/.test(c)||n(c))return c;const f=c.match(/^(.+?)((?:::?[\w-]+(?:\([^)]*\))?)*)\s*$/);if(f){const[,h,p=""]=f,d=h.trim();return d?`${d}[${t}]${p}`:c}return`${c}[${t}]`},o=a=>i(a).split(",").map(c=>s(c)).filter(c=>c.trim()).join(", "),u=a=>a.map(c=>{switch(c.type){case"simple-at-rule":return c.content;case"keyframes":return c.content;case"at-rule":try{const h=e(c.inner),p=u(h);return`${c.rule} { ${p} }`}catch(h){return c.content}case"rule":if(!c.selector||!c.content)return"";const f=o(c.selector);return f.trim()?`${f} { ${c.content} }`:"";default:return""}}).filter(c=>c.trim()).join(" "),l=a=>a.replace(/\s*{\s*/g," { ").replace(/\s*}\s*/g," } ").replace(/\s*;\s*/g,"; ").replace(/\s*,\s*/g,", ").replace(/\s+/g," ").replace(/^\s+|\s+$/g,"").replace(/\s*}\s*}/g," } }").trim();try{const a=r.replace(/\/\*(?!\s*!)[\s\S]*?\*\//g,"").replace(/^\s+|\s+$/gm,"").replace(/\n\s*\n/g,`
62
+ */const jr="0.13.41";var X=(r=>(r.Runtime="Runtime",r.Design="Design",r.Raw="Raw",r.VNode="VNode",r))(X||{});const es=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],hm=["vIf","vElseIf","vElse","vShow","vModel","vFor","vBind","vHtml"],pm={String,Number,Boolean,Array,Object,Function,Date},Ke="VtjPage",Pr="VtjHomepage",dm="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot,svg".split(","),gm="component,slot".split(",");function Ue(r,t){return r.map(e=>Ye(e)||e.startsWith("/")?e:`${t}${e}`)}function cr(r){return/\.css$/.test(r)}function lr(r){return/\.js$/.test(r)}function vm(r){return/\.json$/.test(r)}function mm(r,t=!1){return t&&r.endsWith(".prod.js")?r.replace(".prod.js",".js"):r}function ym(r,t,e=!1){const n=r.filter(h=>!!h.enabled),i=[],s=[],o=[],u=[],l={},a={},c=[],f={};return n.forEach(({urls:h,assetsUrl:p,library:d,assetsLibrary:g,localeLibrary:y})=>{h==null||h.forEach(w=>{lr(w)&&i.push(mm(w,e)),cr(w)&&s.push(w)}),d&&(u.push(d),l[d]=Ue(h||[],t),y&&(a[d]=y)),p&&o.push(p),g&&c.push(g),d&&g&&(f[g]=d)}),{scripts:Ue(i,t),css:Ue(s,t),materials:Ue(o,t),libraryExports:u,materialExports:Wd(c),materialMapLibrary:f,libraryMap:l,libraryLocaleMap:a}}function bm(r,t){var s;const{name:e,parent:n,alias:i}=r;return n?(s=t[n])==null?void 0:s[i||e]:t[i||e]}function _m(r=[]){const t=r.filter(n=>cr(n)),e=r.filter(n=>lr(n));return{css:t,js:e}}function wm(r,t){const e=a=>{const c=[];let f=0;for(;f<a.length;){if(/\s/.test(a[f])){f++;continue}if(a.substring(f,f+2)==="/*"){const w=a.indexOf("*/",f+2);if(w!==-1){f=w+2;continue}}if(a[f]==="@"){const w=f;for(;f<a.length&&a[f]!=="{"&&a[f]!==";";)f++;const m=a.substring(w,f).trim(),b=m.includes("@keyframes");if(a[f]===";")c.push({type:"simple-at-rule",content:a.substring(w,f+1)}),f++;else if(a[f]==="{"){const _=f+1;let S=1;for(f++;f<a.length&&S>0;)a[f]==="{"?S++:a[f]==="}"&&S--,f++;const v=a.substring(w,f),T=a.substring(_,f-1);c.push({type:b?"keyframes":"at-rule",rule:m,content:v,inner:T})}continue}const h=f;for(;f<a.length&&a[f]!=="{";)f++;if(f>=a.length)break;const p=a.substring(h,f).trim();if(!p){f++;continue}const d=f+1;let g=1;for(f++;f<a.length&&g>0;)a[f]==="{"?g++:a[f]==="}"&&g--,f++;const y=a.substring(d,f-1);c.push({type:"rule",selector:p,content:y.trim()})}return c},n=a=>{const c=a.trim();return/^(from|to|\d+(\.\d+)?%)$/.test(c)},i=a=>a.replace(/::v-deep\(/g,":deep(").replace(/::v-deep\s+/g,":deep(").replace(/\/deep\//g," ").replace(/>>>/g," ").replace(/(.*?):deep\(([^)]+)\)/g,(c,f,h)=>{const p=f.trim(),d=h.trim();return p?`${p}[${t}] ${d}`:d}),s=a=>{const c=a.trim();if(!c||c.includes(`[${t}]`)||/^(:root|:host|html|body)(\s|$|:|\.|\#|\[)/.test(c)||n(c))return c;const f=c.match(/^(.+?)((?:::?[\w-]+(?:\([^)]*\))?)*)\s*$/);if(f){const[,h,p=""]=f,d=h.trim();return d?`${d}[${t}]${p}`:c}return`${c}[${t}]`},o=a=>i(a).split(",").map(c=>s(c)).filter(c=>c.trim()).join(", "),u=a=>a.map(c=>{switch(c.type){case"simple-at-rule":return c.content;case"keyframes":return c.content;case"at-rule":try{const h=e(c.inner),p=u(h);return`${c.rule} { ${p} }`}catch(h){return c.content}case"rule":if(!c.selector||!c.content)return"";const f=o(c.selector);return f.trim()?`${f} { ${c.content} }`:"";default:return""}}).filter(c=>c.trim()).join(" "),l=a=>a.replace(/\s*{\s*/g," { ").replace(/\s*}\s*/g," } ").replace(/\s*;\s*/g,"; ").replace(/\s*,\s*/g,", ").replace(/\s+/g," ").replace(/^\s+|\s+$/g,"").replace(/\s*}\s*}/g," } }").trim();try{const a=r.replace(/\/\*(?!\s*!)[\s\S]*?\*\//g,"").replace(/^\s+|\s+$/gm,"").replace(/\n\s*\n/g,`
63
63
  `),c=e(a),f=u(c);return l(f)}catch(a){return console.error("CSS scoping failed:",a),console.error("Input CSS:",r),r.replace(/\/\*[\s\S]*?\*\//g,"").replace(/(@keyframes\s+[^{]+\s*{[^{}]*(?:{[^}]*}[^{}]*)*})/g,c=>c).replace(/([^{}@]+)(?=\s*{)/g,c=>{const f=c.trim();return!f||f.startsWith("@")||f.includes(`[${t}]`)||n(f)?c:`${f}[${t}]`})}}const Em=750;function Sm(r,t,e){let n;typeof r<"u"?n=r.innerWidth||r.document.documentElement.clientWidth:(console.warn("无法获取屏幕宽度,使用默认值375"),n=375);const i=Em;return t*n/i}function Tm(r,t){let e=!1,n=!1,i=!1,s="";for(let o=0;o<t.length;o++){const u=t[o];if(u==="'"&&!n&&!i?e=!e:u==='"'&&!e&&!i?n=!n:t.substr(o,4).toLowerCase()==="url("&&!e&&!n?i=!0:u===")"&&i&&(i=!1),!e&&!n&&!i){const l=t.substr(o).match(/^(-?\d+(?:\.\d+)?)\s*rpx/);if(l){const a=l[1],c=parseFloat(a),f=`${Sm(r,c).toFixed(6).replace(/\.?0+$/,"")}px`;s+=f,o+=l[0].length-1;continue}}s+=u}return s}function Qo(r){return jt(r)?r:JSON.stringify(r)}function fr(r,t,e,n=!1){const i=r.CSSStyleSheet,s=n?`data-v-${t}`:t,o=r.__uniConfig?Tm(r,e):e,u=n?wm(o,s):o;if(i.prototype.replaceSync){const l=new i;l.id=t,l.replaceSync(u);const a=r.document,c=a.adoptedStyleSheets,f=Array.from(c).filter(h=>h.id!==t);a.adoptedStyleSheets=[...f,l]}else{const l=r.document;let a=l.getElementById(t);a?a.innerHTML=u:(a=l.createElement("style"),a.id=t,a.innerHTML=u,l.head.appendChild(a))}}function Rm(r,t){return U(this,null,function*(){const e=yield window.fetch(t).then(n=>n.text()).catch(()=>"");e&&fr(window,r,e)})}function Xo(r,t=window){const e=t.document,n=t.document.head;for(const i of r)if(!e.getElementById(i)){const s=e.createElement("link");s.rel="stylesheet",s.id=i,s.href=i,n.appendChild(s)}}function ta(n,i){return U(this,arguments,function*(r,t,e=window){const s=e.document,o=e.document.head;let u=e[t];return u?u.default||u:new Promise((l,a)=>{for(const c of r){const f=s.createElement("script");f.src=c,f.onload=()=>{u=e[t],u?l(u.default||u):a(null)},f.onerror=h=>{a(h)},o.appendChild(f)}})})}function xm(r){return Vt(r)&&Object.getOwnPropertyNames(r.prototype||{}).length===0||Vt(r==null?void 0:r.install)}function Am(r){return gm.includes(r)}function Om(r){return dm.includes(r)}function Ee(r=window){const t=window==null?void 0:window.Mock;if(t)return t;const e=r==null?void 0:r.Mock;if(e&&window)return window.Mock=e,e}function Se(r,t,e=!1,n=!1,i=!1){var s;try{const o=['"use strict";',"var __self = arguments[0];"];o.push("return ");let u=(r.value||"").trim();i||(u=u.replace(/this(\W|$)/g,(a,c)=>`__self${c}`)),u=o.join(`
64
64
  `)+u;const l=i?`
65
65
  ${u}
@@ -69,6 +69,6 @@ ${u}
69
69
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
70
70
  * @name @vtj/uni
71
71
  * @author CHC chenhuachun1549@dingtalk.com
72
- * @version 0.13.39
72
+ * @version 0.13.41
73
73
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
74
- */const Oy=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],rs="/pages",$y="VTJ",Dy="__UNI__1FC118B",Cy="VTJ移动跨端项目",By="1.0.0",jy="100",Py=!1,Ny={},Iy={enable:!1},My="3",Fy={name:$y,appid:Dy,description:Cy,versionName:By,versionCode:jy,transformPx:Py,"app-plus":{usingComponents:!0,nvueStyleCompiler:"uni-app",compilerVersion:3,splashscreen:{alwaysShowBeforeRender:!0,waiting:!0,autoclose:!0,delay:0},modules:{},distribute:{android:{permissions:['<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>','<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>','<uses-permission android:name="android.permission.VIBRATE"/>','<uses-permission android:name="android.permission.READ_LOGS"/>','<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>','<uses-feature android:name="android.hardware.camera.autofocus"/>','<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>','<uses-permission android:name="android.permission.CAMERA"/>','<uses-permission android:name="android.permission.GET_ACCOUNTS"/>','<uses-permission android:name="android.permission.READ_PHONE_STATE"/>','<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>','<uses-permission android:name="android.permission.WAKE_LOCK"/>','<uses-permission android:name="android.permission.FLASHLIGHT"/>','<uses-feature android:name="android.hardware.camera"/>','<uses-permission android:name="android.permission.WRITE_SETTINGS"/>']},ios:{},sdkConfigs:{},icons:{android:{hdpi:"src/static/logo.png",xhdpi:"src/static/logo.png",xxhdpi:"src/static/logo.png",xxxhdpi:"src/static/logo.png"}}}},quickapp:Ny,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:Iy,vueVersion:My},Uy=[],Ly={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},ky={autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},Hy={pages:Uy,globalStyle:Ly,easycom:ky};function Vy(r){let{manifestJson:t={},pagesJson:e={},routes:n=[]}=r;const i=n.map(s=>{const{path:o,style:u,needLogin:l}=s;return{path:o,style:u,needLogin:l}});return et(H({},r),{manifestJson:Object.assign({},Fy,t),pagesJson:Object.assign({},Hy,e,{pages:i})})}const ln={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function ua(r){const t={},e={black:"#000000",white:"#ffffff"};for(const n in r)ln[n]&&(t[ln[n]]=n==="navigationBarTextStyle"?e[r[n]]||e.black:r[n]);return t}function qy(r){const t={};for(const e in r)ln[e]||(t[e]=r[e]);return t}function zy(r){var t,e;return((e=(t=r.h5)==null?void 0:t.router)==null?void 0:e.mode)||"hash"}function Wy(r){var t,e,n;return{topWindow:!!((t=r.topWindow)!=null&&t.path),leftWindow:!!((e=r.leftWindow)!=null&&e.path),rightWindow:!!((n=r.rightWindow)!=null&&n.path)}}function Ky(r){const{pagesJson:t={}}=r,{globalStyle:e,pages:n=[]}=t;return!!(e!=null&&e.enablePullDownRefresh||n.find(i=>{var s;return!!((s=i.style)!=null&&s.enablePullDownRefresh)}))}function Jy(r){const{pagesJson:t={}}=r,{globalStyle:e,pages:n=[]}=t;let i=!1;return(e==null?void 0:e.navigationStyle)==="custom"?(i=!0,n.find(s=>{var o;return((o=s.style)==null?void 0:o.navigationStyle)==="default"})&&(i=!1)):n.every(s=>{var o;return((o=s.style)==null?void 0:o.navigationStyle)==="custom"})&&(i=!0),i}function Gy(r){var u;const t=Jy(r),e={navigationBar:!1,navigationBarButtons:!1,navigationBarSearchInput:!1,navigationBarTransparent:!1},{pagesJson:n={}}=r,{globalStyle:i,pages:s=[]}=n;if(t)return e;e.navigationBar=!0;const o=(u=i==null?void 0:i.h5)==null?void 0:u.titleNView;return s.find(l=>{var a,c,f;return!!((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)!=null&&f.buttons.length)})&&(e.navigationBarButtons=!0),(o!=null&&o.searchInput||s.find(l=>{var a,c,f;return!!((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)!=null&&f.searchInput)}))&&(e.navigationBarSearchInput=!0),((o==null?void 0:o.type)==="transparent"||s.find(l=>{var a,c,f;return((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)==null?void 0:f.type)==="transparent"}))&&(e.navigationBarTransparent=!0),e}function Yy(r,t=window){var h,p,d,g;const{pagesJson:e={},manifestJson:n={}}=r,{topWindow:i,leftWindow:s,rightWindow:o}=Wy(e),{navigationBar:u,navigationBarButtons:l,navigationBarSearchInput:a,navigationBarTransparent:c}=Gy(r),f={__VUE_OPTIONS_API__:!0,__VUE_PROD_DEVTOOLS__:!1,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__:!1,__UNI_FEATURE_WX__:!1,__UNI_FEATURE_WXS__:!1,__UNI_FEATURE_RPX__:!1,__UNI_FEATURE_PROMISE__:!1,__UNI_FEATURE_LONGPRESS__:!1,__UNI_FEATURE_I18N_EN__:!1,__UNI_FEATURE_I18N_ES__:!1,__UNI_FEATURE_I18N_FR__:!1,__UNI_FEATURE_I18N_ZH_HANS__:!0,__UNI_FEATURE_I18N_ZH_HANT__:!1,__UNI_FEATURE_UNI_CLOUD__:!1,__UNI_FEATURE_I18N_LOCALE__:!1,__UNI_FEATURE_NVUE__:!1,__UNI_FEATURE_ROUTER_MODE__:zy(n),__UNI_FEATURE_PAGES__:!!((h=e.pages)!=null&&h.length),__UNI_FEATURE_TABBAR__:!!((d=(p=e.tabBar)==null?void 0:p.list)!=null&&d.length),__UNI_FEATURE_TABBAR_MIDBUTTON__:!!((g=e.tabBar)!=null&&g.midButton),__UNI_FEATURE_TOPWINDOW__:i,__UNI_FEATURE_LEFTWINDOW__:s,__UNI_FEATURE_RIGHTWINDOW__:o,__UNI_FEATURE_RESPONSIVE__:!1,__UNI_FEATURE_NAVIGATIONBAR__:u,__UNI_FEATURE_PULL_DOWN_REFRESH__:Ky(r),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:l,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:a,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:c};Object.entries(f).forEach(([y,w])=>{t[y]=w})}const Zy="4.76";function Qy(r,t=window){var f,h;const{pagesJson:e={},manifestJson:n={}}=r,{easycom:i={}}=e,{appid:s="",name:o="",versionCode:u="",versionName:l=""}=n,a=e.globalStyle,c=((f=n.h5)==null?void 0:f.router)||{};t.__uniConfig={easycom:i,globalStyle:et(H({},qy(a)),{navigationBar:ua(a),isNVue:!1}),compilerVersion:Zy,appId:s,appName:o,appVersion:l,appVersionCode:String(u),async:H({loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0},((h=n.h5)==null?void 0:h.async)||{}),debug:!1,networkTimeout:H({request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},n.networkTimeout||{}),sdkConfigs:{},nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:{},router:H({mode:"hash",base:"/",assets:"assets",routerBase:c.base||"/"},c),darkmode:!1,themeConfig:{},tabBar:e.tabBar?H({position:"bottom",color:"#7A7E83",selectedColor:"#3cc51f",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",backgroundColor:"#ffffff",selectedIndex:0,shown:!0},e.tabBar):void 0}}function Xy(r,t=window){const{UniServiceJSBridge:e,UniViewJSBridge:n,getApp:i,uni:s,getCurrentPages:o,upx2px:u,setupPage:l}=r;t.UniServiceJSBridge=e,t.UniViewJSBridge=n,t.getApp=i,t.uni=s,t.wx=s,t.getCurrentPages=o,t.upx2px=u,t.__setupPage=a=>l(a)}function t0(r,t,e){const{openBlock:n,createBlock:i,withCtx:s,createVNode:o}=r,{PageComponent:u,setupPage:l,getApp:a}=t;return{mpType:"page",setup(){return U(this,null,function*(){var g,y;const f=((y=(g=a())==null?void 0:g.$route)==null?void 0:y.query)||{},{loader:h,component:p}=e,d=h?yield h(e):p||{};return()=>(n(),i(u,null,{page:s(()=>[o(l(d),Object.assign({},f,{ref:"page"}),null,512)]),_:1}))})}}}function e0(r,t,e){var p;const{path:n,style:i={},meta:s={},home:o,id:u}=t,l=((p=r.tabBar)==null?void 0:p.list)||[],a=l.findIndex(d=>{var g;return d.pagePath===n||((g=d.pagePath)==null?void 0:g.endsWith(u))}),c=l[a],f=!!c,h=e===0;return H({isTabBar:f,tabBarIndex:a,isQuit:o!=null?o:h,isEntry:o!=null?o:h,navigationBar:H({type:"default"},ua(i)),isNVue:!1,route:c?c.pagePath:n},s)}function r0(r,t,e,n,i=window){const s=e.map((o,u)=>{const l=e0(n,o,u),a=t0(r,t,o),{path:c}=o;return{path:c,alias:c,meta:l,component:{render(){return r.h(r.Suspense,[r.h(a)])}}}});i.__uniRoutes=s,i.__uniLayout={}}function n0(r,t,e=window){fr(e,String(r),t)}function i0(r,t){t&&["View","ScrollView","Swiper","MovableArea","MovableView","CoverView","CoverImage","Icon","Text","RichText","Progress","Button","CheckboxGroup","Checkbox","Editor","Form","Input","Label","Picker","PickerView","RadioGroup","Radio","Slider","Switch","Textarea","Navigator","Image","Video","Map","Canvas","WebView","PickerViewColumn","ResizeSensor","SwiperItem"].forEach(e=>{const n=t[e];r.component(e,n)})}function s0(r){const t=Vy(r),{Vue:e,App:n,UniH5:i,routes:s=[],pagesJson:o={},manifestJson:u={},window:l,css:a=""}=t;if(!i)return e.createApp(n);const{plugin:c,setupApp:f}=i;Yy(t,l),Qy(t,l),Xy(i,l),r0(e,i,s,o,l),n0(u.appid||Date.now(),a,l);const h=e.createApp(f(n));return h.use(i0,i),h.use(c),h}function o0(r,t){const e={};return Object.entries(r).forEach(([n,i])=>{Oy.includes(n)&&i&&(e[n]=t(i))}),e}function ns(r,t){return()=>U(null,null,function*(){const e=yield r.getDsl(t);if(e){const{renderer:n}=r.createDslRenderer(e);return n}return null})}function a0(n){return U(this,arguments,function*(r,t=!1,e=rs){var u,l,a;const i=((u=r.project)==null?void 0:u.pages)||[],s=[];for(const c of i){const f=((l=r.project)==null?void 0:l.homepage)===c.id;s.push({id:c.id,path:`${e}/${c.id}`,loader:ns(r,c.id),style:H({navigationBarTitleText:c.title},c.style),needLogin:c.needLogin,home:f})}const o=s.find(c=>!!c.home)||s[0];if(o){const c=e===rs?"/":e;s.unshift(et(H({},o),{path:c}))}if(t){const c=((a=r.project)==null?void 0:a.blocks)||[];for(const f of c)s.push({id:f.id,path:`${e}/${f.id}`,loader:ns(r,f.id),style:{navigationStyle:"custom"}})}return s})}function u0(){var r;return(r=window.uni)!=null&&r.showLoading&&window.uni.showLoading({title:"加载中...",mask:!0}),{close:()=>{var t;(t=window.uni)!=null&&t.hideLoading&&window.uni.hideLoading()}}}function ca(r,t="",e="warning"){return U(this,null,function*(){var n;return(n=window.uni)!=null&&n.showModal?window.uni.showModal({title:t,content:r,showCancel:!1}):window.alert(r)})}function c0(r=X.Runtime){let t={};r===X.Runtime?t=Object.assign({}):t=Object.assign({});let e={};for(const[n,i]of Object.entries(t))e[n]=()=>Promise.resolve(i);return e}const l0=Cm({loading:u0,notify:ca}),la=new Ay(Ry(ca)),f0=c0(),{provider:h0,onReady:p0}=_y({nodeEnv:"production",mode:X.Runtime,modules:f0,materialPath:"../",adapter:l0,service:la,dependencies:{Vue:()=>Bn(()=>import("./@dcloudio-uni-h5-vue-Dxv_ts1w.js").then(r=>r.G),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>Bn(()=>import("./vue-router-C2iVG-hf.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),d0=r=>U(null,null,function*(){const t=(yield la.getExtension().catch(()=>null))||{},e=top||window,n=yield Ey(t.enhance,e.location.pathname),{Vue:i,UniH5:s}=window,o=r.project;if(!o)return;const u=o.uniConfig||{},l=o0(u,d=>pt(d,window,!1,!0)),{manifestJson:a,pagesJson:c,css:f}=u,h=yield a0(r,!0),p=s0({Vue:i,App:l,UniH5:s,routes:h,css:f,manifestJson:a,pagesJson:c});p.use(r),n&&p.use(n,r),p.mount(document.body)});p0(()=>d0(h0));
74
+ */const Oy=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],rs="/pages",$y="VTJ",Dy="__UNI__1FC118B",Cy="VTJ移动跨端项目",By="1.0.0",jy="100",Py=!1,Ny={},Iy={enable:!1},My="3",Fy={name:$y,appid:Dy,description:Cy,versionName:By,versionCode:jy,transformPx:Py,"app-plus":{usingComponents:!0,nvueStyleCompiler:"uni-app",compilerVersion:3,splashscreen:{alwaysShowBeforeRender:!0,waiting:!0,autoclose:!0,delay:0},modules:{},distribute:{android:{permissions:['<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>','<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>','<uses-permission android:name="android.permission.VIBRATE"/>','<uses-permission android:name="android.permission.READ_LOGS"/>','<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>','<uses-feature android:name="android.hardware.camera.autofocus"/>','<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>','<uses-permission android:name="android.permission.CAMERA"/>','<uses-permission android:name="android.permission.GET_ACCOUNTS"/>','<uses-permission android:name="android.permission.READ_PHONE_STATE"/>','<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>','<uses-permission android:name="android.permission.WAKE_LOCK"/>','<uses-permission android:name="android.permission.FLASHLIGHT"/>','<uses-feature android:name="android.hardware.camera"/>','<uses-permission android:name="android.permission.WRITE_SETTINGS"/>']},ios:{},sdkConfigs:{},icons:{android:{hdpi:"src/static/logo.png",xhdpi:"src/static/logo.png",xxhdpi:"src/static/logo.png",xxxhdpi:"src/static/logo.png"}}}},quickapp:Ny,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:Iy,vueVersion:My},Uy=[],Ly={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},ky={autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},Hy={pages:Uy,globalStyle:Ly,easycom:ky};function Vy(r){let{manifestJson:t={},pagesJson:e={},routes:n=[]}=r;const i=n.map(s=>{const{path:o,style:u,needLogin:l}=s;return{path:o,style:u,needLogin:l}});return et(H({},r),{manifestJson:Object.assign({},Fy,t),pagesJson:Object.assign({},Hy,e,{pages:i})})}const ln={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function ua(r){const t={},e={black:"#000000",white:"#ffffff"};for(const n in r)ln[n]&&(t[ln[n]]=n==="navigationBarTextStyle"?e[r[n]]||e.black:r[n]);return t}function qy(r){const t={};for(const e in r)ln[e]||(t[e]=r[e]);return t}function zy(r){var t,e;return((e=(t=r.h5)==null?void 0:t.router)==null?void 0:e.mode)||"hash"}function Wy(r){var t,e,n;return{topWindow:!!((t=r.topWindow)!=null&&t.path),leftWindow:!!((e=r.leftWindow)!=null&&e.path),rightWindow:!!((n=r.rightWindow)!=null&&n.path)}}function Ky(r){const{pagesJson:t={}}=r,{globalStyle:e,pages:n=[]}=t;return!!(e!=null&&e.enablePullDownRefresh||n.find(i=>{var s;return!!((s=i.style)!=null&&s.enablePullDownRefresh)}))}function Jy(r){const{pagesJson:t={}}=r,{globalStyle:e,pages:n=[]}=t;let i=!1;return(e==null?void 0:e.navigationStyle)==="custom"?(i=!0,n.find(s=>{var o;return((o=s.style)==null?void 0:o.navigationStyle)==="default"})&&(i=!1)):n.every(s=>{var o;return((o=s.style)==null?void 0:o.navigationStyle)==="custom"})&&(i=!0),i}function Gy(r){var u;const t=Jy(r),e={navigationBar:!1,navigationBarButtons:!1,navigationBarSearchInput:!1,navigationBarTransparent:!1},{pagesJson:n={}}=r,{globalStyle:i,pages:s=[]}=n;if(t)return e;e.navigationBar=!0;const o=(u=i==null?void 0:i.h5)==null?void 0:u.titleNView;return s.find(l=>{var a,c,f;return!!((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)!=null&&f.buttons.length)})&&(e.navigationBarButtons=!0),(o!=null&&o.searchInput||s.find(l=>{var a,c,f;return!!((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)!=null&&f.searchInput)}))&&(e.navigationBarSearchInput=!0),((o==null?void 0:o.type)==="transparent"||s.find(l=>{var a,c,f;return((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)==null?void 0:f.type)==="transparent"}))&&(e.navigationBarTransparent=!0),e}function Yy(r,t=window){var h,p,d,g;const{pagesJson:e={},manifestJson:n={}}=r,{topWindow:i,leftWindow:s,rightWindow:o}=Wy(e),{navigationBar:u,navigationBarButtons:l,navigationBarSearchInput:a,navigationBarTransparent:c}=Gy(r),f={__VUE_OPTIONS_API__:!0,__VUE_PROD_DEVTOOLS__:!1,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__:!1,__UNI_FEATURE_WX__:!1,__UNI_FEATURE_WXS__:!1,__UNI_FEATURE_RPX__:!1,__UNI_FEATURE_PROMISE__:!1,__UNI_FEATURE_LONGPRESS__:!1,__UNI_FEATURE_I18N_EN__:!1,__UNI_FEATURE_I18N_ES__:!1,__UNI_FEATURE_I18N_FR__:!1,__UNI_FEATURE_I18N_ZH_HANS__:!0,__UNI_FEATURE_I18N_ZH_HANT__:!1,__UNI_FEATURE_UNI_CLOUD__:!1,__UNI_FEATURE_I18N_LOCALE__:!1,__UNI_FEATURE_NVUE__:!1,__UNI_FEATURE_ROUTER_MODE__:zy(n),__UNI_FEATURE_PAGES__:!!((h=e.pages)!=null&&h.length),__UNI_FEATURE_TABBAR__:!!((d=(p=e.tabBar)==null?void 0:p.list)!=null&&d.length),__UNI_FEATURE_TABBAR_MIDBUTTON__:!!((g=e.tabBar)!=null&&g.midButton),__UNI_FEATURE_TOPWINDOW__:i,__UNI_FEATURE_LEFTWINDOW__:s,__UNI_FEATURE_RIGHTWINDOW__:o,__UNI_FEATURE_RESPONSIVE__:!1,__UNI_FEATURE_NAVIGATIONBAR__:u,__UNI_FEATURE_PULL_DOWN_REFRESH__:Ky(r),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:l,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:a,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:c};Object.entries(f).forEach(([y,w])=>{t[y]=w})}const Zy="4.76";function Qy(r,t=window){var f,h;const{pagesJson:e={},manifestJson:n={}}=r,{easycom:i={}}=e,{appid:s="",name:o="",versionCode:u="",versionName:l=""}=n,a=e.globalStyle,c=((f=n.h5)==null?void 0:f.router)||{};t.__uniConfig={easycom:i,globalStyle:et(H({},qy(a)),{navigationBar:ua(a),isNVue:!1}),compilerVersion:Zy,appId:s,appName:o,appVersion:l,appVersionCode:String(u),async:H({loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0},((h=n.h5)==null?void 0:h.async)||{}),debug:!1,networkTimeout:H({request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},n.networkTimeout||{}),sdkConfigs:{},nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:{},router:H({mode:"hash",base:"/",assets:"assets",routerBase:c.base||"/"},c),darkmode:!1,themeConfig:{},tabBar:e.tabBar?H({position:"bottom",color:"#7A7E83",selectedColor:"#3cc51f",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",backgroundColor:"#ffffff",selectedIndex:0,shown:!0},e.tabBar):void 0}}function Xy(r,t=window){const{UniServiceJSBridge:e,UniViewJSBridge:n,getApp:i,uni:s,getCurrentPages:o,upx2px:u,setupPage:l}=r;t.UniServiceJSBridge=e,t.UniViewJSBridge=n,t.getApp=i,t.uni=s,t.wx=s,t.getCurrentPages=o,t.upx2px=u,t.__setupPage=a=>l(a)}function t0(r,t,e){const{openBlock:n,createBlock:i,withCtx:s,createVNode:o}=r,{PageComponent:u,setupPage:l,getApp:a}=t;return{mpType:"page",setup(){return U(this,null,function*(){var g,y;const f=((y=(g=a())==null?void 0:g.$route)==null?void 0:y.query)||{},{loader:h,component:p}=e,d=h?yield h(e):p||{};return()=>(n(),i(u,null,{page:s(()=>[o(l(d),Object.assign({},f,{ref:"page"}),null,512)]),_:1}))})}}}function e0(r,t,e){var p;const{path:n,style:i={},meta:s={},home:o,id:u}=t,l=((p=r.tabBar)==null?void 0:p.list)||[],a=l.findIndex(d=>{var g;return d.pagePath===n||((g=d.pagePath)==null?void 0:g.endsWith(u))}),c=l[a],f=!!c,h=e===0;return H({isTabBar:f,tabBarIndex:a,isQuit:o!=null?o:h,isEntry:o!=null?o:h,navigationBar:H({type:"default"},ua(i)),isNVue:!1,route:c?c.pagePath:n},s)}function r0(r,t,e,n,i=window){const s=e.map((o,u)=>{const l=e0(n,o,u),a=t0(r,t,o),{path:c}=o;return{path:c,alias:c,meta:l,component:{render(){return r.h(r.Suspense,[r.h(a)])}}}});i.__uniRoutes=s,i.__uniLayout={}}function n0(r,t,e=window){fr(e,String(r),t)}function i0(r,t){t&&["View","ScrollView","Swiper","MovableArea","MovableView","CoverView","CoverImage","Icon","Text","RichText","Progress","Button","CheckboxGroup","Checkbox","Editor","Form","Input","Label","Picker","PickerView","RadioGroup","Radio","Slider","Switch","Textarea","Navigator","Image","Video","Map","Canvas","WebView","PickerViewColumn","ResizeSensor","SwiperItem"].forEach(e=>{const n=t[e];r.component(e,n)})}function s0(r){const t=Vy(r),{Vue:e,App:n,UniH5:i,routes:s=[],pagesJson:o={},manifestJson:u={},window:l,css:a=""}=t;if(!i)return e.createApp(n);const{plugin:c,setupApp:f}=i;Yy(t,l),Qy(t,l),Xy(i,l),r0(e,i,s,o,l),n0(u.appid||Date.now(),a,l);const h=e.createApp(f(n));return h.use(i0,i),h.use(c),h}function o0(r,t){const e={};return Object.entries(r).forEach(([n,i])=>{Oy.includes(n)&&i&&(e[n]=t(i))}),e}function ns(r,t){return()=>U(null,null,function*(){const e=yield r.getDsl(t);if(e){const{renderer:n}=r.createDslRenderer(e);return n}return null})}function a0(n){return U(this,arguments,function*(r,t=!1,e=rs){var u,l,a;const i=((u=r.project)==null?void 0:u.pages)||[],s=[];for(const c of i){const f=((l=r.project)==null?void 0:l.homepage)===c.id;s.push({id:c.id,path:`${e}/${c.id}`,loader:ns(r,c.id),style:H({navigationBarTitleText:c.title},c.style),needLogin:c.needLogin,home:f})}const o=s.find(c=>!!c.home)||s[0];if(o){const c=e===rs?"/":e;s.unshift(et(H({},o),{path:c}))}if(t){const c=((a=r.project)==null?void 0:a.blocks)||[];for(const f of c)s.push({id:f.id,path:`${e}/${f.id}`,loader:ns(r,f.id),style:{navigationStyle:"custom"}})}return s})}function u0(){var r;return(r=window.uni)!=null&&r.showLoading&&window.uni.showLoading({title:"加载中...",mask:!0}),{close:()=>{var t;(t=window.uni)!=null&&t.hideLoading&&window.uni.hideLoading()}}}function ca(r,t="",e="warning"){return U(this,null,function*(){var n;return(n=window.uni)!=null&&n.showModal?window.uni.showModal({title:t,content:r,showCancel:!1}):(window.alert(r),!0)})}function c0(r=X.Runtime){let t={};r===X.Runtime?t=Object.assign({}):t=Object.assign({});let e={};for(const[n,i]of Object.entries(t))e[n]=()=>Promise.resolve(i);return e}const l0=Cm({loading:u0,notify:ca}),la=new Ay(Ry(ca)),f0=c0(),{provider:h0,onReady:p0}=_y({nodeEnv:"production",mode:X.Runtime,modules:f0,materialPath:"../",adapter:l0,service:la,dependencies:{Vue:()=>Bn(()=>import("./@dcloudio-uni-h5-vue-Dxv_ts1w.js").then(r=>r.G),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>Bn(()=>import("./vue-router-C2iVG-hf.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),d0=r=>U(null,null,function*(){const t=(yield la.getExtension().catch(()=>null))||{},e=top||window,n=yield Ey(t.enhance,e.location.pathname),{Vue:i,UniH5:s}=window,o=r.project;if(!o)return;const u=o.uniConfig||{},l=o0(u,d=>pt(d,window,!1,!0)),{manifestJson:a,pagesJson:c,css:f}=u,h=yield a0(r,!0),p=s0({Vue:i,App:l,UniH5:s,routes:h,css:f,manifestJson:a,pagesJson:c});p.use(r),n&&p.use(n,r),p.mount(document.body)});p0(()=>d0(h0));
@@ -21,30 +21,30 @@
21
21
  window.getApp = function () {};
22
22
  </script>
23
23
  <style>
24
- body::-webkit-scrollbar {
24
+ *::-webkit-scrollbar {
25
25
  width: 3px;
26
26
  height: 3px;
27
27
  }
28
28
 
29
- body::-webkit-scrollbar-track {
29
+ *::-webkit-scrollbar-track {
30
30
  background: transparent;
31
31
  border-radius: 3px;
32
32
  }
33
33
 
34
- body::-webkit-scrollbar-thumb {
34
+ *::-webkit-scrollbar-thumb {
35
35
  background: rgba(0, 0, 0, 0.2);
36
36
  border-radius: 3px;
37
37
  transition: all 0.3s ease;
38
38
  }
39
39
 
40
- body::-webkit-scrollbar-thumb:hover {
40
+ *::-webkit-scrollbar-thumb:hover {
41
41
  background: rgba(0, 0, 0, 0.3);
42
42
  }
43
43
  </style>
44
44
  <title></title>
45
45
  <!--preload-links-->
46
46
  <!--app-context-->
47
- <script type="module" crossorigin src="./assets/index-BBaSDF4L.js"></script>
47
+ <script type="module" crossorigin src="./assets/index-DJC3P0pf.js"></script>
48
48
  <link rel="modulepreload" crossorigin href="./assets/vue-BK7aLblh.js">
49
49
  <link rel="modulepreload" crossorigin href="./assets/@dcloudio-uni-shared-Cc-Ey1iB.js">
50
50
  <link rel="modulepreload" crossorigin href="./assets/@dcloudio-uni-h5-vue-Dxv_ts1w.js">
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vtj/pro",
3
3
  "private": false,
4
- "version": "0.13.39",
4
+ "version": "0.13.41",
5
5
  "keywords": [
6
6
  "低代码引擎",
7
7
  "LowCode Engine",
@@ -21,22 +21,22 @@
21
21
  "license": "MIT",
22
22
  "type": "module",
23
23
  "dependencies": {
24
- "@vtj/core": "~0.13.39",
25
- "@vtj/designer": "~0.13.39",
26
- "@vtj/local": "~0.13.39",
27
- "@vtj/materials": "~0.13.39",
28
- "@vtj/uni": "~0.13.39",
29
- "@vtj/renderer": "~0.13.39"
24
+ "@vtj/core": "~0.13.41",
25
+ "@vtj/local": "~0.13.41",
26
+ "@vtj/designer": "~0.13.41",
27
+ "@vtj/materials": "~0.13.41",
28
+ "@vtj/uni": "~0.13.41",
29
+ "@vtj/renderer": "~0.13.41"
30
30
  },
31
31
  "devDependencies": {
32
32
  "vite-plugin-vue-devtools": "~8.0.2",
33
33
  "vue": "~3.5.5",
34
34
  "vue-router": "~4.6.0",
35
35
  "@vtj/cli": "~0.12.18",
36
- "@vtj/icons": "~0.13.39",
37
- "@vtj/charts": "~0.13.39",
38
- "@vtj/ui": "~0.13.39",
39
- "@vtj/utils": "~0.13.39"
36
+ "@vtj/icons": "~0.13.41",
37
+ "@vtj/ui": "~0.13.41",
38
+ "@vtj/utils": "~0.13.41",
39
+ "@vtj/charts": "~0.13.41"
40
40
  },
41
41
  "exports": {
42
42
  "./vite": {
package/src/Auth.vue CHANGED
@@ -25,6 +25,9 @@
25
25
  const getLoginInfo = async (token: string) => {
26
26
  const api = `${props.remote || REMOTE}/api/open/user/${token}`;
27
27
  const res = await jsonp(api).catch(() => null);
28
+ if (!!res && Array.isArray(res)) {
29
+ return res;
30
+ }
28
31
  if (!res || !res.success) {
29
32
  await alert('登录失败');
30
33
  return null;
@@ -43,6 +46,10 @@
43
46
  } catch (e) {
44
47
  location.reload();
45
48
  }
49
+ } else {
50
+ await alert('登录失败');
51
+ const redirect = route.query.redirect as string;
52
+ location.href = decodeURIComponent(redirect || props.baseUrl);
46
53
  }
47
54
  </script>
48
55
 
@@ -1 +0,0 @@
1
- var w=Object.defineProperty;var f=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var h=(s,t,e)=>t in s?w(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,u=(s,t)=>{for(var e in t||(t={}))x.call(t,e)&&h(s,e,t[e]);if(f)for(var e of f(t))B.call(t,e)&&h(s,e,t[e]);return s};var p=(s,t,e)=>new Promise((c,o)=>{var n=r=>{try{i(e.next(r))}catch(a){o(a)}},m=r=>{try{i(e.throw(r))}catch(a){o(a)}},i=r=>r.done?c(r.value):Promise.resolve(r.value).then(n,m);i((e=e.apply(s,t)).next())});import"./element-plus-CTJx9qrF.js";import"./vxe-CV1GhgEu.js";import{A as $,aA as b,a6 as y,aB as v,aC as E,D as I}from"./Editor-CB7H71mV-ZgvMz2MG.js";import{useRoute as S}from"./vue-router-C7QxHR5l.js";import{d as A,az as C,c as U,o as k,G as g,O as q,u as _}from"./vue-DnlwaDgl.js";import{_ as D}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./dayjs-BGdj-UA2.js";import"./@vueuse-dfxA5MrB.js";import"./@element-plus-icons-vue-Cedkr9-t.js";import"./lodash-es-C_ofKwPd.js";import"./shared-CcA2kMdO.js";import"./monaco-editor-BnTtZo-x.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-D0SPmEx8.js";import"./marked-Dt4xUbva.js";const R={class:"loading"},z=A({__name:"Auth",props:{remote:{},access:{},baseUrl:{default:"/"}},setup(s){return p(this,null,function*(){let t,e;const c=s,o=$(u(u({alert:y},b),c.access)),n=S(),m=a=>p(null,null,function*(){const d=`${c.remote||v}/api/open/user/${a}`,l=yield E(d).catch(()=>null);return!l||!l.success?(yield y("登录失败"),null):l.data}),i=n.query.token,r=i?([t,e]=C(()=>m(i)),t=yield t,e(),t):null;if(r)try{o.login(r);const a=n.query.redirect;location.href=decodeURIComponent(a||c.baseUrl)}catch(a){location.reload()}return(a,d)=>(k(),U("div",R,"正在登录中..."))})}}),G=D(z,[["__scopeId","data-v-2674e98b"]]),Z=A({__name:"auth",setup(s){return p(this,null,function*(){let t,e;const c=new I,o=([t,e]=C(()=>c.getExtension().catch(()=>null)),t=yield t,e(),t),n=o==null?void 0:o.remote,m=o==null?void 0:o.__ACCESS__;return(i,r)=>_(n)?(k(),g(_(G),{key:0,remote:_(n),access:_(m)},null,8,["remote","access"])):q("",!0)})}});export{Z as default};