From 2dc42a8d4e0a9e02fb739104832b58cdbc5a014c Mon Sep 17 00:00:00 2001 From: chenjiajian <770230504@qq.com> Date: Tue, 16 May 2023 16:20:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96icon=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/form/input.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/form/input.js b/src/form/input.js index bc194ea..ec28f3e 100644 --- a/src/form/input.js +++ b/src/form/input.js @@ -124,6 +124,11 @@ class Input extends Component { background: var(--color-plain-1); } } + .icon { + --size: 16px; + margin: 0 8px 0 4px; + color: var(--color-grey-2); + } } .suggestion { @@ -320,6 +325,12 @@ class Input extends Component { .icon { --size: #{map.get($v, 'f')}; } + @if $s == 'xxxl' { + .icon { + --size: 22px; + margin: 0 12px 0 4px; + } + } } :host([size='#{$s}'][circle]) { width: map.get($v, 'h');