@@ -158,6 +158,7 @@
:label="handleAttribute(indexRow.label, $t('components.crud.index'))"
:width="60"
type="index"
+ :index="indexMethod"
/>
<slot name="prepend-column" />
<template v-for="(column, index) in tableColumns">
@@ -98,6 +98,9 @@ export default {
}
},
methods: {
+ indexMethod(index) {
+ return (this.currentPage - 1) * this.pageSize + index + 1
+ },
/* 表格換颜色*/
tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 === 1) return "warning-row"