右上角删除
<div class="delete">
<span class="delete-icon" @click="_delete(item)">×</span>
</div>
复制代码
.delete {
position: absolute;
right: -4px;
top: -16px;
width: 0;
height: 0;
border-bottom: 25px solid transparent;
border-top: 25px solid transparent;
border-left: 25px solid #199ED8;
transform: rotate(-45deg);
.delete-icon {
color: #fff;
position: absolute;
top: -16px;
left: -21px;
transition: .8s;
transform: rotate(-45deg);
cursor: pointer;
font-size: 24px;
&:hover {
transform: rotate(90deg);
}
}
}
复制代码
展开收起
<p class="fold" v-if="item.moreComment" @click="_showMore(item,index)">
<span>{{item.showMore?"收起":"展开"}}</span>
<Icon v-show="item.showMore" class="icon" type="ios-arrow-up"/>
<Icon v-show="!item.showMore" class="icon" type="ios-arrow-down"/>
</p>
复制代码
.fold {
background-color: #fff;
text-align: center;
padding-top: 10px;
span, .icon {
display: inline-block;
vertical-align: middle;
cursor: pointer;
}
}
复制代码