From 1fde578ba5a9712b68a4ca65607fcb0ae01640bd Mon Sep 17 00:00:00 2001 From: liaoxuezhi Date: Mon, 16 Dec 2019 10:56:07 +0800 Subject: [PATCH] =?UTF-8?q?Select=20=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4,?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=B6=85=E5=87=BA=E6=8D=A2=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scss/components/form/_select.scss | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scss/components/form/_select.scss b/scss/components/form/_select.scss index 4f7494c1..1bbd0a98 100644 --- a/scss/components/form/_select.scss +++ b/scss/components/form/_select.scss @@ -7,7 +7,7 @@ border: $Form-select-borderWidth solid $Form-select-borderColor; background: $Form-select-bg; border-radius: $Form-select-borderRadius; - height: $Form-selectOption-height; + min-height: $Form-selectOption-height; $paddingY: ( $Form-selectOption-height - $Form-input-lineHeight * $Form-input-fontSize - $Form-select-borderWidth * 2 @@ -36,6 +36,7 @@ position: relative; flex-grow: 1; line-height: 1; + width: 0; } &-placeholder { @@ -46,7 +47,7 @@ &-value { line-height: $Form-input-lineHeight * $Form-input-fontSize; - white-space: nowrap; + // white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;