From 287a80b03f9dafafa08f1231834813efee3d0d2c Mon Sep 17 00:00:00 2001 From: xiaocaiji <50451924+2462870727@users.noreply.github.com> Date: Thu, 19 Aug 2021 15:37:27 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9loading=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E4=B8=8B=E7=82=B9=E5=87=BB=E8=BF=98=E8=A7=A6=E5=8F=91comfir?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改loading状态下点击还触发comfir事件 --- uview-ui/components/u-modal/u-modal.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/uview-ui/components/u-modal/u-modal.vue b/uview-ui/components/u-modal/u-modal.vue index ce581133..38016615 100644 --- a/uview-ui/components/u-modal/u-modal.vue +++ b/uview-ui/components/u-modal/u-modal.vue @@ -208,6 +208,7 @@ methods: { confirm() { // 异步关闭 + if(this.loading) return if (this.asyncClose) { this.loading = true; } else { From 9665c3c8c751a06ae1531af355ac142350e58335 Mon Sep 17 00:00:00 2001 From: xiaocaiji <50451924+2462870727@users.noreply.github.com> Date: Thu, 19 Aug 2021 15:51:52 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9swiper=E9=BB=98=E8=AE=A4c?= =?UTF-8?q?urrent=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uview-ui/components/u-swiper/u-swiper.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/uview-ui/components/u-swiper/u-swiper.vue b/uview-ui/components/u-swiper/u-swiper.vue index b6e7e819..215a3605 100644 --- a/uview-ui/components/u-swiper/u-swiper.vue +++ b/uview-ui/components/u-swiper/u-swiper.vue @@ -178,7 +178,10 @@ // 监听外部current的变化,实时修改内部依赖于此测uCurrent值,如果更新了current,而不是更新uCurrent, // 就会错乱,因为指示器是依赖于uCurrent的 current(n) { - this.uCurrent = n; + // list长度不为0,则 初始uCurrent 为1 , 否则默认为 0 + if(this.list.length){ + this.uCurrent = n; + } } }, data() {