[WIP] Заменил пагинацию на квазаровскую

This commit is contained in:
megavrilinvv
2023-01-26 12:10:13 +03:00
parent cd01915419
commit ad08a6b4d5
3 changed files with 23 additions and 166 deletions

View File

@@ -3,9 +3,12 @@
q-pagination(
v-model="value",
:max="max",
:min="min",
:max-pages="maxPages",
:size="`${size}px`",
:boundary-numbers="boundaryNumbers",
:direction-links="directionLinks"
:direction-links="directionLinks",
@click="chCurrentPage"
)
</template>
@@ -18,6 +21,10 @@ export default {
default: 1,
type: Number,
},
min: {
default: 1,
type: Number,
},
maxPages: {
default: 6,
type: Number,
@@ -30,6 +37,12 @@ export default {
default: false,
type: Boolean,
},
size: Number,
},
methods: {
chCurrentPage() {
this.$emit("st-current-page", this.value);
},
},
};
</script>