0.0.6 • Published 4 years ago

@mas.io/mas-account-switch v0.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

安装

tnpm install --save @alipay/mas-account-switch

组件介绍

行业小程序公积金账户切换卡片组件

参数说明

属性是否必填参数类型参数说明默认值示例
titleString标题文案'账户余额(元)'--
amountString数字金额---
checkedBoolean是否选中false--
statusTextString状态文案'正常'--
statusColorString状态文案颜色'#00B578'--
listArrayArray<{ key: string; value: string;}卡片数组文案--
onCheckedFunction(checked: Boolean, item: props) => void点击卡片回调--

在小程序中使用

{
  "usingComponents": {
    "mas-account-switch": "@mas.io/mas-account-switch/es/index"
  }
}

在 page.axml 中引用组件

<!-- 页面使用方式 -->
 <mas-account-switch
    checked="{{false}}" 
    amount="{{'383.00'}}"
    onChecked="onChecked"
    list="{{list}}"
  />

Badges

TNPM version TNPM downloads install size