From 0f382fbdf836680f221282411cb1f6bd8f6c4a19 Mon Sep 17 00:00:00 2001 From: loopzhou <363415642@qq.com> Date: Fri, 29 Mar 2024 14:31:16 +0800 Subject: [PATCH] =?UTF-8?q?fix(checkbox):=20checkboxGroup.max=20=E7=A6=81?= =?UTF-8?q?=E7=94=A8=E6=80=81=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/checkbox/checkbox.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/checkbox/checkbox.tsx b/src/checkbox/checkbox.tsx index aef8b7a34..9b4343330 100644 --- a/src/checkbox/checkbox.tsx +++ b/src/checkbox/checkbox.tsx @@ -1,5 +1,5 @@ import { - defineComponent, ref, toRefs, inject, watch, onBeforeUnmount, computed, nextTick, + defineComponent, ref, toRefs, inject, watch, onBeforeUnmount, computed, } from '@vue/composition-api'; import props from './props'; import { @@ -155,9 +155,9 @@ export default defineComponent({ * checked state can influence disabled state because of `max`, * therefore we need to update disabled state after checked state changed */ - nextTick(() => { + setTimeout(() => { handleParentDisabled(data); - }); + }, 0); if (data.checkboxName) { tName.value = data.checkboxName; }