From d1a0737964509f8b402a9057bd548a1804a38f93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=84=B6=E5=88=99?= Date: Mon, 20 Jul 2015 21:32:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BFselect=E5=8D=95=E9=80=89=E6=97=B6?= =?UTF-8?q?=E4=B8=8D=E6=89=93=E9=92=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- style/components/select.less | 41 ++++++++++++++++++++++-------------- 1 file changed, 25 insertions(+), 16 deletions(-) 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;