From 8be56d123f89154d79d022eff6b6355918452ab2 Mon Sep 17 00:00:00 2001 From: qkiroc <30946345+qkiroc@users.noreply.github.com> Date: Tue, 12 Sep 2023 15:55:37 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BC=98=E5=8C=96=E5=BC=B9=E6=A1=86?= =?UTF-8?q?=E5=9C=BA=E6=99=AF=E4=B8=8Bselect=E5=85=A8=E9=80=89=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E9=97=AE=E9=A2=98=20(#8065)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com> --- .../amis-ui/scss/components/form/_select.scss | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/packages/amis-ui/scss/components/form/_select.scss b/packages/amis-ui/scss/components/form/_select.scss index cef8b2eae..6b3753821 100644 --- a/packages/amis-ui/scss/components/form/_select.scss +++ b/packages/amis-ui/scss/components/form/_select.scss @@ -664,3 +664,27 @@ } } } + +// 下拉框在弹框中的的时候没有select层,所以把这部分单独提出来 +.#{$ns}PopOver.#{$ns}Select-popover { + &.#{$ns}PopOver--v-top { + margin-top: px2rem(4px); + } + &.#{$ns}PopOver--v-bottom { + margin-bottom: px2rem(4px); + } + .#{$ns}Select-menu { + .#{$ns}Checkbox span { + line-height: var(--select-base-default-option-line-height); + height: var(--select-base-default-option-line-height); + } + .#{$ns}Select-option { + line-height: var(--select-base-default-option-line-height); + height: var(--select-base-default-option-line-height); + } + .#{$ns}Select-addBtn { + line-height: var(--select-base-default-option-line-height); + height: var(--select-base-default-option-line-height); + } + } +}