<template>
	<view class="niu-tabbar">
		<view class="niu-tabbar__block"></view>
		<view class="niu-tabbar__wrapper">
			<view class="niu-tabbar__item__wrapper" v-for="(item,index) in list">
				<view class="niu-tabbar__item">
					<view class="niu-tabbar__icon">
						<image src="https://i.loli.net/2021/08/02/PEKnxSkbAHdtFfi.png"></image>
					</view>
					<view class="niu-tabbar__text">
						首页
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		data() {
			return {
				list: []
			}
		},
	}
</script>

<style lang="scss" scoped>
	// TODO 底部安全区域
	$height: 110rpx;
	$bg: white;
	.niu-tabbar{
		.niu-tabbar__block{
			height: $height;
		}
		.niu-tabbar__wrapper{
			position: fixed;
			bottom: 0;
			left: 0;
			right: 0;
			height: $height;
			background-color: $bg;
			display: flex;
			justify-content: center;
			align-items: center;
			text-align: center;
			.niu-tabbar__item__wrapper{
				flex: 1;
				width: 0;
				display: flex;
				justify-content: center;
				align-items: center;
				.niu-tabbar__item{
					position: relative;
					padding: 10rpx 20rpx;
					&::after{
						content: "";
						position: absolute;
						right: 0;
						top: 10rpx;
						width: 10rpx;
						height: 10rpx;
						background-color: red;
					}
					.niu-tabbar__icon{
						image{
							width: 55rpx;
							height: 55rpx;
						}
					}
					.niu-tabbar__text{
						line-height: 1;
						font-size: 24rpx;
						color: #333333;
						padding-top: 5rpx;
					}
				}
			}
		}
	}
</style>
