wetoast.wxml 563 Bytes
<!-- wetoast.wxml -->
<template name="wetoast">
	<view class="wetoast {{reveal ? 'wetoast_show' : ''}}">
		<view class="wetoast__mask"></view>
		<view class="wetoast__bd" animation="{{animationData}}">
			<block tt:if="{{img}}">
				<view class="wetoast__bd__img {{imgClassName || ''}}">
					<image class="wetoast__bd__img_desc" src="{{img}}" mode="{{imgMode || 'scaleToFill'}}"></image>
				</view>
			</block>
			<block tt:if="{{title}}">
				<view class="wetoast__bd__title {{titleClassName || ''}}">{{title}}</view>
			</block>
		</view>
	</view>
</template>