From 9089a247eebb631b48c24290f65febbbcf860ac8 Mon Sep 17 00:00:00 2001 From: nuonuoge <932273325@qq.com> Date: Mon, 9 Nov 2020 16:18:35 +0800 Subject: [PATCH] fix(module: radio): fix listitem can't click when not using list wraper (#756) --- components/radio/style/addon.less | 34 ++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/components/radio/style/addon.less b/components/radio/style/addon.less index f5a40b59..0ec5aa14 100644 --- a/components/radio/style/addon.less +++ b/components/radio/style/addon.less @@ -13,4 +13,36 @@ radioitem { } } } -} \ No newline at end of file +} + +.@{listPrefixCls}-item { + &.@{radioWarpPrefixCls}-item { + .@{listPrefixCls}-line { + .@{listPrefixCls}-extra { + flex: 0; + + .@{radioWarpPrefixCls} { + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + width: 100%; + height: @list-item-height; + overflow: visible; + + &-inner { + right: @v-spacing-lg; + top: @h-spacing-lg; + } + } + } + } + + &.@{radioWarpPrefixCls}-item-disabled { + .@{listPrefixCls}-content { + color: @color-text-disabled; + } + } + } +}