修复attr指令语法的bug;优化主题2的样式;总页数等于1时,仍然显示页码
parent
73aa58ad78
commit
6f6d495667
|
@ -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'],
|
||||||
|
|
Reference in New Issue