From e5118a9b1cbac15102da59e60c6bd7eb79ab108f Mon Sep 17 00:00:00 2001 From: Sebastian Blade Date: Sat, 23 Apr 2016 15:30:23 +0800 Subject: [PATCH] Update dropdown.less (#1491) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 去除 menu 中的 `overflow: hidden` (会导致子菜单无法显示) 改为用伪类 `only-child` --- style/components/dropdown.less | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/style/components/dropdown.less b/style/components/dropdown.less index 34132a3dcd..21e5e593c5 100644 --- a/style/components/dropdown.less +++ b/style/components/dropdown.less @@ -46,7 +46,6 @@ box-shadow: @box-shadow-base; background-clip: padding-box; border: 1px solid @border-color-base; - overflow: hidden; &-item, &-submenu-title { @@ -91,6 +90,10 @@ border-radius: 0 0 @border-radius-base @border-radius-base; } + &:only-child { + border-radius: @border-radius-base; + } + &-divider { height: 1px; overflow: hidden;