소스 검색

update: 修改table需要 从1开始

xyh 2 년 전
부모
커밋
67d3d9a97c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/app/src/components/table/hooks.ts

+ 1 - 1
packages/app/src/components/table/hooks.ts

@@ -53,7 +53,7 @@ function parseColumn<T>(columns: ColumnType<T>[]) {
       header: '序号',
       id: 'no',
       cell({row}) {
-        return row.index;
+        return row.index + 1;
       },
       meta: {
         align: 'center',