From 806a2f74d1667a59d6f1aff6561a2d4856f93cb5 Mon Sep 17 00:00:00 2001 From: liaoxuezhi Date: Sun, 10 Nov 2019 22:01:15 +0800 Subject: [PATCH] =?UTF-8?q?Select=20=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scss/components/form/_select.scss | 5 ++--- src/components/Select.tsx | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/scss/components/form/_select.scss b/scss/components/form/_select.scss index 8b83a187..11b9ee4c 100644 --- a/scss/components/form/_select.scss +++ b/scss/components/form/_select.scss @@ -134,8 +134,7 @@ &-menu { max-height: px2rem(300px); - overflow-y: auto; - overflow-x: hidden; + overflow: auto; user-select: none; } @@ -174,7 +173,7 @@ &-option { cursor: pointer; - min-width: px2rem(150px); + min-width: px2rem(120px); padding: ($Form-select-menu-height - $Form-input-lineHeight * $Form-input-fontSize)/2 $Form-select-paddingX; &.is-active { diff --git a/src/components/Select.tsx b/src/components/Select.tsx index 50520a6b..f4cddadd 100644 --- a/src/components/Select.tsx +++ b/src/components/Select.tsx @@ -715,7 +715,7 @@ export class Select extends React.Component { {menu}