1
0
Fork 0
dri/src/components/Paginator.vue

35 lines
508 B
Vue
Raw Normal View History

2018-09-26 22:27:42 +08:00
<template>
2018-09-29 16:37:40 +08:00
<div>
<!-- <span class="prev" @click="prev">Previous</span> -->
<span class="next" @click="next" v-if="nextLast">Next</span>
</div>
2018-09-26 22:27:42 +08:00
</template>
<script>
export default {
2018-09-27 13:41:08 +08:00
props: {
nextLast: String,
},
methods: {
prev() {
this.$router.back();
},
next() {
this.$router.push(`?last=${this.nextLast}`);
},
},
2018-09-26 22:27:42 +08:00
};
</script>
<style scoped>
div {
2018-09-29 16:37:40 +08:00
display: flex;
justify-content: space-between;
padding-top: 0.75rem;
2018-09-26 22:27:42 +08:00
}
div > span {
2018-09-29 16:37:40 +08:00
padding: 0.75rem;
color: #008;
2018-09-26 22:27:42 +08:00
}
</style>