31 lines
394 B
Markdown
31 lines
394 B
Markdown
|
<cn>
|
||
|
#### 受控
|
||
|
受控制的页码。
|
||
|
</cn>
|
||
|
|
||
|
<us>
|
||
|
#### Controlled
|
||
|
Controlled page number.
|
||
|
</us>
|
||
|
|
||
|
```html
|
||
|
<template>
|
||
|
<a-pagination @change="onChange" :current="current" :total="50" />
|
||
|
</template>
|
||
|
<script>
|
||
|
export default {
|
||
|
data() {
|
||
|
return {
|
||
|
current: 3
|
||
|
}
|
||
|
},
|
||
|
methods: {
|
||
|
onChange(current) {
|
||
|
this.current = current
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
```
|
||
|
|