mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
parent
3a37327ec1
commit
1dc1960694
@ -142,6 +142,7 @@
|
|||||||
| send-message-img | sendMessageImg | _string_ | 截图 | - |
|
| send-message-img | sendMessageImg | _string_ | 截图 | - |
|
||||||
| show-message-card | 显示会话内消息卡片 | _string_ | `false` | - |
|
| show-message-card | 显示会话内消息卡片 | _string_ | `false` | - |
|
||||||
| dataset | 按钮 dataset,open-type 为 `share` 时,可在 onShareAppMessage 事件的 `event.target.dataset.detail` 中看到传入的值 | _any_ | - | - |
|
| dataset | 按钮 dataset,open-type 为 `share` 时,可在 onShareAppMessage 事件的 `event.target.dataset.detail` 中看到传入的值 | _any_ | - | - |
|
||||||
|
| form-type | 用于 form 组件,可选值为`submit` `reset`,点击分别会触发 form 组件的 submit/reset 事件 | _string_ | - | - |
|
||||||
|
|
||||||
### Events
|
### Events
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ import { button } from '../mixins/button';
|
|||||||
import { openType } from '../mixins/open-type';
|
import { openType } from '../mixins/open-type';
|
||||||
|
|
||||||
VantComponent({
|
VantComponent({
|
||||||
mixins: [button, openType],
|
mixins: [button, openType, 'wx://form-field-button'],
|
||||||
|
|
||||||
classes: ['hover-class', 'loading-class'],
|
classes: ['hover-class', 'loading-class'],
|
||||||
|
|
||||||
@ -12,6 +12,7 @@ VantComponent({
|
|||||||
},
|
},
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
|
formType: String,
|
||||||
icon: String,
|
icon: String,
|
||||||
classPrefix: {
|
classPrefix: {
|
||||||
type: String,
|
type: String,
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
class="custom-class {{ utils.bem('button', [type, size, { block, round, plain, square, loading, disabled, hairline, unclickable: disabled || loading }]) }} {{ hairline ? 'van-hairline--surround' : '' }}"
|
class="custom-class {{ utils.bem('button', [type, size, { block, round, plain, square, loading, disabled, hairline, unclickable: disabled || loading }]) }} {{ hairline ? 'van-hairline--surround' : '' }}"
|
||||||
hover-class="van-button--active hover-class"
|
hover-class="van-button--active hover-class"
|
||||||
lang="{{ lang }}"
|
lang="{{ lang }}"
|
||||||
|
form-type="{{ formType }}"
|
||||||
style="{{ baseStyle }} {{ customStyle }}"
|
style="{{ baseStyle }} {{ customStyle }}"
|
||||||
open-type="{{ disabled ? '' : openType }}"
|
open-type="{{ disabled ? '' : openType }}"
|
||||||
business-id="{{ businessId }}"
|
business-id="{{ businessId }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user