<template name="simpleAlert">
	<view :class="[show ? 'animate-show simple-alert' : 'animate-hide simple-alert']">
		<view class="icon simple-icon" :class="['icon-'+icon,  icon]"></view>
		<view class="simple-alert-msg">{{msg}}</view>
	</view>
</template>
<script>
	export default {
		name: "simpleAlert",
		props: {
			icon:{
				type : String,
				default : "msg"
			},
			msg: {
				type: String,
				default: ""
			},
			show:{
				type : Boolean,
				default : false
			}
		}
	}
</script>
<style>
@font-face {font-family: "simple-icon";
  src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAYgAAsAAAAACNgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAABCsP6z7U9TLzIAAAE8AAAARAAAAFY8gUg0Y21hcAAAAYAAAABfAAABnLN3GspnbHlmAAAB4AAAAi4AAAKUUV0dImhlYWQAAAQQAAAAMQAAADYTC6HqaGhlYQAABEQAAAAgAAAAJAfaA3xobXR4AAAEZAAAABAAAAAQEAL/7mxvY2EAAAR0AAAACgAAAAoBlgC8bWF4cAAABIAAAAAfAAAAIAETAGduYW1lAAAEoAAAAUUAAAJtPlT+fXBvc3QAAAXoAAAANwAAAEgYppUxeJxjYGRgYOBikGPQYWB0cfMJYeBgYGGAAJAMY05meiJQDMoDyrGAaQ4gZoOIAgCKIwNPAHicY2BkYWScwMDKwMHUyXSGgYGhH0IzvmYwYuRgYGBiYGVmwAoC0lxTGByesTxTZm7438AQwzyPoR0ozAiSAwDh7gwweJztkEEOgDAIBAeppjEmfUSvHo0P8uTL+40K1IOPcMkQ2BAOC8yAGruRQG4E12WuhK+s4SdO27PVBC210mrv3ykkcZFjmvyzLPzaoh/vpp7awDNuZRC51gH6AM8SEgIAeJxNUc9rE0EUnrezs9OZ7G63+bGbbdeUpM2mVojm10ZUQg0VcioF0YJHwYP/gT8QqpeCF0FQMIGCEA9SPVTJSci5Qg8iFMJ66EE8CUJE8JSNLw2KM4+Pb2befPO+N4QRMt5WCd0mlKjEIh5ZIQSWEhW+lMxAuQG1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uVYY/62xgKOcQWFJQ6MMUIYZIjK6Og7VWb0r7FDwl57Vj3N53RbFNT/c4UBAvTPXFO6stJ5Ok+BPV8bUnV0K27LnpQ0kV7NSRKyQl7WtlRC6gE2ZVeOEXpc0Yk/KGdI/wAJWm7IAAAAeJxjYGKAAC4G7ICFkYmRmZGFkZWBNbWoKL+ItyojNS+9sDS1JLM4I5OtIjMxvyKTgQEApz8KfwA=');
}
.simple-icon {
  font-family:"simple-icon" !important;
  font-size:36rpx;
  font-style:normal;
}
@keyframes simple-show{from {top:-60px;} to {top:0;}}
.animate-show{animation: simple-show 300ms linear forwards;}
@keyframes simple-hide{from {top:0;} to {top:-120px;}}
.animate-hide{animation: simple-hide 300ms linear forwards;}
.icon-error:before { content: "\e604";}
.icon-right:before { content: "\e60f";}
.icon-msg:before { content: "\e623";}
.simple-alert{display:flex; width:90%; padding:25rpx 5%; flex-wrap:nowrap; background:#FFF; position:fixed; z-index:99999; left:0; top:-60px; box-shadow:5px 3px 3px #F7F8F9;}
.simple-alert .right{color:#00B26A !important;}
.simple-alert .error{color:#FF0000 !important;}
.simple-alert .msg{color:#00B26A !important;}
.simple-alert .icon{width:35rpx; line-height:35rpx; justify-content:center; flex-shrink:0; margin-right:12px;}
.simple-alert-msg{line-height:35rpx; font-size:35rpx; overflow:hidden; justify-content:flex-start; width:100%; white-space:nowrap; text-overflow:ellipsis;color: #303133}
</style>