0.0.5 • Published 4 years ago

@mas.io/mas-feedback v0.0.5

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

安装

tnpm install --save @alipay/mas-feedback

组件介绍

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

API

属性必填参数类型参数说明默认值示例
titleString标题反馈建议反馈建议
maxlengthNumber文本框最大输入字符长度200200
placeholderTextString文本框占位符请添加问题描述(必填,至少5个汉字)请添加问题描述
showCountBoolean是否显示文本框的计数truetrue
btnTextString按钮文字提交提交
onSubmitFunction提交时的函数--
onInputValueFunction输入时的函数--
isDisabledBoolean按钮是否禁用falsefalse
minInputLengthNumber最少需要输入的字符串105

在小程序中使用

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

在 page.axml 中引用组件

<!-- 页面使用方式 -->
 <mas-feedback 
  maxlength="{{maxlength}}"
  minInputLength="{{minInputLength}}"
  showCount="{{showCount}}"
  btnText="{{btnText}}"
  placeholderText="{{placeholderText}}"
  title="{{title}}"
  isDisabled="{{isDisabled}}"
  onSubmit="onSubmit"
  onInputValue="onInputValue"
  />

Badges

TNPM version TNPM downloads install size