更新记录
1.0.0(2024-08-29) 下载此版本
首次发布
平台兼容性
uni-app
Vue2 | Vue3 | Chrome | Safari | app-vue | app-nvue | Android | iOS | 鸿蒙 |
---|---|---|---|---|---|---|---|---|
√ | - | - | - | - | - | - | - | - |
微信小程序 | 支付宝小程序 | 抖音小程序 | 百度小程序 | 快手小程序 | 京东小程序 | 鸿蒙元服务 | QQ小程序 | 飞书小程序 | 快应用-华为 | 快应用-联盟 |
---|---|---|---|---|---|---|---|---|---|---|
- | - | - | - | - | - | - | - | - | - | - |
1. 使用说明
在 template 中使用组件
<template>
<view class="content">
<wade-tabbar :tabList="tabList" @clickNav="clickTab"></wade-tabbar>
</view>
</template>
<script>
export default {
data() {
return {
title: 'Hello',
tabList: [{
name: '最新',
}, {
name: '大公司',
}, {
name: '内容',
}, {
name: '消费',
}, {
name: '娱乐',
}, {
name: '区块链',
}],
}
},
onLoad() {
},
methods: {
clickTab(index){
console.log(index)
}
}
}
</script>
2. 属性说明
属性名 | 类型 | 说明 |
---|---|---|
tabList | Array | 数组 |
clickNav | function | 点击tab事件 |