@@ -46,8 +46,12 @@
},
mounted() {},
methods: {
- query(e) {
- this.searchKeyword = e.detail
+ query(val) {
+ this.searchKeyword = val
+ this.$emit('input', this.searchKeyword)
+ this.$emit('change', {
+ detail: this.searchKeyword
+ })
onClickSearch() {
this.$emit('search')