Fix the problem that Page sometimes displays garbled characters
This commit is contained in:
parent
2bae54e9fe
commit
fb6845f431
2 changed files with 29 additions and 20 deletions
|
@ -37,7 +37,7 @@
|
|||
<a><template v-if="prevText !== ''">{{ prevText }}</template><i v-else class="ivu-icon ivu-icon-ios-arrow-back"></i></a>
|
||||
</li>
|
||||
<li title="1" :class="firstPageClasses" @click="changePage(1)"><a>1</a></li>
|
||||
<li :title="t('i.page.prev5')" v-if="currentPage > 5" :class="[prefixCls + '-item-jump-prev']" @click="fastPrev"><a><i class="ivu-icon ivu-icon-ios-arrow-back"></i></a></li>
|
||||
<li :title="t('i.page.prev5')" v-if="currentPage > 5" :class="[prefixCls + '-item-jump-prev']" @click="fastPrev"><a><i class="ivu-icon ivu-icon-ios-arrow-back"></i><i class="ivu-icon ivu-icon-ios-more"></i></a></li>
|
||||
<li :title="currentPage - 3" v-if="currentPage === 5" :class="[prefixCls + '-item']" @click="changePage(currentPage - 3)"><a>{{ currentPage - 3 }}</a></li>
|
||||
<li :title="currentPage - 2" v-if="currentPage - 2 > 1" :class="[prefixCls + '-item']" @click="changePage(currentPage - 2)"><a>{{ currentPage - 2 }}</a></li>
|
||||
<li :title="currentPage - 1" v-if="currentPage - 1 > 1" :class="[prefixCls + '-item']" @click="changePage(currentPage - 1)"><a>{{ currentPage - 1 }}</a></li>
|
||||
|
@ -45,7 +45,7 @@
|
|||
<li :title="currentPage + 1" v-if="currentPage + 1 < allPages" :class="[prefixCls + '-item']" @click="changePage(currentPage + 1)"><a>{{ currentPage + 1 }}</a></li>
|
||||
<li :title="currentPage + 2" v-if="currentPage + 2 < allPages" :class="[prefixCls + '-item']" @click="changePage(currentPage + 2)"><a>{{ currentPage + 2 }}</a></li>
|
||||
<li :title="currentPage + 3" v-if="allPages - currentPage === 4" :class="[prefixCls + '-item']" @click="changePage(currentPage + 3)"><a>{{ currentPage + 3 }}</a></li>
|
||||
<li :title="t('i.page.next5')" v-if="allPages - currentPage >= 5" :class="[prefixCls + '-item-jump-next']" @click="fastNext"><a><i class="ivu-icon ivu-icon-ios-arrow-forward"></i></a></li>
|
||||
<li :title="t('i.page.next5')" v-if="allPages - currentPage >= 5" :class="[prefixCls + '-item-jump-next']" @click="fastNext"><a><i class="ivu-icon ivu-icon-ios-arrow-forward"></i><i class="ivu-icon ivu-icon-ios-more"></i></a></li>
|
||||
<li :title="allPages" v-if="allPages > 1" :class="lastPageClasses" @click="changePage(allPages)"><a>{{ allPages }}</a></li>
|
||||
<li
|
||||
:title="t('i.page.next')"
|
||||
|
|
|
@ -77,49 +77,58 @@
|
|||
}
|
||||
|
||||
&-item-jump-prev, &-item-jump-next {
|
||||
&:after {
|
||||
content: "•••";
|
||||
display: block;
|
||||
letter-spacing: 1px;
|
||||
color: #ccc;
|
||||
text-align: center;
|
||||
}
|
||||
//&:after {
|
||||
// content: "•••";
|
||||
// display: block;
|
||||
// letter-spacing: 1px;
|
||||
// color: #ccc;
|
||||
// text-align: center;
|
||||
//}
|
||||
|
||||
i{
|
||||
i:first-child{
|
||||
display: none;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
&:after{
|
||||
display: none;
|
||||
}
|
||||
i{
|
||||
//&:after{
|
||||
// display: none;
|
||||
//}
|
||||
i:first-child{
|
||||
display: inline;
|
||||
}
|
||||
i:last-child{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-with-disabled &-item-jump-prev, &-with-disabled &-item-jump-next{
|
||||
cursor: @cursor-disabled;
|
||||
&:hover {
|
||||
&:after{
|
||||
display: block;
|
||||
}
|
||||
i{
|
||||
color: #ccc;
|
||||
}
|
||||
&:hover {
|
||||
//&:after{
|
||||
// display: block;
|
||||
//}
|
||||
i:first-child{
|
||||
display: none;
|
||||
}
|
||||
i:last-child{
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-item-jump-prev:hover {
|
||||
i:after {
|
||||
i:first-child:after {
|
||||
content: "\F115";
|
||||
margin-left: -8px;
|
||||
}
|
||||
}
|
||||
|
||||
&-item-jump-next:hover {
|
||||
i:after {
|
||||
i:first-child:after {
|
||||
content: "\F11F";
|
||||
margin-left: -8px;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue