Kaynağa Gözat

【新增】Stable分页显示记录总条数

俞宝山 4 yıl önce
ebeveyn
işleme
91c1896f85
1 değiştirilmiş dosya ile 4 ekleme ve 1 silme
  1. 4 1
      _web/src/components/Table/index.js

+ 4 - 1
_web/src/components/Table/index.js

@ -108,7 +108,10 @@ export default {
    this.localPagination = ['auto', true].includes(this.showPagination) && Object.assign({}, this.localPagination, {
      current: localPageNum,
      pageSize: this.pageSize,
      showSizeChanger: this.showSizeChanger
      showSizeChanger: this.showSizeChanger,
      showTotal: (total, range) => {
        return range[0] + '-' + range[1] + '共' + total + '条'
      }
    }) || false
    // console.log('this.localPagination', this.localPagination)
    this.needTotalList = this.initTotalList(this.columns)