Skip to content

Instantly share code, notes, and snippets.

@zhangkn
Last active May 24, 2018 08:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhangkn/6214448f19752e49a567c9682c692752 to your computer and use it in GitHub Desktop.
Save zhangkn/6214448f19752e49a567c9682c692752 to your computer and use it in GitHub Desktop.
属性名 类型 说明 最低版本
report-submit Boolean 是否返回 formId 用于发送模板消息
bindsubmit EventHandle 携带 form 中的数据触发 submit 事件,event.detail = {value : {'name': 'value'} , formId: ''}
bindreset EventHandle 表单重置时会触发 reset 事件
<!-- ``` -->
<form report-submit bindsubmit="">
<button class="-btn" formType="submit"></button>
</form>
<!-- ``` -->
// ```js
Request('///Click', { xxx_form_id: event.detail.formId })
// ```
formSubmit: function(e) {
console.log('form发生了submit事件,携带数据为:', e.detail.value)
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment