<template>
	<view class="event-notice" @click="$emit('click')">
		<view class="notice-left-icon">
			<slot name="leftIcon"></slot>
		</view>
		<view class="notice-content">
			{{content}}
		</view>
		<view class="notice-right-icon">
			<slot name="rightIcon"></slot>
		</view>

	</view>
</template>

<script>
	export default {
		name: "event-notice",
		props: {
			content: {
				type: String,
				default: ''
			},
		},
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss" scoped>
	.event-notice {
		display: flex;
		background-color: #FFF7F2;
		border-radius: 20rpx;
		height: 90rpx;
		align-items: center;
		padding: 10rpx 20rpx;
		.notice-left-icon,.notice-right-icon{
			width: 66rpx;
			height: 66rpx;
			line-height: 66rpx;
			display: flex;
			align-items: center;
			justify-content: center;		}
		.notice-left-icon{
			margin-right: 20rpx;
		}
		.notice-content{
			flex: 1;
			color: #CE7A2C;
			font-weight: bold;
			width: 100%;
			overflow: hidden;
			text-overflow: ellipsis;
			font-size: 32rpx;
		}
	}
</style>