diff --git a/src/dropdown-menu/README.md b/src/dropdown-menu/README.md index b794cf9a6..7281604ae 100644 --- a/src/dropdown-menu/README.md +++ b/src/dropdown-menu/README.md @@ -106,6 +106,7 @@ export default { | direction | Expand direction, can be set to `up` | `String` | `down` | | overlay | Whether to show overlay | `Boolean` | `true` | | close-on-click-overlay | Whether to close when click overlay | `Boolean` | `true` | +| close-on-click-outside | Whether to close when click outside | `Boolean` | `true` | ### DropdownItem Props diff --git a/src/dropdown-menu/README.zh-CN.md b/src/dropdown-menu/README.zh-CN.md index 6c79b60ae..02ea6b15d 100644 --- a/src/dropdown-menu/README.zh-CN.md +++ b/src/dropdown-menu/README.zh-CN.md @@ -110,6 +110,7 @@ export default { | direction | 菜单展开方向,可选值为`up` | `String` | `down` | 2.0.1 | | overlay | 是否显示遮罩层 | `Boolean` | `true` | - | | close-on-click-overlay | 是否在点击遮罩层后关闭菜单 | `Boolean` | `true` | - | +| close-on-click-outside | 是否在点击外部元素后关闭菜单 | `Boolean` | `true` | 2.0.7 | ### DropdownItem Props diff --git a/src/dropdown-menu/test/__snapshots__/index.spec.js.snap b/src/dropdown-menu/test/__snapshots__/index.spec.js.snap index e6084ce8f..27bbff4f3 100644 --- a/src/dropdown-menu/test/__snapshots__/index.spec.js.snap +++ b/src/dropdown-menu/test/__snapshots__/index.spec.js.snap @@ -5,7 +5,7 @@ exports[`click option 1`] = `