index.vue 937 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <el-pagination
  3. :background="background"
  4. :current-page="currentPage"
  5. :default-current-page="defaultCurrentPage"
  6. :default-page-size="defaultPageSize"
  7. :disabled="disabled"
  8. :hide-on-single-page="hideOnSinglePage"
  9. :layout="layout"
  10. :next-icon="nextIcon"
  11. :next-text="nextText"
  12. :page-count="pageCount"
  13. :page-size="pageSize"
  14. :page-sizes="pageSizes"
  15. :pager-count="pagerCount"
  16. :popper-class="popperClass"
  17. :prev-icon="prevIcon"
  18. :prev-text="prevText"
  19. :small="small"
  20. :teleported="teleported"
  21. :total="total"
  22. v-bind="$attrs"
  23. />
  24. </template>
  25. <script lang="ts" setup>
  26. import { ElPagination } from 'element-plus'
  27. defineOptions({
  28. name: 'VabPagination',
  29. })
  30. defineProps({
  31. ...ElPagination.props,
  32. layout: {
  33. type: String,
  34. default: 'total, sizes, prev, pager, next, jumper',
  35. },
  36. background: {
  37. type: Boolean,
  38. default: true,
  39. },
  40. })
  41. </script>