ipagination.js 743 B

1234567891011121314151617181920212223
  1. export const JeecgListMixin = {
  2. data() {
  3. return {
  4. /* 分页参数 */
  5. ipagination: {
  6. current: 1,
  7. pageSize: 10,
  8. // pageSizeOptions: ['10', '20', '30'],
  9. showTotal: (total, range) => {
  10. return range[0] + "-" + range[1] + " 共" + total + "条"
  11. },
  12. showQuickJumper: true,
  13. // showSizeChanger: true,
  14. total: 0,
  15. onChange: current => {
  16. // 切换分页时的回调,
  17. // 当在页面定义change事件时,切记要把此处的事件清除,因为这两个事件重叠了,可能到时候会导致一些莫名的bug
  18. this.ipagination.current = current
  19. }
  20. },
  21. }
  22. }
  23. }