From e92d1d13aa3de2698ff0697d5eb748c4728fe29b Mon Sep 17 00:00:00 2001 From: Hi-Linlin Date: Wed, 7 Mar 2018 11:47:19 +0800 Subject: [PATCH] Pagination: add disabled prop (#10006) --- examples/docs/en-US/pagination.md | 1 + examples/docs/es/pagination.md | 1 + examples/docs/zh-CN/pagination.md | 1 + packages/pagination/src/pager.vue | 29 ++++++++++++++++-------- packages/pagination/src/pagination.js | 16 +++++++++---- packages/theme-chalk/src/pagination.scss | 15 +++++++++++- yarn.lock | 4 ++++ 7 files changed, 52 insertions(+), 15 deletions(-) diff --git a/examples/docs/en-US/pagination.md b/examples/docs/en-US/pagination.md index 4b5d5f245..242fa5711 100644 --- a/examples/docs/en-US/pagination.md +++ b/examples/docs/en-US/pagination.md @@ -221,6 +221,7 @@ Add more modules based on your scenario. | popper-class | custom class name for the page size Select's dropdown | string | — | — | | prev-text | text for the prev button | string | — | — | | next-text | text for the next button | string | — | — | +| disabled | whether Pagination is disabled | boolean | — | false | ### Events | Event Name | Description | Parameters | diff --git a/examples/docs/es/pagination.md b/examples/docs/es/pagination.md index fd6fd3f12..2c47c2431 100644 --- a/examples/docs/es/pagination.md +++ b/examples/docs/es/pagination.md @@ -207,6 +207,7 @@ Agrega más modulos basados en su escenario. | popper-class | clase propia para el `dropdown` del `select` del número de páginas | string | — | — | | prev-text | texto para el botón `prev` | string | — | — | | next-text | texto para el botón `next` | string | — | — | +| disabled | whether Pagination is disabled | boolean | — | false | ### Eventos | Nombre del evento | Descripción | Parámetros | diff --git a/examples/docs/zh-CN/pagination.md b/examples/docs/zh-CN/pagination.md index 143055328..6c8424e1f 100644 --- a/examples/docs/zh-CN/pagination.md +++ b/examples/docs/zh-CN/pagination.md @@ -221,6 +221,7 @@ | popper-class | 每页显示个数选择器的下拉框类名 | string | — | — | | prev-text | 替代图标显示的上一页文字 | string | — | — | | next-text | 替代图标显示的下一页文字 | string | — | — | +| disabled | 是否禁用 | boolean | — | false | ### Events | 事件名称 | 说明 | 回调参数 | diff --git a/packages/pagination/src/pager.vue b/packages/pagination/src/pager.vue index 017db225b..ddc09a0bd 100644 --- a/packages/pagination/src/pager.vue +++ b/packages/pagination/src/pager.vue @@ -1,30 +1,30 @@