From 6f6d4956672b82e7bd001d1e158b8247979273e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Fri, 22 Jun 2018 02:51:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dattr=E6=8C=87=E4=BB=A4?= =?UTF-8?q?=E8=AF=AD=E6=B3=95=E7=9A=84bug;=E4=BC=98=E5=8C=96=E4=B8=BB?= =?UTF-8?q?=E9=A2=982=E7=9A=84=E6=A0=B7=E5=BC=8F;=E6=80=BB=E9=A1=B5?= =?UTF-8?q?=E6=95=B0=E7=AD=89=E4=BA=8E1=E6=97=B6,=E4=BB=8D=E7=84=B6?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=A1=B5=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/js/pager/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/pager/index.js b/src/js/pager/index.js index c1d119a..d55a3da 100644 --- a/src/js/pager/index.js +++ b/src/js/pager/index.js @@ -43,8 +43,8 @@ function update(currPage, vm) { props: { maxPageShow } } = vm vm.currPage = vm.inputPage = currPage - if (typeof vm.props.onPageChange === 'function') { - vm.props.onPageChange(currPage) + if (typeof vm.props.pageChanged === 'function') { + vm.props.pageChanged(currPage) } vm.pageList.clear() if (totalPage > 1) { @@ -180,7 +180,7 @@ export default Anot.component('pager', { maxPageShow: 5, simpleMode: !1, radius: 3, - onPageChange: Anot.PropsTypes.isFunction(), + pageChanged: Anot.PropsTypes.isFunction(), created: Anot.PropsTypes.isFunction() }, skip: ['classList'],