Uname: Linux webm012.cluster130.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Software: Apache
PHP version: 8.0.30 [ PHP INFO ] PHP os: Linux
Server Ip: 145.239.37.162
Your Ip: 216.73.216.190
User: dreampi (1009562) | Group: users (100)
Safe Mode: OFF
Disable Function:
_dyuweyrj4,_dyuweyrj4r,dl

name : PaginationBlock.vue
<template>
  <div class="am-pagination am-section" v-show="visible">
    <el-row>

      <!-- Message -->
      <el-col :sm="8">
        <p>{{ paginationMessage }}</p>
      </el-col>

      <!-- Pagination -->
      <el-col :sm="16">
        <el-pagination
            layout="prev, pager, next"
            :page-size=getItemsPerPage
            :total=count
            :current-page.sync=params.page
            @current-change="change"
        >
        </el-pagination>
      </el-col>

    </el-row>
  </div>
</template>

<script>
  export default {
    mixins: [],

    props: {
      params: null,
      visible: false,
      label: '',
      count: 0,
      show: null
    },

    data () {
      return {
        currentPage: null
      }
    },

    methods: {
      change () {
        this.$emit('change')
      }
    },

    computed: {
      paginationMessage () {
        return this.$root.labels.showing + ' ' +
          (this.params.page * this.getItemsPerPage - this.getItemsPerPage + 1) +
          ' ' + this.$root.labels.to + ' ' + (this.params.page * this.getItemsPerPage >
          this.count ? this.count : this.params.page * this.getItemsPerPage) +
          ' ' + this.$root.labels.of + ' ' + this.count + ' ' + this.label
      },

      getItemsPerPage () {
        return typeof this.show === 'undefined' || this.show === null ? this.$root.settings.general.itemsPerPage : this.show
      }
    }
  }
</script>
© 2026 GrazzMean-Shell