Commit ea7e868a by 李伟康

增加图标

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