ratiw / vue-table

data table simplify! -- vuetable is a Vue.js component that will automatically request (JSON) data from the server and display them nicely in html table with swappable/extensible pagination component.
MIT License
1.83k stars 303 forks source link

(program):486 Uncaught (in promise) TypeError: Cannot read property 'pagination' of null #45

Closed jackbbhua closed 8 years ago

jackbbhua commented 8 years ago

HI,ratiw. can you please give a complete demo of use webpack.i have this error and i am new to vue.stilll can not fix it.by the way.this table will cost 10000-20000 node in chrome dev tool.some other table maybe just 200-10000.is this is the performance problem?is the less node is better?thank you.

ratiw commented 8 years ago

@jackbbhua It seems that your data structure do not have pagination info or you did not tell vuetable where the pagination info is in your data structure. Please have a look at this wiki

If you're using laravel as a backend and using its paginate() method, you usually need to set paginatation-path=""

For the demo, try this repo

If you plan to use vuetable to display all 10,000 rows without pagination, it will be very very slow. It was designed to display data in chunk (or page-by-page). That's why pagination function is built-in to the component.

jackbbhua commented 8 years ago

@ratiw thank you for your advance help.i will try today.