Commit ea7e868a by 李伟康

增加图标

1 parent 4a3dc0eb
...@@ -8,6 +8,9 @@ ...@@ -8,6 +8,9 @@
@click="change(index)" @click="change(index)"
> >
{{i}} {{i}}
<template v-if="index == 1">
<div class="arrow"></div>
</template>
</div> </div>
</template> </template>
<div <div
...@@ -126,15 +129,36 @@ export default { ...@@ -126,15 +129,36 @@ export default {
border-radius: 4px 0px 0px 4px; border-radius: 4px 0px 0px 4px;
} }
.brand { .brand {
padding-left: 16px; padding: 0 16px;
border-radius: 0 4px 4px 0; border-radius: 0 4px 4px 0;
&:hover ~ .options-box { &:hover ~ .options-box {
display: block; display: block;
} }
.arrow {
position: relative;
top: 4.5px;
border-top: 4.5px solid #eb6001;
border-right: 4.5px solid transparent;
border-bottom: 4.5px solid transparent;
border-left: 4.5px solid transparent;
margin-left: auto;
transition: all 0.25s;
}
&:hover {
.arrow {
transform: rotate(-180deg);
top: 0;
}
}
} }
.active { .active {
color: #fff; color: #fff;
background: #eb6001; background: #eb6001;
.arrow {
border-top-color: #fff;
transform: rotate(-180deg);
top: 0;
}
} }
.options-box { .options-box {
display: none; display: none;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!