[Doc] Pagination: fix prev-text prop (#1495)

This commit is contained in:
neverland 2018-07-16 20:19:04 +08:00 committed by GitHub
parent 4e52fd0a1c
commit 61bd31406d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View File

@ -5,7 +5,7 @@
v-model="currentPage1"
:total-items="24"
:items-per-page="5"
:previous-text= "$t('prevText')"
:prev-text= "$t('prevText')"
:next-text= "$t('nextText')"
/>
</demo-block>
@ -14,7 +14,7 @@
<van-pagination
v-model="currentPage2"
:page-count="12"
:previous-text= "$t('prevText')"
:prev-text= "$t('prevText')"
:next-text= "$t('nextText')"
mode="simple"
size="small"
@ -27,7 +27,7 @@
v-model="currentPage3"
:total-items="125"
:show-page-size="3"
:previous-text= "$t('prevText')"
:prev-text= "$t('prevText')"
:next-text= "$t('nextText')"
/>
</demo-block>

View File

@ -3,7 +3,7 @@
exports[`renders demo correctly 1`] = `
<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>
@ -29,7 +29,7 @@ exports[`renders demo correctly 1`] = `
</ul>
</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>
@ -45,7 +45,7 @@ exports[`renders demo correctly 1`] = `
</ul>
</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>

View File

@ -59,7 +59,7 @@ export default {
| v-model | 当前页码 | `Number` | - |
| mode | 显示模式,可选值为 `simple` `multi` | `String` | `multi` |
| items-per-page | 每页记录数 | `Number` | `10` |
| previous-text | 上一页 | `String` | `上一页` |
| prev-text | 上一页 | `String` | `上一页` |
| next-text | 下一页 | `String` | `下一页` |
| show-page-size | 显示的页码个数 | `Number` | `5` |
| force-ellipses | 显示省略号 | `Boolean` | `false` |