44 lines
1.4 KiB
Plaintext
44 lines
1.4 KiB
Plaintext
<button
|
|
data-custom="{{ customDataset }}"
|
|
class="{{className}} {{prefix}}-class"
|
|
form-type="{{type}}"
|
|
open-type="{{disabled ? '' : openType}}"
|
|
hover-stop-propagation="{{hoverStopPropagation}}"
|
|
hover-start-time="{{hoverStartTime}}"
|
|
hover-stay-time="{{hoverStayTime}}"
|
|
lang="{{lang}}"
|
|
session-from="{{sessionFrom}}"
|
|
hover-class="{{variant == 'text' ? 'none' : 'button-hover'}}"
|
|
send-message-title="{{sendMessageTitle}}"
|
|
send-message-path="{{sendMessagePath}}"
|
|
send-message-img="{{sendMessageImg}}"
|
|
app-parameter="{{appParameter}}"
|
|
show-message-card="{{showMessageCard}}"
|
|
catch:tap="handleTap"
|
|
bind:getuserinfo="getuserinfo"
|
|
bind:contact="contact"
|
|
bind:getphonenumber="getphonenumber"
|
|
bind:error="error"
|
|
bind:opensetting="opensetting"
|
|
bind:launchapp="launchapp"
|
|
bind:chooseavatar="chooseavatar"
|
|
>
|
|
<t-icon
|
|
wx:if="{{icon || iconProps.name}}"
|
|
name="{{icon || iconProps.name}}"
|
|
prefix="{{iconProps.prefix}}"
|
|
size="{{iconProps.size}}"
|
|
color="{{iconProps.color}}"
|
|
customStyle="{{iconProps.customStyle}}"
|
|
class="{{classPrefix}}__icon {{prefix}}-class-icon"
|
|
></t-icon>
|
|
<view wx:if="{{loading}}" class="{{classPrefix}}--loading {{prefix}}-class-loading">
|
|
<view class="{{classPrefix}}__circular"></view>
|
|
</view>
|
|
<view class="{{classPrefix}}__content">
|
|
<slot name="content" />
|
|
<block>{{content}}</block>
|
|
<slot />
|
|
</view>
|
|
</button>
|