epmet 工作端 小程序
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.

60 lines
2.8 KiB

<view class="wux-class {{ classes.wrap }}">
<view class="{{ classes.hd }}">
<view wx:if="{{ resultIcon }}" class="{{ classes.icon }}">
<icon type="{{ resultIcon.type }}" size="{{ resultIcon.size }}" color="{{ resultIcon.color }}" />
</view>
<block wx:else>
<slot name="header"></slot>
</block>
</view>
<view class="{{ classes.bd }}">
<view wx:if="{{ title }}" class="{{ classes.title }}">{{ title }}</view>
<view wx:if="{{ label }}" class="{{ classes.desc }}">{{ label }}</view>
<view wx:if="{{ buttons.length }}" class="{{ classes.buttons }}">
<block wx:for="{{ buttons }}" wx:for-item="button" wx:key="index">
<wux-button
type="{{ button.type || 'stable' }}"
clear="{{ button.clear || false }}"
block="{{ button.block || false }}"
full="{{ button.full || false }}"
outline="{{ button.outline || false }}"
size="{{ button.size || 'default' }}"
disabled="{{ button.disabled || false }}"
loading="{{ button.loading || false }}"
form-type="{{ button.formType || '' }}"
open-type="{{ button.openType || '' }}"
hover-stop-propagation="{{ button.hoverStopPropagation || false }}"
hover-start-time="{{ button.hoverStartTime || 20 }}"
hover-stay-time="{{ button.hoverStayTime || 70 }}"
lang="{{ button.lang || 'en' }}"
bind:getuserinfo="bindgetuserinfo"
session-from="{{ button.sessionFrom || '' }}"
send-message-title="{{ button.sendMessageTitle || '' }}"
send-message-path="{{ button.sendMessagePath || '' }}"
send-message-img="{{ button.sendMessageImg || '' }}"
show-message-card="{{ button.showMessageCard || false }}"
bind:contact="bindcontact"
bind:getphonenumber="bindgetphonenumber"
app-parameter="{{ button.appParameter || '' }}"
bind:error="onError"
bind:opensetting="bindopensetting"
bind:launchapp="bindlaunchapp"
bind:chooseavatar="bindchooseavatar"
data-index="{{ index }}"
bind:click="onClick"
>
{{ button.text }}
</wux-button>
</block>
</view>
<slot></slot>
</view>
<view class="{{ classes.ft }}">
<block wx:if="{{ extra }}">
<text>{{ extra }}</text>
</block>
<block wx:else>
<slot name="footer"></slot>
</block>
</view>
</view>