From 089a98953e01d6b7cb0003f33d321035e19311c5 Mon Sep 17 00:00:00 2001 From: xachary <179740385@qq.com> Date: Sat, 16 Dec 2023 21:33:44 +0800 Subject: [PATCH] fix: watch open logic lost after build (#3421) * fix: watch open logic lost after build * fix: drawer for better understand --- src/components/Drawer/src/BasicDrawer.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Drawer/src/BasicDrawer.vue b/src/components/Drawer/src/BasicDrawer.vue index 05bd2fba1..ba1d5e516 100644 --- a/src/components/Drawer/src/BasicDrawer.vue +++ b/src/components/Drawer/src/BasicDrawer.vue @@ -135,7 +135,9 @@ (open) => { nextTick(() => { emit('open-change', open); - instance && drawerInstance.emitOpen?.(open, instance.uid); + if (instance && drawerInstance.emitOpen) { + drawerInstance.emitOpen(open, instance.uid); + } }); }, );