feat:添加按钮点击效果
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
<wxs src="../wxs/base.wxs" module="Utils" />
|
||||
<wxs module="wxs" src="./button.wxs"></wxs>
|
||||
<!-- <view class="keyboard" bind:touchstart="{{wxs.keypadTouchStart}}" bind:touchend="{{wxs.keypadTouchEnd}}"> -->
|
||||
|
||||
<button
|
||||
data-id="test-toy-button-id"
|
||||
class="toy-button toy-button--{{type}} {{ disabled ? 'toy-button--disabled' : '' }} {{Utils.classNames({disabled: disabled, loading: loading })}}"
|
||||
data-disabled="{{disabled}}"
|
||||
data-loading="{{loading}}"
|
||||
style="{{style}};{{width ? 'width:' + width + ';' : ''}};{{height ? 'height:' + height + ';' : ''}}"
|
||||
session-from="{{ sessionFrom }}"
|
||||
send-message-title="{{ sendMessageTitle }}"
|
||||
@@ -10,7 +15,9 @@
|
||||
show-message-card="{{ showMessageCard }}"
|
||||
app-parameter="{{ appParameter }}"
|
||||
aria-label="{{ ariaLabel }}"
|
||||
bindtap="{{ disabled || loading ? '' : 'onClick' }}"
|
||||
bind:touchstart="{{wxs.touchStart}}"
|
||||
bind:touchend="{{wxs.touchEnd}}"
|
||||
bind:tap="{{ disabled || loading ? '' : 'onClick'}}"
|
||||
bindgetuserinfo="onGetUserInfo"
|
||||
bindcontact="onContact"
|
||||
bindgetphonenumber="onGetPhoneNumber"
|
||||
|
||||
Reference in New Issue
Block a user