diff --git a/src/js/pager/index.js b/src/js/pager/index.js index f7e0ddf..38daf88 100644 --- a/src/js/pager/index.js +++ b/src/js/pager/index.js @@ -186,8 +186,8 @@ export default Anot.component('pager', { if ((elem && elem.disabled) || currPage === val) { return } - if (elem) { - if (val && val !== '...') { + if (val && elem) { + if (val !== '...') { let link = elem.dataset.to if (link) { diff --git a/src/js/pager/main.scss b/src/js/pager/main.scss index d4f36f5..37bac16 100644 --- a/src/js/pager/main.scss +++ b/src/js/pager/main.scss @@ -10,15 +10,15 @@ .do-pager {height:auto;text-align:center;font-size:14px;color: nth($cgr, 1); - &.mini {line-height:35px; + &.mini {line-height:30px; + .button,.page {min-width:30px;height:30px} + } + &.medium {line-height:35px; .button,.page {min-width:35px;height:35px} } - &.medium {line-height:40px; + &.large {line-height:40px; .button,.page {min-width:40px;height:40px} } - &.large {line-height:45px; - .button,.page {min-width:45px;height:45px} - } .button,.page {display:inline-block;border:0;color: nth($cgr, 1);text-decoration:none;cursor:pointer;vertical-align:top;font-size:14px;font-weight:100;