更新记录
1.0.1(2025-12-13) 下载此版本
1.0.1
1.0.0(2025-12-13) 下载此版本
1.0.0
平台兼容性
<template>
<view>
<navTab :list="navTabList" :backgroundColor="ThemeColor" :width="30" @bindTab="bindTab"/>
</view>
</template>
<script>
export default {
data() {
return {
ThemeColor:"#1DB0FC",
navTabList:["商品","文章"]
}
},
components: {
navTab ,
},
onLoad(options) {
// 字段说明
// list 数据源
// lineHeight 行高 如"90rpx"
// Height 位置指示器高度(单位px) 如2
// width 位置指示器宽度(单位px) 如30
// backgroundColor 位置指示器背景色
// color Tab标签字体颜色
// fontSize Tab标签 字体大小 如"90rpx"
// ActiveColor Tab标签当前位置字体颜色
},
methods: {
//点击每个产品事件
bindTab(item){
console.log(item)
},
}
}
</script>
<style scoped lang="scss">
</style>

收藏人数:
下载插件并导入HBuilderX
赞赏(0)
下载 61
赞赏 0
下载 12176799
赞赏 1828
赞赏
京公网安备:11010802035340号