属性名 | 类型 | 说明 | 最低版本 |
---|---|---|---|
report-submit | Boolean | 是否返回 formId 用于发送模板消息 | |
bindsubmit | EventHandle | 携带 form 中的数据触发 submit 事件,event.detail = {value : {'name': 'value'} , formId: ''} | |
bindreset | EventHandle | 表单重置时会触发 reset 事件 |
Last active
May 24, 2018 08:23
-
-
Save zhangkn/6214448f19752e49a567c9682c692752 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- ``` --> | |
<form report-submit bindsubmit=""> | |
<button class="-btn" formType="submit"></button> | |
</form> | |
<!-- ``` --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ```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