<template>
	<view>
		<view class="ipt-area">
			<uni-easyinput
				placeholder="请输入关键字" 
				v-model="iptVal"
				suffixIcon="search"
				@iconClick="clickSearch()"
			>
			</uni-easyinput>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				iptVal: ''
			}
		},
		methods: {
			clickSearch () {
				console.log(this.iptVal);
			}
		}
	}
</script>

<style lang="scss">
	.ipt-area{
		width: 95%;
		margin: 20rpx auto;
	}
</style>
