关于iview组件中使用 table , 绑定序号分页后序号从1开始的解决方案

         columns: [
                {
                    title: '序号',
                    width: 70,
                    align: 'center',
                    render: (h,params) => {
                        return h('span',params.index + (this.currentPage-1)*this.pageNum + 1 )
                    }
                }

第二页不是从1开始。

猜你喜欢

转载自blog.csdn.net/weixin_42265852/article/details/87732044