docs(Pagination): use composition api

This commit is contained in:
chenjiahan
2020-12-13 14:17:21 +08:00
parent f9b6fda65c
commit 8d1096e646
3 changed files with 39 additions and 28 deletions
+5 -4
View File
@@ -19,11 +19,12 @@ app.use(Pagination);
```
```js
import { ref } from 'vue';
export default {
data() {
return {
currentPage: 1,
};
setup() {
const currentPage = ref(1);
return { currentPage };
},
};
```