Commit 3a3dcb0af15e7c07b85d782fa72bd7350b371622
1 parent
7e97421f
update cell & dropdown style
Showing
3 changed files
with
10 additions
and
2 deletions
Show diff stats
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
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 | ... | ... |