mas-tabbar-test

0.0.3 • Public • Published

安装

tnpm install --save @alipay/mas-tabbar

组件介绍

行业小程序选项卡组件

参数说明

属性 必填 参数类型 参数说明 默认值 示例
tabs 数组 选项卡数组 [] []
onClick 函数 点击每个选项卡的回调函数 空函数 -
activeKey string 当前选中的选项卡 ''

其中tabs里的每一项需遵循如下格式:

属性 必填 参数类型 参数说明 默认值 示例
icon 字符串 选项卡未选中时的图标 - -
activeKey 字符串 选项卡选中状态的图标 - -
label 字符串 选项卡文案 '' -
key 字符串 选项卡的key '' -
bagge 数字 选项卡的右上角红色徽标内容 '' -

在小程序中使用

{
  "usingComponents": {
    "mas-tabbar": "@alipay/mas-tabbar/es/index"
  }
}

在 page.axml 中引用组件

<!-- 页面使用方式 -->
 <mas-tabbar
    ...
    props=""
    ...
  />

Badges

TNPM version TNPM downloads [![install size][install-size-image]][install-size-url]


Readme

Keywords

none

Package Sidebar

Install

npm i mas-tabbar-test

Weekly Downloads

1

Version

0.0.3

License

ISC

Unpacked Size

3.03 kB

Total Files

2

Last publish

Collaborators

  • bingjian.guo