Explorar o código

线索池搜索

zhaoxiaohai %!s(int64=3) %!d(string=hai) anos
pai
achega
ab5eace804

+ 7 - 1
pages/threadedTree/modules/search/search.js

@@ -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 - 1
pages/threadedTree/modules/search/search.wxml

@@ -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>