@minuibeta/wxc-tab-beta

1.0.0 • Public • Published

wxc-tab

MinUI 小程序组件 - 选项卡

Install

$ min install @minui/wxc-tab

API

Tab【props】

名称 描述
default-index [说明]:当前激活面板的 index。
[类型]:Number
[默认值]:0
animate [说明]:是否开启动画。
[类型]:Boolean
[默认值]:false
component-id [说明]:同时调用两个tab时,需要指定component-id。
[类型]:String
bindonchange [说明]:tab切换的回调函数
text-color [说明]:文字颜色。
[类型]:String
[默认值]:#000
active-text-color [说明]:选中文字颜色。
[类型]:String
[默认值]:#ff5777
line-color [说明]:线条颜色。
[类型]:String
[默认值]:#ddd
active-line-color [说明]:选中线条颜色。
[类型]:String
[默认值]:#ff5777

Tab-Panel【props】

名称 描述
tab-index [说明]:激活当前面板的 index。
[类型]:Number
[默认值]:0
label [说明]:选项卡头部显示的文字。
[类型]:String
component-id [说明]:同时调用两个tab时,需要指定component-id。
[类型]:String

Tab-Label【props】

自定义头部时,需要在外层加slot="tablabel"

名称 描述
tab-index [说明]:激活当前面板的 index。
[类型]:Number
[默认值]:0
component-id [说明]:同时调用两个tab时,需要指定component-id。
[类型]:String

ChangeLog

v1.0.0(2017.10.24)

  • 初始版本

Readme

Keywords

none

Package Sidebar

Install

npm i @minuibeta/wxc-tab-beta

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • cds803