diff --git a/style/components/select.less b/style/components/select.less index 1cee9637b2..98ac56a234 100644 --- a/style/components/select.less +++ b/style/components/select.less @@ -7,6 +7,22 @@ float: right; font-weight: bold; } +.selected_icon() { + position: relative; + &:after { + .iconfont-size-under-12px(9px); + display: inline-block; + content: '\e613'; + font-family: 'anticon'; + font-weight: bold; + position: absolute; + top: 6px; + right: 0; + background: tint(@primary-color, 90%); + padding-right: 16px; + color: @primary-color; + } +} .@{selectPrefixCls} { box-sizing: border-box; @@ -188,6 +204,12 @@ } } + .@{selectPrefixCls}-selection--multiple + .@{selectPrefixCls}-dropdown { + .@{selectPrefixCls}-dropdown-menu-item-selected { + .selected_icon(); + } + } + &-dropdown { display: none; background-color: white; @@ -228,22 +250,9 @@ background-color: tint(@primary-color, 90%) !important; } - &-selected { - position: relative; - &:after { - .iconfont-size-under-12px(9px); - display: inline-block; - content: '\e613'; - font-family: 'anticon'; - font-weight: bold; - position: absolute; - top: 6px; - right: 0; - background: tint(@primary-color, 90%); - padding-right: 16px; - color: @primary-color; - } - } + // &-selected { + // .selected_icon(); + // } &-disabled { color: #ccc;