Commit 3a3dcb0af15e7c07b85d782fa72bd7350b371622

Authored by 梁灏
1 parent 7e97421f

update cell & dropdown style

examples/routers/dropdown.vue
... ... @@ -7,7 +7,7 @@
7 7 </a>
8 8 <DropdownMenu slot="list">
9 9 <DropdownItem>驴打滚</DropdownItem>
10   - <DropdownItem>炸酱面</DropdownItem>
  10 + <DropdownItem selected>炸酱面</DropdownItem>
11 11 <DropdownItem disabled>豆汁儿</DropdownItem>
12 12 <DropdownItem>冰糖葫芦</DropdownItem>
13 13 <DropdownItem divided>北京烤鸭</DropdownItem>
... ... @@ -20,7 +20,7 @@
20 20 </a>
21 21 <DropdownMenu slot="list">
22 22 <DropdownItem>驴打滚</DropdownItem>
23   - <DropdownItem>炸酱面</DropdownItem>
  23 + <DropdownItem selected>炸酱面</DropdownItem>
24 24 <DropdownItem disabled>豆汁儿</DropdownItem>
25 25 <DropdownItem>冰糖葫芦</DropdownItem>
26 26 <DropdownItem divided>北京烤鸭</DropdownItem>
... ...
src/styles/components/cell.less
... ... @@ -34,6 +34,11 @@
34 34 &-selected &-label{
35 35 color: inherit;
36 36 }
  37 +
  38 + &-selected, &&-selected:hover{
  39 + background: ~`colorPalette("@{primary-color}", 1)`;
  40 + }
  41 +
37 42 &-footer{
38 43 display: inline-block;
39 44 position: absolute;
... ...
src/styles/components/dropdown.less
... ... @@ -30,6 +30,9 @@
30 30 &-transfer{
31 31 width: auto;
32 32 }
  33 + &-item-selected, &-item&-item-selected:hover{
  34 + background: ~`colorPalette("@{primary-color}", 1)`;
  35 + }
33 36 }
34 37  
35 38 .select-item(@dropdown-prefix-cls, @dropdown-item-prefix-cls);
36 39 \ No newline at end of file
... ...