Skip to content

KMobileTabBar 底部导航 ​

移动端底部图标导航栏:每项一个图标加文案,激活项使用 Element Plus 主色。

基础用法 ​

组件自身使用 position: absolute; bottom: 0,父容器需要有明确高度和定位上下文。

当前页签:home

组件使用 absolute 定位,需要父容器提供定位上下文

docs/examples/mobile-tab-bar/basic.vue

API ​

Attributes ​

参数说明类型默认值
modelValue当前页签 key,支持 v-modelstring必填
tabs导航项 { key, label, icon }KMobileTab[]必填

Events ​

事件名说明回调参数
update:modelValue导航项切换新的 key

Wujies UI · 组件事实源在 packages/components/src