编辑 | blame | 历史 | 原始文档

luanqing-search

参数简要说明

名称 参数说明 默认值 是否必须

width |组件的输入区域和按钮区域的宽度,值为百分比,如传入10,即屏幕宽度10% |number |非
placehold |组件输入区域的占位填充字符串 |'请输入内容' |非
buttonText |按钮的文字 |'搜索' |非

使用方法:

<template>
	<view class="content">
		<luanqing-search class="search_bar" :width="40" @onSearch="onSearch"></luanqing-search>
	</view>
</template>