vant搜索框问题


最近使用vant搜索框时发现,当输入内容点击一次搜索有数据,点击错号把内容去掉再点击搜索,都没进入点击搜索方法。

解决方法:把bindtop改成bindtouchstart

<van-search value="{{ seaValue }}" placeholder="搜索礼品名称" use-action-slot="true" bind:change="onChange" bind:search="onSearch">
<view slot="action" bindtouchstart="onSearch">搜索</view>
</van-search>


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM