@@ -3,6 +3,9 @@ Component({
properties: {
inputSharch: {
type: Function
+ },
+ selectSort: {
+ type: Function
}
},
data: {
@@ -27,6 +30,9 @@ Component({
this.setData({
isClear: true
})
- }
+ handleSort() {
+ this.triggerEvent("selectSort")
@@ -1,5 +1,5 @@
<van-search value="{{ value }}" shape="round" bind:change='textChange' bind:clear='onClear' bind:search='textChange' background="var(--bgColor)" use-action-slot placeholder="请输入搜索关键词">
<view slot='action' class="right">
- <text class="iconfont icon-paixu" />
+ <text class="iconfont icon-paixu" catchtap="handleSort" />
</view>
</van-search>