update cell & dropdown style

This commit is contained in:
梁灏 2018-07-03 09:47:05 +08:00
parent 7e97421fac
commit 3a3dcb0af1
3 changed files with 10 additions and 2 deletions

View file

@ -7,7 +7,7 @@
</a> </a>
<DropdownMenu slot="list"> <DropdownMenu slot="list">
<DropdownItem>驴打滚</DropdownItem> <DropdownItem>驴打滚</DropdownItem>
<DropdownItem>炸酱面</DropdownItem> <DropdownItem selected>炸酱面</DropdownItem>
<DropdownItem disabled>豆汁儿</DropdownItem> <DropdownItem disabled>豆汁儿</DropdownItem>
<DropdownItem>冰糖葫芦</DropdownItem> <DropdownItem>冰糖葫芦</DropdownItem>
<DropdownItem divided>北京烤鸭</DropdownItem> <DropdownItem divided>北京烤鸭</DropdownItem>
@ -20,7 +20,7 @@
</a> </a>
<DropdownMenu slot="list"> <DropdownMenu slot="list">
<DropdownItem>驴打滚</DropdownItem> <DropdownItem>驴打滚</DropdownItem>
<DropdownItem>炸酱面</DropdownItem> <DropdownItem selected>炸酱面</DropdownItem>
<DropdownItem disabled>豆汁儿</DropdownItem> <DropdownItem disabled>豆汁儿</DropdownItem>
<DropdownItem>冰糖葫芦</DropdownItem> <DropdownItem>冰糖葫芦</DropdownItem>
<DropdownItem divided>北京烤鸭</DropdownItem> <DropdownItem divided>北京烤鸭</DropdownItem>

View file

@ -34,6 +34,11 @@
&-selected &-label{ &-selected &-label{
color: inherit; color: inherit;
} }
&-selected, &&-selected:hover{
background: ~`colorPalette("@{primary-color}", 1)`;
}
&-footer{ &-footer{
display: inline-block; display: inline-block;
position: absolute; position: absolute;

View file

@ -30,6 +30,9 @@
&-transfer{ &-transfer{
width: auto; width: auto;
} }
&-item-selected, &-item&-item-selected:hover{
background: ~`colorPalette("@{primary-color}", 1)`;
}
} }
.select-item(@dropdown-prefix-cls, @dropdown-item-prefix-cls); .select-item(@dropdown-prefix-cls, @dropdown-item-prefix-cls);