1.0.0 • Published 3 years ago

@mas.io/adc-steps v1.0.0

Weekly downloads
7
License
ISC
Repository
-
Last release
3 years ago

安装

tnpm install --save @alipay/adc-steps

组件介绍

行业小程序步骤条组件,针对支付宝行业的各个不同场景进行定制化开发,满足业务需求。

参数说明

属性必填参数类型参数说明默认值示例
classNamestring自定义class样式''''
directionstring排列方向(row: 横向, column: 竖向)rowrow
activeIconstring激活icon的type(仅支持am-icon的图标)checkcheck
activeIconSizenumber激活icon的大小1616
activeColorstring激活状态颜色#1aad19#1aad19
defaultIconstring未激活icon的type(仅支持am-icon的图标, 当showDefaultIcon为true时才生效)circlecircle
errorIconstring错误iconclose_close_
errorIndexnumber错误icon的下标01
errorColorstring错误文本的颜色#FF3B30#FF3B30
errorIconSizenumber错误icon的大小1616
showDefaultIconboolean是否显示自定义的未激活iconfalsefalse
defaultIconSizenumber未激活icon的大小1212
defaultColorstring未激活状态颜色#999999#999999
activenumber当前步骤00
optionsArray步骤列表(title: 标题, desc: 描述)[]{ title: '步骤一', desc: '步骤一详细信息'}

在小程序中使用

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

在 page.axml 中引用组件

<!-- 页面使用方式 -->
    <mas-adc-steps options="{{ options }}" active="{{active}}" />

Badges

TNPM version TNPM downloads install size