1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <view
- a:if="{{ show }}"
- class="ant-toast {{ className || '' }} {{ icon || image || type ? 'ant-toast-icon-wrapper' : '' }}"
- style="{{ style || '' }}">
- <view
- a:if="{{ type }}"
- class="ant-toast-normal">
- <loading
- a:if="{{ type === 'loading' }}"
- type="mini" />
- <am-icon
- a:elif="{{ type === 'warning' }}"
- type="ExclamationOutline"
- className="ant-toast-icon" />
- <am-icon
- a:elif="{{ type === 'error' }}"
- type="CloseOutline"
- className="ant-toast-icon" />
- <am-icon
- a:elif="{{ type === 'success' }}"
- type="CheckOutline"
- className="ant-toast-icon" />
- </view>
- <am-icon
- a:elif="{{ icon }}"
- type="{{ icon }}"
- className="ant-toast-icon" />
- <view
- a:elif="{{ image }}"
- style="background-image: url({{ image }})"
- class="ant-toast-image" />
- <view class="ant-toast-text-body">
- <view class="ant-toast-text-box">
- <view class="ant-toast-text-content">{{ content.substring(0, 24) }}</view>
- </view>
- </view>
- </view>
- <mask
- a:if="{{ show && showMask }}"
- className="ant-toast-mask"
- show="{{ true }}"
- onMaskTap="handleClickMask"
- style="{{ maskStyle }}" />
|