更新记录
1.0.0(2023-06-01)
下载此版本
circle-tabs
属性说明
属性名 |
类型 |
默认值 |
说明 |
value |
String Number |
0 |
默认选中 |
tabList |
Array |
[] |
展示数据 |
mode |
String |
cricle skew |
圆 曲线 |
使用示例
<circle-tabs v-model='tabIndex' :tabList="list" mode='skew'></circle-tabs>
import cricleTabs from "@/components/circle-tabs/circle-tabs.vue"
export default {
components: {
cricleTabs
},
data() {
return {
tabIndex:0,
list:[
{
id:0,
title:'tab1',
icon:require('@/components/circle-tabs/icon-kfckfc.png')
},
{
id:1,
title:'tab2',
icon:require('@/components/circle-tabs/icon-kfckfc.png')
},
{
id:2,
title:'tab3',
icon:require('@/components/circle-tabs/icon-kfckfc.png')
}
]
}
},
}
效果图
平台兼容性
uni-app
Vue2 |
Vue3 |
Chrome |
Safari |
app-vue |
app-nvue |
Android |
iOS |
鸿蒙 |
√ |
√ |
√ |
√ |
√ |
√ |
- |
- |
- |
微信小程序 |
支付宝小程序 |
抖音小程序 |
百度小程序 |
快手小程序 |
京东小程序 |
鸿蒙元服务 |
QQ小程序 |
飞书小程序 |
快应用-华为 |
快应用-联盟 |
√ |
√ |
√ |
√ |
√ |
√ |
- |
√ |
√ |
√ |
√ |
其他
cricle-tabs
属性说明
属性名 |
类型 |
默认值 |
说明 |
value |
String Number |
0 |
默认选中 |
tabList |
Array |
[] |
展示数据 |
mode |
String |
cricle skew |
圆 曲线 |
使用示例
<cricle-tabs v-model='tabIndex' :tabList="list" mode='skew'></cricle-tabs>
import cricleTabs from "@/components/cricle-tabs/cricle-tabs.vue"
export default {
components: {
cricleTabs
},
data() {
return {
tabIndex:0,
list:[
{
id:0,
title:'tab1',
icon:require('@/components/cricle-tabs/icon-kfckfc.png')
},
{
id:1,
title:'tab2',
icon:require('@/components/cricle-tabs/icon-kfckfc.png')
},
{
id:2,
title:'tab3',
icon:require('@/components/cricle-tabs/icon-kfckfc.png')
}
]
}
},
}
效果图