mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-05-21 05:50:47 +08:00
refactor(button): rename dataset to detail
This commit is contained in:
parent
a5d33c22bd
commit
f502fe9add
@ -140,7 +140,7 @@
|
||||
| send-message-path | 会话内消息卡片点击跳转小程序路径 | _string_ | 当前分享路径 | - |
|
||||
| send-message-img | sendMessageImg | _string_ | 截图 | - |
|
||||
| show-message-card | 显示会话内消息卡片 | _string_ | `false` | - |
|
||||
| dataset | 按钮 dataset,open-type 为 `share` 时,可在 onShareAppMessage 事件的 `event.target.dataset.data` 中看到传入的值 | _any_ | - | - |
|
||||
| dataset | 按钮 dataset,open-type 为 `share` 时,可在 onShareAppMessage 事件的 `event.target.dataset.detail` 中看到传入的值 | _any_ | - | - |
|
||||
|
||||
### Events
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
<button
|
||||
id="{{ id }}"
|
||||
data-data="{{ dataset }}"
|
||||
data-detail="{{ dataset }}"
|
||||
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"
|
||||
lang="{{ lang }}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user