You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.3 KiB

<template name="button">
<t-button
block="{{block || false}}"
class="{{class || ''}}"
t-class="{{externalClass}}"
disabled="{{disabled || false}}"
data-type="{{type}}"
data-extra="{{extra}}"
icon="{{icon || ''}}"
loading="{{loading || false}}"
theme="{{theme || 'default'}}"
ghost="{{ghost || false}}"
shape="{{shape || 'rectangle'}}"
size="{{size || 'medium'}}"
variant="{{variant || 'base'}}"
open-type="{{openType || ''}}"
hover-stop-propagation="{{hoverStopPropagation || false}}"
hover-start-time="{{hoverStartTime || 20}}"
hover-stay-time="{{hoverStayTime || 70}}"
lang="{{lang || 'en'}}"
session-from="{{sessionFrom || ''}}"
send-message-title="{{sendMessageTitle || ''}}"
send-message-path="{{sendMessagePath || ''}}"
send-message-img="{{sendMessageImg || ''}}"
app-parameter="{{appParameter || ''}}"
show-message-card="{{showMessageCard || false}}"
bind:tap="onTplButtonTap"
bind:getuserinfo="onTplButtonTap"
bind:contact="onTplButtonTap"
bind:getphonenumber="onTplButtonTap"
bind:error="onTplButtonTap"
bind:opensetting="onTplButtonTap"
bind:launchapp="onTplButtonTap"
aria-label="{{ariaLabel || ''}}"
>{{content}}</t-button
>
</template>