0.0.4 • Published 4 years ago
@mas.io/mas-extract-loan-card v0.0.4
安装
tnpm install --save @mas.io/mas-extract-loan-card
组件介绍
行业小程序公积金提取或贷款卡片信息。
参数说明
属性 | 是否必填 | 参数类型 | 参数说明 | 默认值 | 示例 |
---|---|---|---|---|---|
className | 否 | String | 自定义class | - | - |
title | 是 | String | 标题文案 | - | - |
content | 是 | String | 内容文案 | - | - |
desc | 否 | String | 描述文案 | - | - |
buttonText | 否 | String | 按钮文案,不传默认没有按钮 | - | - |
error | 否 | Boolean | 卡片报错兜底 | false | - |
errorText | 否 | String | 报错兜底文案 | 默认文案 | - |
onClick | 否 | Function | 点击按钮函数 (item: props) => void | - | - |
在小程序中使用
{
"usingComponents": {
"mas-extract-loan-card": "@mas.io/mas-extract-loan-card/es/index"
}
}
在 page.axml 中引用组件
<!-- 页面使用方式 -->
<mas-extract-loan-card
title="我的提取"
content="可以提取"
desc="desc"
buttonText="{{buttonText}}"
onClick="onClick"
error="{{error}}"
/>