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.
 
 
 
 
xuan-pay-cweb/unpackage/dist/dev/mp-weixin/components/wyb-popup/wyb-popup.wxml

1 lines
2.6 KiB

<block wx:if="{{isShow}}"><view><view data-event-opts="{{[['tap',[['',['$event']]]],['touchmove',[['',['$event']]]]]}}" class="wyb-popup-box" style="{{'transition-duration:'+(duration+'ms')+';'+('opacity:'+(contentOpacity||(type==='center'?0:1))+';')+('transform:'+(contentTransform||autoTransform)+';')+('z-index:'+(zIndex)+';')+('border-top-right-radius:'+(type==='center'||type==='bottom'||type==='left'?radius+'px':0)+';')+('border-top-left-radius:'+(type==='center'||type==='bottom'||type==='right'?radius+'px':0)+';')+('border-bottom-right-radius:'+(type==='center'||type==='top'||type==='left'?radius+'px':0)+';')+('border-bottom-left-radius:'+(type==='center'||type==='top'||type==='right'?radius+'px':0)+';')+('width:'+(autoWidth)+';')+('height:'+(autoHeight)+';')+('min-width:'+(width+'rpx')+';')+('min-height:'+(height+'rpx')+';')+('top:'+(sizeChange&&type==='center'?winReTop:autoTop)+';')+('bottom:'+(autoBottom)+';')+('left:'+(autoLeft)+';')+('right:'+(autoRight)+';')+('background-color:'+(bgColor)+';')}}" catchtap="__e" catchtouchmove="__e"><block wx:if="{{showCloseIcon}}"><view class="wyb-popup-close" style="{{'width:'+(closeIcon?closeIconSize+'rpx':'auto')+';'+('height:'+(closeIcon?closeIconSize+'rpx':'auto')+';')+('top:'+(closeIconPos==='top-right'||closeIconPos==='top-left'?vertOffset+'rpx':'auto')+';')+('bottom:'+(closeIconPos==='bottom-right'||closeIconPos==='bottom-left'?vertOffset+'rpx':'auto')+';')+('left:'+(closeIconPos==='bottom-left'||closeIconPos==='top-left'?horiOffset+'rpx':'auto')+';')+('right:'+(closeIconPos==='bottom-right'||closeIconPos==='top-right'?horiOffset+'rpx':'auto')+';')}}"><block wx:if="{{showCloseIcon&&closeIcon}}"><image class="wyb-popup-custom-close" style="{{'width:'+(closeIconSize+'rpx')+';'+('height:'+(closeIconSize+'rpx')+';')}}" src="{{closeIcon}}" data-event-opts="{{[['tap',[['hide',['$event']]]]]}}" bindtap="__e"></image></block><block wx:if="{{showCloseIcon&&!closeIcon}}"><view data-event-opts="{{[['tap',[['hide',['$event']]]]]}}" class="iconfont icon-close" bindtap="__e"></view></block></view></block><scroll-view class="wyb-popup-container" style="{{'width:'+(autoWidth)+';'+('height:'+(autoHeight)+';')}}" enable-flex="{{true}}" scroll-y="{{scrollY}}" scroll-x="{{scrollX}}"><view class="wyb-popup-slot"><slot></slot></view></scroll-view></view><view data-event-opts="{{[['tap',[['close',['$event']]]],['touchmove',[['',['$event']]]]]}}" class="wyb-popup-mask" style="{{'opacity:'+(maskOpacity)+';'+('transition-duration:'+(duration+'ms')+';')+('background-color:'+('rgba(0, 0, 0, '+maskAlpha+')')+';')+('z-index:'+(zIndex-1)+';')}}" catchtap="__e" catchtouchmove="__e"></view></view></block>