Skip to content

Commit 35507a1

Browse files
authored
fix: 🐛 修复DropDown传入正确direction出现错误警告的问题 (#499)
1 parent f092838 commit 35507a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/uni_modules/wot-design-uni/components/wd-drop-menu/wd-drop-menu.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ linkChildren({ props, fold, offset })
5656
watch(
5757
() => props.direction,
5858
(newValue) => {
59-
if (['up', 'down'].includes(newValue)) {
59+
if (!['up', 'down'].includes(newValue)) {
6060
// eslint-disable-next-line quotes
6161
console.error("[wot design] warning(wd-drop-menu): direction must be 'up' or 'down'")
6262
}

0 commit comments

Comments
 (0)