[WIP] Заменил пагинацию на квазаровскую
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user