<template>
	<view class="my-search-content" :style="{'background-color' : bgcolor}" @click="efn">
		<view class="my-search-box" :style="{'border-radius':radius}">
			<uni-icons type="search" size="17"></uni-icons>
			<text class="place">搜索</text>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			bgcolor:{
				type:String,
				default:'#c00000'
			},
			radius:{
				type:Number,
				default:18
			}
		},
		name:"my-search",
		data() {
			return {
				
			};
		},
		methods:{
			efn(){
				this.$emit('mgs')
			}
		}
	}
</script>

<style lang="scss">
	.my-search-content{
		height: 100rpx;
		display: flex;
		align-items: center;
		padding: 0 10px 0 10px;
		.my-search-box{
			width: 100%;
			height: 78rpx;
			background-color:#ffffff;
			display: flex;
			align-items: center;
			justify-content: center;
			.place{
				font-size: 30rpx;
			}
		}
	}
</style>