jiaqingjiayi-xiaochengxu/甲情_甲意/miniprogram/node_modules/antd-mini/less/Toast/index.axml

52 lines
1.2 KiB
Plaintext
Raw Normal View History

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