@mas.io/mas-green-energy
v0.0.4
Published
mas-promo-label 的组件描述
Downloads
4
Readme
安装
tnpm install --save @alipay/mas-green-energy
组件介绍
行业小程序标签组件,结合缴费标签的组件样式,针对支付宝行业的各个不同场景进行定制化开发,满足业务需求。
参数说明
属性 | 填写要求 | 参数类型 | 参数说明 | 默认值 | 示例 | -- | -- | -- | -- | -- | -- | text | 必传 | string | 绿色能量标签显示的文案,绿色能量的值用${}圈出来 | 无 | 每次缴费可获${262}绿色能量 | onClickHandler | 选填 | function | 标签点击事件的钩子,可以自定义点击事件 | -- | --|
使用说明
绿色能量组件,可传入指定的文案
在小程序中使用
{
"usingComponents": {
"mas-energy-tag": "@alipay/mas-tag/es/index"
}
}
在 page.axml 中引用组件
<!-- 页面使用方式 -->
<mas-energy-tag text="每次缴费可获${262}绿色能量"/>
Badges
[![install size][install-size-image]][install-size-url]