吴羡
2 天以前 78a3c898908bbb8827d1c2aa6299f92ff03f5847
src/components/Table/lims-table.vue
@@ -231,7 +231,10 @@
}
function indexMethod(index) {
  return (props.page.current - 1) * props.page.size + index + 1
  // 未传 page 时默认 current 为 0,会算出 -9、-8 这类负序号;这里兜底为第一页
  const current = props.page && props.page.current > 0 ? props.page.current : 1
  const size = props.page && props.page.size > 0 ? props.page.size : 10
  return (current - 1) * size + index + 1
}
function onPagination({ page, limit }) {