v3.0.6
This commit is contained in:
16
source/wx/xzs-student/component/iView/toast/index.wxml
Normal file
16
source/wx/xzs-student/component/iView/toast/index.wxml
Normal file
@@ -0,0 +1,16 @@
|
||||
<view class="i-toast-mask" wx:if="{{ visible && mask }}" bindtap="handleHide"></view>
|
||||
<view class="i-class i-toast" wx:if="{{ visible }}">
|
||||
<block wx:if="{{ type !== 'default' }}">
|
||||
<view class="i-toast-type">
|
||||
<i-icon i-class="i-toast-icon" type="success" wx:if="{{ type === 'success' }}"></i-icon>
|
||||
<i-icon i-class="i-toast-icon" type="prompt" wx:elif="{{ type === 'warning' }}"></i-icon>
|
||||
<i-icon i-class="i-toast-icon" type="delete" wx:elif="{{ type === 'error' }}"></i-icon>
|
||||
<view class="i-toast-icon i-toast-loading" wx:elif="{{ type === 'loading' }}"></view>
|
||||
</view>
|
||||
</block>
|
||||
<block wx:else>
|
||||
<i-icon i-class="i-toast-icon" type="{{ icon }}" wx:if="{{ icon }}"></i-icon>
|
||||
<image class="i-toast-image" src="{{ image }}" wx:if="{{ image }}" mode="aspectFit"></image>
|
||||
</block>
|
||||
<view class="i-toast-content" wx:if="{{ content }}">{{ content }}</view>
|
||||
</view>
|
||||
Reference in New Issue
Block a user