From 72d6b174911cd6cf10eba8594c0bc6f4fe482668 Mon Sep 17 00:00:00 2001 From: HiNaruta Date: Wed, 7 Aug 2024 17:00:26 +0800 Subject: [PATCH] =?UTF-8?q?fix-=E4=B8=8B=E6=8B=89=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E4=BC=A0=E5=85=A5=E6=AD=A3=E7=A1=AEdirection,=E5=87=BA?= =?UTF-8?q?=E7=8E=B0=E9=94=99=E8=AF=AF=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix-下拉菜单传入正确direction,出现错误警告 --- .../wot-design-uni/components/wd-drop-menu/wd-drop-menu.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uni_modules/wot-design-uni/components/wd-drop-menu/wd-drop-menu.vue b/src/uni_modules/wot-design-uni/components/wd-drop-menu/wd-drop-menu.vue index 5fe51a4fd..7d35da650 100644 --- a/src/uni_modules/wot-design-uni/components/wd-drop-menu/wd-drop-menu.vue +++ b/src/uni_modules/wot-design-uni/components/wd-drop-menu/wd-drop-menu.vue @@ -56,7 +56,7 @@ linkChildren({ props, fold, offset }) watch( () => props.direction, (newValue) => { - if (['up', 'down'].includes(newValue)) { + if (!['up', 'down'].includes(newValue)) { // eslint-disable-next-line quotes console.error("[wot design] warning(wd-drop-menu): direction must be 'up' or 'down'") }