From 9617a7000a11481f1cf4d0cdc6930282484e6edc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Wed, 24 Feb 2021 15:02:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90number=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E7=9A=84=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/form/input.wc | 26 ++++++-- src/form/number.wc | 145 +++++++++++++++++++++++++++++++-------------- 2 files changed, 120 insertions(+), 51 deletions(-) diff --git a/src/form/input.wc b/src/form/input.wc index 829d39d..487b57d 100644 --- a/src/form/input.wc +++ b/src/form/input.wc @@ -35,7 +35,7 @@ li { display: flex; justify-content: center; align-items: center; - height: 32px; + height: 36px; font-size: 14px; border: 2px solid var(--color-plain-2); border-radius: inherit; @@ -45,10 +45,10 @@ li { input { flex: 1; - min-width: 32px; + min-width: 36px; width: 0; height: 100%; - padding: 0 6px; + padding: 0 8px; border: 0; border-radius: inherit; color: inherit; @@ -69,7 +69,7 @@ li { justify-content: center; align-items: center; width: auto; - height: 28px; + height: 32px; padding: 0 10px; line-height: 1; white-space: nowrap; @@ -167,7 +167,7 @@ li { } :host([size='large']) { - min-width: 232px; + min-width: 234px; .label { height: 52px; font-size: 18px; @@ -190,7 +190,7 @@ li { :host([size='medium']) { min-width: 160px; .label { - height: 36px; + height: 44px; input { padding: 0 10px; @@ -198,7 +198,21 @@ li { } .prepend, .append { + height: 40px; + } +} +:host([size='small']) { + min-width: 96px; + .label { height: 32px; + + input { + padding: 0 6px; + } + } + .prepend, + .append { + height: 28px; } } :host([size='mini']) { diff --git a/src/form/number.wc b/src/form/number.wc index 06d99cd..42f8459 100644 --- a/src/form/number.wc +++ b/src/form/number.wc @@ -1,23 +1,23 @@