Closed mrlee23 closed 5 years ago
Hi @mrlee23 , you need to setup this component by configuring nuxt.
// plugins/vuejs-pagiante
import Vue from 'vue'
import Paginate from 'vuejs-paginate/src/components/Paginate.vue';
Vue.component('Paginate', Paginate);
// nuxt.config.js
module.exports = {
plugins: [{
src: '~/plugins/vuejs-paginate.js',
ssr: true
}]
}
@mrlee23 BTW, so sorry for replying so late since I'm too busy. I will try to reply quickly next time.
Hello, Thank you for the providing a convenient pagination package.
When I use a vuejs-paginate with Nuxt.js and Materilize.css in my project, I found a rendering bug.
I set the vuejs-paginate props like this :
In development status, It works fine. But, In production status, vuejs-paginate doesn't bind the
container-class
as a class name. However, after click event, added a container class name and works fine.Initialized page :
After click event :
So, I bind a new
class
prop with empty string "''", It works fine. Is there any other way?