From 30d6dc402ec3c61b28c6d8a20d830c482fa1508d Mon Sep 17 00:00:00 2001 From: zhangtao07 Date: Fri, 9 Aug 2024 17:05:36 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20inputTable=E5=86=85=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E6=9C=80=E5=B0=8F=E5=AE=BD=E5=BA=A6=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/amis-ui/scss/components/_table.scss | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/amis-ui/scss/components/_table.scss b/packages/amis-ui/scss/components/_table.scss index a0a5cb173..72d0749c7 100644 --- a/packages/amis-ui/scss/components/_table.scss +++ b/packages/amis-ui/scss/components/_table.scss @@ -262,8 +262,13 @@ & > .#{$ns}Form, & > .#{$ns}Form-item > .#{$ns}Form-control:not(.is-thin) { - // todo 优化这个,有些表单项宽度其实是很小的比如 switch,button,checkbox,radio min-width: var(--Form-control-widthBase); + + &.#{$ns}CheckboxControl, + &.#{$ns}SwitchControl, + &.#{$ns}RadiosControl { + min-width: auto; + } } .#{$ns}Form-static {