This repository has been archived on 2023-08-30. You can view files and clone it, but cannot push or open issues/pull-requests.
bytedo
/
wcui
Archived
1
0
Fork 0

修复attr指令语法的bug;优化主题2的样式;总页数等于1时,仍然显示页码

old
宇天 2018-06-22 02:51:00 +08:00
parent 73aa58ad78
commit 6f6d495667
1 changed files with 3 additions and 3 deletions

View File

@ -43,8 +43,8 @@ function update(currPage, vm) {
props: { maxPageShow } props: { maxPageShow }
} = vm } = vm
vm.currPage = vm.inputPage = currPage vm.currPage = vm.inputPage = currPage
if (typeof vm.props.onPageChange === 'function') { if (typeof vm.props.pageChanged === 'function') {
vm.props.onPageChange(currPage) vm.props.pageChanged(currPage)
} }
vm.pageList.clear() vm.pageList.clear()
if (totalPage > 1) { if (totalPage > 1) {
@ -180,7 +180,7 @@ export default Anot.component('pager', {
maxPageShow: 5, maxPageShow: 5,
simpleMode: !1, simpleMode: !1,
radius: 3, radius: 3,
onPageChange: Anot.PropsTypes.isFunction(), pageChanged: Anot.PropsTypes.isFunction(),
created: Anot.PropsTypes.isFunction() created: Anot.PropsTypes.isFunction()
}, },
skip: ['classList'], skip: ['classList'],