1.0.0 • Published 3 years ago

@mas.io/time-line-item v1.0.0

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

安装

tnpm install --save @alipay/time-line-item

组件介绍

行业小程序时间轴组件,需搭配adc-time-line一起使用,针对支付宝行业的各个不同场景进行定制化开发,满足业务需求。

参数说明

属性必填参数类型参数说明默认值示例
-----------------
leftTimestring左侧内容2021-01-012021-01-01
useLeftSlotboolean左侧是否自定义falsefalse
customStyleobject节点自定义样式{}{background: #000, width: 30rpx, height: 30rpx}
endboolean是否为终点falsefalse

在小程序中使用

{
  "usingComponents": {
    "mas-adc-time-line-item": "@alipay/time-line-item/es/index"
  }
}

在 page.axml 中引用组件

<!-- 页面使用方式 -->
<adc-time-line-item leftTime="2021-01-01"
    customStyle="{{background: '#8a2be2', width: '20rpx', height: '20rpx'}}">
    <view slot="right">右侧内容</view>
 </adc-time-line-item>
<!-- 页面使用方式(左侧自定义) -->
 <adc-time-line-item
    customStyle="{{background: '#8a2be2', width: '20rpx', height: '20rpx'}}">
    <view slot="left">左侧标题</view>
    <view slot="right">右侧内容</view>
 </adc-time-line-item>

Badges

TNPM version TNPM downloads install size