GateWay/web/js/769.9bee6fb6.js
2024-11-13 11:26:59 +08:00

1 line
3.5 KiB
JavaScript

"use strict";(self["webpackChunkset_vue"]=self["webpackChunkset_vue"]||[]).push([[769],{6769:function(e,t,n){n.r(t),n.d(t,{default:function(){return T}});var a=n(4726),o=n(6768),r=n(144),l=n(5828),i=n(6370),c=n(7905),u=n(4612),s=n(9725),d=n(6591),v=n(4397);const[f,p]=(0,l.YX)("tabbar"),m={route:Boolean,fixed:i.Rd,border:i.Rd,zIndex:i.VQ,placeholder:Boolean,activeColor:String,beforeChange:Function,inactiveColor:String,modelValue:(0,i.TU)(0),safeAreaInsetBottom:{type:Boolean,default:null}},b=Symbol(f);var h=(0,o.pM)({name:f,props:m,emits:["change","update:modelValue"],setup(e,{emit:t,slots:n}){const a=(0,r.KR)(),{linkChildren:l}=(0,d.Py)(b),i=(0,v.h)(a,p),f=()=>{var t;return null!=(t=e.safeAreaInsetBottom)?t:e.fixed},m=()=>{var t;const{fixed:r,zIndex:l,border:i}=e;return(0,o.bF)("div",{ref:a,role:"tablist",style:(0,c.AO)(l),class:[p({fixed:r}),{[u.pT]:i,"van-safe-area-bottom":f()}]},[null==(t=n.default)?void 0:t.call(n)])},h=(n,a)=>{(0,s.m)(e.beforeChange,{args:[n],done(){t("update:modelValue",n),t("change",n),a()}})};return l({props:e,setActive:h}),()=>e.fixed&&e.placeholder?i(m):m()}});const g=(0,a.G)(h);n(6647);var x=n(8442),C=n(4548),V=n(5632),k=n(3408);const[F,y]=(0,l.YX)("tabbar-item"),B=(0,x.X$)({},C.aI,{dot:Boolean,icon:String,name:i.VQ,badge:i.VQ,badgeProps:Object,iconPrefix:String});var I=(0,o.pM)({name:F,props:B,emits:["click"],setup(e,{emit:t,slots:n}){const a=(0,C.lq)(),r=(0,o.nI)().proxy,{parent:l,index:i}=(0,d.cJ)(b);if(!l)return void 0;const c=(0,o.EW)((()=>{var t;const{route:n,modelValue:a}=l.props;if(n&&"$route"in r){const{$route:t}=r,{to:n}=e,a=(0,x.Gv)(n)?n:{path:n};return!!t.matched.find((e=>{const t="path"in a&&a.path===e.path,n="name"in a&&a.name===e.name;return t||n}))}return(null!=(t=e.name)?t:i.value)===a})),u=n=>{var o;c.value||l.setActive(null!=(o=e.name)?o:i.value,a),t("click",n)},s=()=>n.icon?n.icon({active:c.value}):e.icon?(0,o.bF)(V.In,{name:e.icon,classPrefix:e.iconPrefix},null):void 0;return()=>{var t;const{dot:a,badge:r}=e,{activeColor:i,inactiveColor:d}=l.props,v=c.value?i:d;return(0,o.bF)("div",{role:"tab",class:y({active:c.value}),style:{color:v},tabindex:0,"aria-selected":c.value,onClick:u},[(0,o.bF)(k.Ex,(0,o.v6)({dot:a,class:y("icon"),content:r},e.badgeProps),{default:s}),(0,o.bF)("div",{class:y("text")},[null==(t=n.default)?void 0:t.call(n,{active:c.value})])])}}});const A=(0,a.G)(I);n(7708),n(7484);const P={class:"footer"};function w(e,t,n,a,r,l){const i=(0,o.g2)("router-view"),c=A,u=g;return(0,o.uX)(),(0,o.CE)("div",P,[(0,o.bF)(i),(0,o.bF)(u,{modelValue:a.active,"onUpdate:modelValue":t[0]||(t[0]=e=>a.active=e),onChange:a.onChange},{default:(0,o.k6)((()=>[(0,o.bF)(c,{icon:"home-o",name:"home"},{default:(0,o.k6)((()=>[(0,o.eW)("系统设置")])),_:1}),(0,o.bF)(c,{icon:"setting-o",name:"info"},{default:(0,o.k6)((()=>[(0,o.eW)("系统信息")])),_:1})])),_:1},8,["modelValue","onChange"])])}n(4114);var R=n(1387),S={setup(){const e=(0,r.KR)("home"),t=(0,R.rd)(),n=(0,R.lq)(),a=e=>{t.push({name:e})};return(0,o.nT)((()=>{e.value=n.name})),{active:e,onChange:a}}},X=n(1241);const _=(0,X.A)(S,[["render",w]]);var T=_},4397:function(e,t,n){n.d(t,{h:function(){return u}});var a=n(6768),o=n(6591),r=n(144),l=n(240),i=n(8957);const c=(e,t)=>{const n=(0,r.KR)(),c=()=>{n.value=(0,o.yD)(e).height};return(0,a.sV)((()=>{if((0,a.dY)(c),t)for(let e=1;e<=3;e++)setTimeout(c,100*e)})),(0,i.V)((()=>(0,a.dY)(c))),(0,a.wB)([l.Xw,l.C7],c),n};function u(e,t){const n=c(e,!0);return e=>(0,a.bF)("div",{class:t("placeholder"),style:{height:n.value?`${n.value}px`:void 0}},[e()])}}}]);