
管理员
站长
- UID
- 1
- 积分
- 224402
- 余额
- 13 R
- Moe币
- 84883
- 在线时间
- 279 小时
- 注册时间
- 2025-12-28
- 最后登录
- 2026-11-13
|
|
getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function qe(e,t){for(let n in t){let r=t[n],o=e[n];if("string"===typeof r){if(r!==o)return!1}else if(!Array.isArray(o)||o.length!==r.length||r.some((e,t)=>e!==o[t]))return!1}return!0}function Ye(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Qe=(e,t,n)=>null!=e?e:null!=t?t:n,Je=Object(r["i"])({name:"RouterView",props:{name:{type:String,default:"default"},route:Object},setup(e,{attrs:t,slots:n}){const o=Object(r["l"])(l),i=Object(r["c"])(()=>e.route||o.value),s=Object(r["l"])(a,0),u=Object(r["c"])(()=>i.value.matched[s]);Object(r["v"])(a,s+1),Object(r["v"])(c,u),Object(r["v"])(l,i);const f=Object(r["y"])();return Object(r["H"])(()=>[f.value,u.value,e.name],([e,t,n],[r,o,i])=>{t&&(t.instances[n]=e,o&&o!==t&&e&&e===r&&(t.leaveGuards=o.leaveGuards,t.updateGuards=o.updateGuards)),!e||!t||o&&j(t,o)&&r||(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:"post"}),()=>{const o=i.value,c=u.value,a=c&&c.components[e.name],s=e.name;if(!a)return Xe(n.default,{Component:a,route:o});const l=c.props[e.name],d=l?!0===l?o.params:"function"===typeof l?l(o):l:null,h=e=>{e.component.isUnmounted&&(c.instances[s]=null)},b=Object(r["k"])(a,p({},d,t,{onVnodeUnmounted:h,ref:f}));return Xe(n.default,{Component:b,route:o})||b}}});function Xe(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const Ze=Je;var et="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:{};function tt(e,t,n){return n={pat |
|