iview表格翻页index还是从1开始算起的怎么解决
话不多说直接上代码希望对大家有帮助`
这里的this.yema是你当前的页面,this.yeshu是你没也放的数据个数
type: "index2",
width: 38,
align: "center",
whiteSpace: "nowrap",
fixed:"left",
render: (h, params) => {
return h(
"span",
params.index + (this.yema - 1) * this.yeshu + 1
);
}