index.wxml 2.2 KB
Newer Older
5
520MianXiangDuiXiang520 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
<wux-animation-group wux-class="{{ classes.wrap }}" in="{{ visible }}" classNames="{{ classNames }}">
    <view class="{{ classes.bd }}">
        <image src="{{ icon }}" class="{{ classes.icon }}" wx:if="{{ icon }}" />
        <view class="{{ classes.title }}" wx:if="{{ title }}">{{ title }}</view>
        <view class="{{ classes.text }}" wx:if="{{ text }}">{{ text }}</view>
        <view class="{{ classes.buttons }}" wx:if="{{ buttons && !!buttons.length }}">
            <block wx:for="{{ buttons }}" wx:for-item="button" wx:key="index">
                <button
                    class="{{ classes.button[index].wrap }}"
                    type="{{ button.type || 'default' }}"
                    size="{{ button.size || 'default' }}"
                    loading="{{ button.loading }}"
                    plain="{{ button.plain }}"
                    disabled="{{ button.disabled }}"
                    form-type="{{ button.formType }}"
                    open-type="{{ button.openType }}"
                    hover-class="{{ !button.disabled ? classes.button[index].hover : 'none' }}"
                    hover-stop-propagation="{{ button.hoverStopPropagation }}"
                    hover-start-time="{{ button.hoverStartTime }}"
                    hover-stay-time="{{ button.hoverStayTime }}"
                    lang="{{ button.lang }}"
                    bindgetuserinfo="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 }}"
                    bindcontact="bindcontact"
                    bindgetphonenumber="bindgetphonenumber"
                    app-parameter="{{ button.appParameter }}"
                    binderror="onError"
                    bindopensetting="bindopensetting"
                    bindtap="onTap"
                    data-index="{{ index }}"
                >
                    {{ button.text }}
                </button>
            </block>
        </view>
    </view>
</wux-animation-group>