lanyun-tab

lanyun-tab 类型切换

介绍

用于类型事件的切换,例如订单类型的切换

使用方法

import '../../components/lanyun-tab.stml'

例子

<lanyun-tab @lanYunTab="tabOne" default="3" tabBorderColor="#ff0000" tabTextColorOn="#ff0000" :tabText="textarr">

API

props 属性

参数 说明 类型 默认值
tabBorderColor 选中的下边线颜色,必填 string #999999
tabTextColorOn 选中的文字颜色,选填 string #999999
tabTextColor 文字默认颜色,选填 string #999999
default 默认选中的索引,选填 string 150px
tabText 切换的文字数组,必填 Array textarr:['全部','待发货','待收货','已收货','待评论']

events 事件

tabOne(e){ console.log(JSON.stringify(e.detail.index)); 返回点击tab的索引 }

是否仍需要帮助? 请保持联络!
最后更新于 2024/04/24