From 3a6fdf3b2f4412e335657aca9f4ecd8fd2d8a407 Mon Sep 17 00:00:00 2001 From: "Mr.jiang" <714156421@qq.com> Date: Wed, 21 Aug 2024 10:46:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=BA=E8=A1=8C=E6=96=B9=E5=BC=8F=20?= =?UTF-8?q?=E5=8F=96=E6=B6=88=20=E6=B8=85=E7=A9=BA=E5=85=8D=E8=B4=B9?= =?UTF-8?q?=E5=85=AC=E9=87=8C=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/u-action-sheets.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/u-action-sheets.vue b/components/u-action-sheets.vue index 4804269..e3e2d6f 100644 --- a/components/u-action-sheets.vue +++ b/components/u-action-sheets.vue @@ -138,15 +138,13 @@ return this.zIndex ? this.zIndex : this.$u.zIndex.popup; } }, - mounted() { - console.log("listShow",this.listShow) - }, methods: { chuzuInp(e){ this.chuzuValue=e.detail.value }, // 点击取消按钮 close() { + this.inpValue='' // 发送input事件,并不会作用于父组件,而是要设置组件内部通过props传递的value参数 // 这是一个vue发送事件的特殊用法 this.popupClose(); @@ -154,6 +152,7 @@ }, // 弹窗关闭 popupClose() { + this.inpValue='' this.$emit('input', false); }, // 点击某一个item