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