You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
549 B
32 lines
549 B
|
|
<cn>
|
|
#### 总数
|
|
通过设置 `showTotal` 展示总共有多少数据。
|
|
</cn>
|
|
|
|
<us>
|
|
#### Total number
|
|
You can show the total number of data by setting `showTotal`.
|
|
</us>
|
|
|
|
```html
|
|
<template>
|
|
<div>
|
|
<a-pagination
|
|
:total="85"
|
|
:showTotal="total => `Total ${total} items`"
|
|
:pageSize="20"
|
|
:defaultCurrent="1"
|
|
/>
|
|
<br />
|
|
<a-pagination
|
|
:total="85"
|
|
:showTotal="(total, range) => `${range[0]}-${range[1]} of ${total} items`"
|
|
:pageSize="20"
|
|
:defaultCurrent="1"
|
|
/>
|
|
</div>
|
|
</template>
|
|
```
|
|
|