mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-22 22:49:15 +08:00
[Doc] Pagination: fix prev-text prop (#1495)
This commit is contained in:
parent
4e52fd0a1c
commit
61bd31406d
@ -5,7 +5,7 @@
|
|||||||
v-model="currentPage1"
|
v-model="currentPage1"
|
||||||
:total-items="24"
|
:total-items="24"
|
||||||
:items-per-page="5"
|
:items-per-page="5"
|
||||||
:previous-text= "$t('prevText')"
|
:prev-text= "$t('prevText')"
|
||||||
:next-text= "$t('nextText')"
|
:next-text= "$t('nextText')"
|
||||||
/>
|
/>
|
||||||
</demo-block>
|
</demo-block>
|
||||||
@ -14,7 +14,7 @@
|
|||||||
<van-pagination
|
<van-pagination
|
||||||
v-model="currentPage2"
|
v-model="currentPage2"
|
||||||
:page-count="12"
|
:page-count="12"
|
||||||
:previous-text= "$t('prevText')"
|
:prev-text= "$t('prevText')"
|
||||||
:next-text= "$t('nextText')"
|
:next-text= "$t('nextText')"
|
||||||
mode="simple"
|
mode="simple"
|
||||||
size="small"
|
size="small"
|
||||||
@ -27,7 +27,7 @@
|
|||||||
v-model="currentPage3"
|
v-model="currentPage3"
|
||||||
:total-items="125"
|
:total-items="125"
|
||||||
:show-page-size="3"
|
:show-page-size="3"
|
||||||
:previous-text= "$t('prevText')"
|
:prev-text= "$t('prevText')"
|
||||||
:next-text= "$t('nextText')"
|
:next-text= "$t('nextText')"
|
||||||
/>
|
/>
|
||||||
</demo-block>
|
</demo-block>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
exports[`renders demo correctly 1`] = `
|
exports[`renders demo correctly 1`] = `
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
<ul previous-text="上一页" class="van-pagination">
|
<ul class="van-pagination">
|
||||||
<li class="van-hairline van-pagination__item van-pagination__item--disabled van-pagination__prev">
|
<li class="van-hairline van-pagination__item van-pagination__item--disabled van-pagination__prev">
|
||||||
上一页
|
上一页
|
||||||
</li>
|
</li>
|
||||||
@ -29,7 +29,7 @@ exports[`renders demo correctly 1`] = `
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<ul previous-text="上一页" size="small" class="van-pagination van-pagination--simple">
|
<ul size="small" class="van-pagination van-pagination--simple">
|
||||||
<li class="van-hairline van-pagination__item van-pagination__item--disabled van-pagination__prev">
|
<li class="van-hairline van-pagination__item van-pagination__item--disabled van-pagination__prev">
|
||||||
上一页
|
上一页
|
||||||
</li>
|
</li>
|
||||||
@ -45,7 +45,7 @@ exports[`renders demo correctly 1`] = `
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<ul previous-text="上一页" class="van-pagination">
|
<ul class="van-pagination">
|
||||||
<li class="van-hairline van-pagination__item van-pagination__item--disabled van-pagination__prev">
|
<li class="van-hairline van-pagination__item van-pagination__item--disabled van-pagination__prev">
|
||||||
上一页
|
上一页
|
||||||
</li>
|
</li>
|
||||||
|
@ -59,7 +59,7 @@ export default {
|
|||||||
| v-model | 当前页码 | `Number` | - |
|
| v-model | 当前页码 | `Number` | - |
|
||||||
| mode | 显示模式,可选值为 `simple` `multi` | `String` | `multi` |
|
| mode | 显示模式,可选值为 `simple` `multi` | `String` | `multi` |
|
||||||
| items-per-page | 每页记录数 | `Number` | `10` |
|
| items-per-page | 每页记录数 | `Number` | `10` |
|
||||||
| previous-text | 上一页 | `String` | `上一页` |
|
| prev-text | 上一页 | `String` | `上一页` |
|
||||||
| next-text | 下一页 | `String` | `下一页` |
|
| next-text | 下一页 | `String` | `下一页` |
|
||||||
| show-page-size | 显示的页码个数 | `Number` | `5` |
|
| show-page-size | 显示的页码个数 | `Number` | `5` |
|
||||||
| force-ellipses | 显示省略号 | `Boolean` | `false` |
|
| force-ellipses | 显示省略号 | `Boolean` | `false` |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user