[WIP] Добавил квазаровскую пагинацию
This commit is contained in:
35
src/components/base/BasePagination.vue
Normal file
35
src/components/base/BasePagination.vue
Normal file
@@ -0,0 +1,35 @@
|
||||
<template lang="pug">
|
||||
.flex(class="q-pa-lg flex-center")
|
||||
q-pagination(
|
||||
v-model="value",
|
||||
:max="max",
|
||||
:max-pages="maxPages",
|
||||
:boundary-numbers="boundaryNumbers",
|
||||
:direction-links="directionLinks"
|
||||
)
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "BasePagination",
|
||||
props: {
|
||||
value: Number,
|
||||
max: {
|
||||
default: 1,
|
||||
type: Number,
|
||||
},
|
||||
maxPages: {
|
||||
default: 6,
|
||||
type: Number,
|
||||
},
|
||||
boundaryNumbers: {
|
||||
default: false,
|
||||
type: Boolean,
|
||||
},
|
||||
directionLinks: {
|
||||
default: false,
|
||||
type: Boolean,
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
Reference in New Issue
Block a user