官网链接
https://youzan.github.io/vant-weapp/#/swipe-cell
按钮无样式
其实查看github的示例就能看到,实际加了van-swipe-cell__left
和van-swipe-cell__right
两个类名,具体官方的样式去github看吧,我贴一个自己的样式,包了两层主要是因为我的按钮不止一个
<view slot="right" class="van-swipe-cell_slot red-background">
<view class="van-swipe-cell_slot-container center-row">删除</view>
</view>
.center-row {
display: flex;
align-items: center;
justify-content: center;
}
.van-swipe-cell_slot {
display: inline-block;
width: 65px;
height