<template>
	<view class="navbar">
		<div class="leftClick" 
		v-if="leftClick"
		@click="leftClick">
			<uni-icons color="#fff" type="left" size="20rpx"></uni-icons>
		</div>
		<div>{{ title }}</div>
	</view>
</template>

<script>
	export default {
		name:"m-navbar",
		props : ['leftClick', 'title'],
		data() {
			return {
				
			};
		},
		methods : {
		}
	}
</script>

<style scoped lang="scss">
.navbar{
	position: sticky;
	top: 0;
	width: 100%;
	height: 90rpx;
	background: linear-gradient(to right, #ecb978, #ffe6ed);
	display: flex;
	justify-content: center;
	align-items: center;
	color: $uni-color;
	font-size: 26rpx;
	z-index: 9999;
	.leftClick{
		position: absolute;
		left: 0px;
		top: 0;
		width: 80rpx;
		height: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
	}
}
.navbar-b{
	height: 90rpx;
}
</style>