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