refactor(button): rename dataset to detail

This commit is contained in:
rex 2020-05-01 14:53:45 +08:00
parent a5d33c22bd
commit f502fe9add
2 changed files with 2 additions and 2 deletions

View File

@ -140,7 +140,7 @@
| send-message-path | 会话内消息卡片点击跳转小程序路径 | _string_ | 当前分享路径 | - | | send-message-path | 会话内消息卡片点击跳转小程序路径 | _string_ | 当前分享路径 | - |
| send-message-img | sendMessageImg | _string_ | 截图 | - | | send-message-img | sendMessageImg | _string_ | 截图 | - |
| show-message-card | 显示会话内消息卡片 | _string_ | `false` | - | | show-message-card | 显示会话内消息卡片 | _string_ | `false` | - |
| dataset | 按钮 datasetopen-type 为 `share` 时,可在 onShareAppMessage 事件的 `event.target.dataset.data` 中看到传入的值 | _any_ | - | - | | dataset | 按钮 datasetopen-type 为 `share` 时,可在 onShareAppMessage 事件的 `event.target.dataset.detail` 中看到传入的值 | _any_ | - | - |
### Events ### Events

View File

@ -2,7 +2,7 @@
<button <button
id="{{ id }}" 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' : '' }}" 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 }}"