<template>
	<u-search 
		:action-style="{'background':'#4A8BFF','color':'#ffffff','width':'142rpx','border-radius':'35rpx',	'position':' absolute','right':'15rpx',' line-height':'64rpx','z-index':'10000000000'}"
		:placeholder="sear"
		 @custom="subtext" 
		 v-model="keyword"
		 @blur="blur"
		 ></u-search>
</template>

<script>
	export default {
		props:{
			sear:{
				type:String,
				default:"搜索我的队友"
			}
		},
		data(){
			return {
				keyword:""
			}
		},
		methods:{
			subtext(val){
				this.$emit('serbtn',{"text":this.keyword})
			},
			blur(val){
				if(val) {
				this.$emit('serbtn',{"text":this.keyword})
				} else {
				this.$emit('serbtn',{"text":0})
				}
			}
		}
	}
</script>

<style>
</style>
