仿互站小程序
This commit is contained in:
12
vant/toast/index.wxml
Normal file
12
vant/toast/index.wxml
Normal file
@@ -0,0 +1,12 @@
|
||||
<van-overlay mask="{{mask}}" show="{{show}}" zIndex="{{zIndex}}" wx:if="{{mask||forbidClick}}"></van-overlay>
|
||||
<van-transition customClass="van-toast__container" customStyle="z-index: {{zIndex}}" show="{{show}}">
|
||||
<view catch:touchmove="noop" class="van-toast van-toast--{{type==='text'?'text':'icon'}} van-toast--{{position}}">
|
||||
<text wx:if="{{type==='text'}}">{{message}}</text>
|
||||
<block wx:else>
|
||||
<van-loading color="white" customClass="van-toast__loading" type="{{loadingType}}" wx:if="{{type==='loading'}}"></van-loading>
|
||||
<van-icon class="van-toast__icon" name="{{type}}" wx:else></van-icon>
|
||||
<text class="van-toast__text" wx:if="{{message}}">{{message}}</text>
|
||||
</block>
|
||||
<slot></slot>
|
||||
</view>
|
||||
</van-transition>
|
Reference in New Issue
Block a user