zollero / el-search-table-pagination

🐶 Combine Form, Table and Pagination components of Element UI together.
MIT License
306 stars 79 forks source link

Persist pagination pageSize #8

Closed kikoseijo closed 6 years ago

kikoseijo commented 6 years ago

Hi there,

I keep using this library, so goooooood, 👯

Can you help with this simple question:

How could I persist the pageSize after user has selected?

I work on remote data, page sizes could be dynamic, but the preselected value does not persist when im back to the table.

I know it can be done with:

this.$refs.crudTable.pagination.pageSize = this.state.pageSize;

but I can only setup this key once I have :auto-load = true. and because of this I have to recall the query to apply my new pageSize.

Any work around im not aware of?

Thanks.