<template>
	<view>
		<u-navbar :title="title" :autoBack="false" placeholder :bgColor="bgColor" titleStyle="color:#ffffff"
			@leftClick="goBack">
			<view slot="left">
				<u-icon v-if="isBack" name="arrow-left" color="#ffffff"></u-icon>
			</view>
		</u-navbar>
	</view>
</template>

<script>
	export default {
		props: {
			title: String,
			isBack: Boolean,
			bgColor: {
				type: String,
				default: '#2c3e50'
			}
		},
		data() {
			return {

			}
		},
		methods: {
			goBack() {
				this.$emit('goBack')
			}
		}
	}
</script>

<style lang="scss" scoped>
	.right-txt {
		color: #ffffff;
		font-size: 24rpx;
	}
	::v-deep .u-navbar__content__title{
		width:69% !important;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}
</style>
