Commit 5e26b6ab authored by “yiyousong”'s avatar “yiyousong”

fix:修改搜索

parent 12d6c8ae
...@@ -45,6 +45,7 @@ export default { ...@@ -45,6 +45,7 @@ export default {
}, },
handleClose() { handleClose() {
this.$emit("clear"); this.$emit("clear");
this.$emit("input", "");
}, },
}, },
}; };
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
slot="search" slot="search"
width="834px" width="834px"
@click="handleSearch" @click="handleSearch"
@clear="handleClear"
v-model="searchVal" v-model="searchVal"
></SearchBox> ></SearchBox>
</PageTop> </PageTop>
...@@ -170,9 +169,9 @@ export default { ...@@ -170,9 +169,9 @@ export default {
this.visible = true; this.visible = true;
}, },
// 重置搜索 // 重置搜索
handleClear() { // handleClear() {
this.searchVal = ""; // this.searchVal = "";
}, // },
}, },
}; };
</script> </script>
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
width="834px" width="834px"
v-model="searchVal" v-model="searchVal"
@click="handleSearch" @click="handleSearch"
@clear="handleClear"
></SearchBox> ></SearchBox>
</PageTop> </PageTop>
<!-- 事项列表 --> <!-- 事项列表 -->
...@@ -150,9 +149,9 @@ export default { ...@@ -150,9 +149,9 @@ export default {
this.visible = true; this.visible = true;
}, },
// 重置搜索 // 重置搜索
handleClear() { // handleClear() {
this.searchVal = ""; // this.searchVal = "";
}, // },
}, },
}; };
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment