1.0.0 • Published 3 years ago
@mas.io/adc-address-item v1.0.0
安装
tnpm install --save @alipay/adc-address-item
组件介绍
收货地址管理组件
参数说明
属性 | 必填 | 参数类型 | 参数说明 | 默认值 | 示例 |
---|---|---|---|---|---|
tableList | 是 | Array | 收货地址列表 | [] | {} |
tableList.name | 是 | string | 收货人 | '' | 张三 |
tableList.mobile | 是 | string | 手机号 | '' | 13300010002 |
tableList.region | 是 | Array | 所在地区 | [] | '四川','成都','武侯区' |
tableList.regionCode | 是 | Array | 所在地区编码 | [] | '510000', '510100', '510107' |
tableList.address | 是 | string | 详细地址 | '' | '天府三街xxx号' |
tableList.isDefault | 是 | Boolean | 默认地址 | false | true |
onDelItem | 否 | Function | 删除地址 | null | ()=>{} |
onEditItem | 否 | Function | 编辑地址 | null | ()=>{} |
onTap | 否 | Function | 点击地址 | null | ()=>{} |
在小程序中使用
{
"usingComponents": {
"mas-adc-address-item": "@alipay/adc-address-item/es/index"
}
}
在 page.axml 中引用组件
<!-- 页面使用方式 -->
<view>
<adc-address-item onTap="itemTap" tableList="{{addressList}}" onDelItem="onDelItem" onEditItem="onEditItem"></adc-address-item>
</view>
Badges
1.0.0
3 years ago