<el-row>
<el-col
v-for="(item,index) in goodsList"
:key="item"
:span="6"
:offset="index%3==0?1:2"
style="margin-top:20px;"
>
<el-card :body-style="{ padding: '0px',backgroundColor:'#eee'}">
</el-card>
</el-col>
</el-row>
<el-row>
<el-col>
<el-pagination
background
layout="prev, pager, next"
:total="goodsList.length"
:page-size="10"
></el-pagination>
</el-col>
</el-row>
代码如上:
有没有哪位大佬知道怎样实现分页功能?
谢谢!