Commit 095da818 by 李伟康

修改样式

1 parent 9914ce6e
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
:key="index" :key="index"
@click="change(index)" @click="change(index)"
> >
<div class="text text-hide">
{{i}} {{i}}
</div>
<template v-if="index == 1"> <template v-if="index == 1">
<div class="arrow"></div> <div class="arrow"></div>
</template> </template>
...@@ -23,7 +25,9 @@ ...@@ -23,7 +25,9 @@
:class="['options-item flex',{'active':i.active}]" :class="['options-item flex',{'active':i.active}]"
:key="index" :key="index"
@click="chooseBrand({i,index})" @click="chooseBrand({i,index})"
>{{i.brandName}}</div> >
<div class="text-hide">{{i.brandName}}</div>
</div>
</template> </template>
</div> </div>
</div> </div>
...@@ -131,6 +135,9 @@ export default { ...@@ -131,6 +135,9 @@ export default {
.brand { .brand {
padding: 0 16px; padding: 0 16px;
border-radius: 0 4px 4px 0; border-radius: 0 4px 4px 0;
.text {
width: calc(100% - 20px);
}
&:hover ~ .options-box { &:hover ~ .options-box {
display: block; display: block;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!