提交 814f59a6 authored 作者: lihuihui's avatar lihuihui

修改样式

上级 9810b30c
......@@ -29,9 +29,16 @@
<span>
{{ item.title }}
</span>
<div class="more" v-if="list.length - 1 == index">
<template v-if="list.length >= 4">
<div class="more" v-if="index == 3">
<router-link to="/news">更多</router-link>
</div>
</template>
<template>
<div class="more" v-if="list.length == index">
<router-link to="/news">更多</router-link>
</div>
</template>
</li>
</router-link>
</template>
......@@ -276,6 +283,10 @@ export default {
span{
font-size: 18px;
color: #666666;
width: 510px;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap
}
.more{
font-size: 18px;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论