From 3a3dcb0af15e7c07b85d782fa72bd7350b371622 Mon Sep 17 00:00:00 2001 From: 梁灏 Date: Tue, 3 Jul 2018 09:47:05 +0800 Subject: [PATCH] update cell & dropdown style --- examples/routers/dropdown.vue | 4 ++-- src/styles/components/cell.less | 5 +++++ src/styles/components/dropdown.less | 3 +++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/examples/routers/dropdown.vue b/examples/routers/dropdown.vue index 977051a..e82c54c 100644 --- a/examples/routers/dropdown.vue +++ b/examples/routers/dropdown.vue @@ -7,7 +7,7 @@ 驴打滚 - 炸酱面 + 炸酱面 豆汁儿 冰糖葫芦 北京烤鸭 @@ -20,7 +20,7 @@ 驴打滚 - 炸酱面 + 炸酱面 豆汁儿 冰糖葫芦 北京烤鸭 diff --git a/src/styles/components/cell.less b/src/styles/components/cell.less index 6f8021f..1a04c1e 100644 --- a/src/styles/components/cell.less +++ b/src/styles/components/cell.less @@ -34,6 +34,11 @@ &-selected &-label{ color: inherit; } + + &-selected, &&-selected:hover{ + background: ~`colorPalette("@{primary-color}", 1)`; + } + &-footer{ display: inline-block; position: absolute; diff --git a/src/styles/components/dropdown.less b/src/styles/components/dropdown.less index a610d5d..c157a65 100644 --- a/src/styles/components/dropdown.less +++ b/src/styles/components/dropdown.less @@ -30,6 +30,9 @@ &-transfer{ width: auto; } + &-item-selected, &-item&-item-selected:hover{ + background: ~`colorPalette("@{primary-color}", 1)`; + } } .select-item(@dropdown-prefix-cls, @dropdown-item-prefix-cls); \ No newline at end of file -- libgit2 0.21.4