vant-weapp/dist/button/index.wxml
2018-10-08 17:45:47 +08:00

30 lines
881 B
Plaintext

<button
class="custom-class van-button {{ classes }}"
id="{{ id }}"
open-type="{{ openType }}"
app-parameter="{{ appParameter }}"
hover-stop-propagation="{{ hoverStopPropagation }}"
hover-start-time="{{ hoverStartTime }}"
hover-stay-time="{{ hoverStayTime }}"
lang="{{ lang }}"
session-from="{{ sessionFrom }}"
send-message-title="{{ sendMessageTitle }}"
send-message-path="{{ sendMessagePath }}"
send-message-img="{{ sendMessageImg }}"
show-message-card="{{ showMessageCard }}"
bind:tap="onClick"
bindcontact="bindContact"
bindgetuserinfo="bindGetUserInfo"
bindgetphonenumber="bindGetPhoneNumber"
binderror="bindError"
bindopensetting="bindOpenSetting"
>
<van-loading
wx:if="{{ loading }}"
size="20px"
custom-class="loading-class"
color="{{ type === 'default' ? '#c9c9c9' : '#fff' }}"
/>
<slot wx:else></slot>
</button>