From 18119bab27ba909875f1145d0b99fca2ed73408e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Thu, 22 Apr 2021 15:40:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BB=84=E4=BB=B6=E5=B0=BA?= =?UTF-8?q?=E5=AF=B8=E8=AE=BE=E7=BD=AE;dropdown=E7=BB=84=E4=BB=B6=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E8=AE=BE=E7=BD=AE=E5=B0=BA=E5=AF=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/form/button.wc | 11 ++++----- src/form/dropdown.wc | 56 ++++++++++++++++++++++++++++++++++++++++++-- src/form/option.wc | 15 +++++++++++- src/icon/index.wc | 2 ++ 4 files changed, 75 insertions(+), 9 deletions(-) diff --git a/src/form/button.wc b/src/form/button.wc index 6f5d80c..a27d18e 100644 --- a/src/form/button.wc +++ b/src/form/button.wc @@ -9,8 +9,7 @@ :host { overflow: hidden; display: inline-flex; - min-width: 72px; - width: 128px; + min-width: 128px; height: 36px; border-radius: 3px; user-select: none; @@ -51,7 +50,7 @@ } :host([size='large']) { - width: 212px; + min-width: 212px; height: 52px; font-size: 18px; @@ -73,7 +72,7 @@ } } :host([size='medium']) { - width: 160px; + min-width: 160px; height: 44px; button { @@ -85,7 +84,7 @@ width: 44px; } :host([size='small']) { - width: 96px; + min-width: 96px; height: 32px; } :host([size='small'][circle]) { @@ -93,7 +92,7 @@ width: 32px; } :host([size='mini']) { - width: 72px; + min-width: 72px; height: 26px; font-size: 12px; diff --git a/src/form/dropdown.wc b/src/form/dropdown.wc index bbd099d..c185c13 100644 --- a/src/form/dropdown.wc +++ b/src/form/dropdown.wc @@ -11,8 +11,7 @@