u-modal.wxml 2.1 KB
<view class="data-v-3626fcec"><u-popup vue-id="e28dbccc-1" zoom="{{zoom}}" mode="center" popup="{{false}}" z-index="{{uZIndex}}" length="{{width}}" mask-close-able="{{maskCloseAble}}" border-radius="{{borderRadius}}" negative-top="{{negativeTop}}" value="{{value}}" data-event-opts="{{[['^close',[['popupClose']]],['^input',[['__set_model',['','value','$event',[]]]]]]}}" bind:close="__e" bind:input="__e" class="data-v-3626fcec" bind:__l="__l" vue-slots="{{['default']}}"><view class="u-model data-v-3626fcec"><block wx:if="{{showTitle}}"><view class="u-model__title u-line-1 data-v-3626fcec" style="{{$root.s0}}">{{title}}</view></block><view class="u-model__content data-v-3626fcec"><block wx:if="{{$slots.default||$slots.$default}}"><view style="{{$root.s1}}" class="data-v-3626fcec"><slot></slot></view></block><block wx:else><view class="u-model__content__message data-v-3626fcec" style="{{$root.s2}}">{{content}}</view></block></view><block wx:if="{{showCancelButton||showConfirmButton}}"><view class="u-model__footer u-border-top data-v-3626fcec"><block wx:if="{{showCancelButton}}"><view class="u-model__footer__button data-v-3626fcec" style="{{$root.s3}}" hover-stay-time="{{100}}" hover-class="u-model__btn--hover" data-event-opts="{{[['tap',[['cancel',['$event']]]]]}}" bindtap="__e">{{''+cancelText+''}}</view></block><block wx:if="{{showConfirmButton||$slots['confirm-button']}}"><view class="u-model__footer__button hairline-left data-v-3626fcec" style="{{$root.s4}}" hover-stay-time="{{100}}" hover-class="{{asyncClose?'none':'u-model__btn--hover'}}" data-event-opts="{{[['tap',[['confirm',['$event']]]]]}}" bindtap="__e"><block wx:if="{{$slots['confirm-button']}}"><slot name="confirm-button"></slot></block><block wx:else><block class="data-v-3626fcec"><block wx:if="{{loading}}"><u-loading vue-id="{{('e28dbccc-2')+','+('e28dbccc-1')}}" mode="circle" color="{{confirmColor}}" class="data-v-3626fcec" bind:__l="__l"></u-loading></block><block wx:else><block class="data-v-3626fcec">{{''+confirmText+''}}</block></block></block></block></view></block></view></block></view></u-popup></view>