luxf 3 dni temu
rodzic
commit
c10640a0f4
1 zmienionych plików z 6 dodań i 2 usunięć
  1. 6 2
      components/common/u-search/index.vue

+ 6 - 2
components/common/u-search/index.vue

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