GateWay/web/js/506.70402c53.js

1 line
7.5 KiB
JavaScript
Raw Normal View History

2024-11-13 11:26:59 +08:00
"use strict";(self["webpackChunkset_vue"]=self["webpackChunkset_vue"]||[]).push([[506],{6769:function(e,t,a){a.r(t),a.d(t,{default:function(){return $}});var n=a(4726),l=a(6768),o=a(144),s=a(5828),i=a(6370),r=a(7905),c=a(4612),u=a(9725),d=a(6591),f=a(4397);const[v,h]=(0,s.YX)("tabbar"),p={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}},g=Symbol(v);var b=(0,l.pM)({name:v,props:p,emits:["change","update:modelValue"],setup(e,{emit:t,slots:a}){const n=(0,o.KR)(),{linkChildren:s}=(0,d.Py)(g),i=(0,f.h)(n,h),v=()=>{var t;return null!=(t=e.safeAreaInsetBottom)?t:e.fixed},p=()=>{var t;const{fixed:o,zIndex:s,border:i}=e;return(0,l.bF)("div",{ref:n,role:"tablist",style:(0,r.AO)(s),class:[h({fixed:o}),{[c.pT]:i,"van-safe-area-bottom":v()}]},[null==(t=a.default)?void 0:t.call(a)])},b=(a,n)=>{(0,u.m)(e.beforeChange,{args:[a],done(){t("update:modelValue",a),t("change",a),n()}})};return s({props:e,setActive:b}),()=>e.fixed&&e.placeholder?i(p):p()}});const m=(0,n.G)(b);a(6647);var x=a(8442),T=a(4548),F=a(5632),k=a(3408);const[D,C]=(0,s.YX)("tabbar-item"),V=(0,x.X$)({},T.aI,{dot:Boolean,icon:String,name:i.VQ,badge:i.VQ,badgeProps:Object,iconPrefix:String});var B=(0,l.pM)({name:D,props:V,emits:["click"],setup(e,{emit:t,slots:a}){const n=(0,T.lq)(),o=(0,l.nI)().proxy,{parent:s,index:i}=(0,d.cJ)(g);if(!s)return void 0;const r=(0,l.EW)((()=>{var t;const{route:a,modelValue:n}=s.props;if(a&&"$route"in o){const{$route:t}=o,{to:a}=e,n=(0,x.Gv)(a)?a:{path:a};return!!t.matched.find((e=>{const t="path"in n&&n.path===e.path,a="name"in n&&n.name===e.name;return t||a}))}return(null!=(t=e.name)?t:i.value)===n})),c=a=>{var l;r.value||s.setActive(null!=(l=e.name)?l:i.value,n),t("click",a)},u=()=>a.icon?a.icon({active:r.value}):e.icon?(0,l.bF)(F.In,{name:e.icon,classPrefix:e.iconPrefix},null):void 0;return()=>{var t;const{dot:n,badge:o}=e,{activeColor:i,inactiveColor:d}=s.props,f=r.value?i:d;return(0,l.bF)("div",{role:"tab",class:C({active:r.value}),style:{color:f},tabindex:0,"aria-selected":r.value,onClick:c},[(0,l.bF)(k.Ex,(0,l.v6)({dot:n,class:C("icon"),content:o},e.badgeProps),{default:u}),(0,l.bF)("div",{class:C("text")},[null==(t=a.default)?void 0:t.call(a,{active:r.value})])])}}});const A=(0,n.G)(B);a(7708),a(7484);const I={class:"footer"};function R(e,t,a,n,o,s){const i=(0,l.g2)("router-view"),r=A,c=m;return(0,l.uX)(),(0,l.CE)("div",I,[(0,l.bF)(i),(0,l.bF)(c,{modelValue:n.active,"onUpdate:modelValue":t[0]||(t[0]=e=>n.active=e),onChange:n.onChange},{default:(0,l.k6)((()=>[(0,l.bF)(r,{icon:"home-o",name:"home"},{default:(0,l.k6)((()=>[(0,l.eW)("系统设置")])),_:1}),(0,l.bF)(r,{icon:"setting-o",name:"info"},{default:(0,l.k6)((()=>[(0,l.eW)("系统信息")])),_:1})])),_:1},8,["modelValue","onChange"])])}a(4114);var S=a(1387),w={setup(){const e=(0,o.KR)("home"),t=(0,S.rd)(),a=(0,S.lq)(),n=e=>{t.push({name:e})};return(0,l.nT)((()=>{e.value=a.name})),{active:e,onChange:n}}},y=a(1241);const Y=(0,y.A)(w,[["render",R]]);var $=Y},4758:function(e,t,a){a.d(t,{A:function(){return k}});var n=a(4726),l=a(6768),o=a(144),s=a(5828),i=a(6370),r=a(7905),c=a(4612),u=a(4397),d=a(5632);const[f,v]=(0,s.YX)("nav-bar"),h={title:String,fixed:Boolean,zIndex:i.VQ,border:i.Rd,leftText:String,rightText:String,leftDisabled:Boolean,rightDisabled:Boolean,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,clickable:i.Rd};var p=(0,l.pM)({name:f,props:h,emits:["clickLeft","clickRight"],setup(e,{emit:t,slots:a}){const n=(0,o.KR)(),s=(0,u.h)(n,v),i=a=>{e.leftDisabled||t("clickLeft",a)},f=a=>{e.rightDisabled||t("clickRight",a)},h=()=>a.left?a.left():[e.leftArrow&&(0,l.bF)(d.In,{class:v("arrow"),name:"arrow-left"},null),e.leftText&&(0,l.bF)("span",{class:v("text")},[e.leftText])],p=()=>a.right?a.right():(0,l.bF)("span",{class:v("text")},[e.rightText]),g=()=>{const{title:t,fixed:o,border:s,zIndex:u}=e,d=(0,r.AO)(u),g=e.leftArrow||e.leftText||a.left,b=e.rightText||a.right;return(0,l.bF)("div",{ref:n,style:d,class:[v({fixed: