<!-- #ifdef MP-WEIXIN -->
<uni-icons v-if="key_word" @tap.stop="closeInput(e)" class="input-uni-icon" type="closeempty" size="22" color="#ccc" />
<!-- #endif -->
注意:事件必须要传参,不然无效
closeInput(e) {
// console.log(e);
this.key_word = ''
this.getAllList()
},
uni-app阻止事件冒泡
最新推荐文章于 2023-10-27 07:51:01 发布