|
@@ -9,8 +9,7 @@
|
|
|
:class="[quickprevIconClass]"
|
|
|
v-if="showPrevMore"
|
|
|
@mouseenter="quickprevIconClass = 'el-icon-d-arrow-left'"
|
|
|
- @mouseleave="quickprevIconClass = 'el-icon-more'"
|
|
|
- >
|
|
|
+ @mouseleave="quickprevIconClass = 'el-icon-more'">
|
|
|
</li>
|
|
|
<li
|
|
|
v-for="pager in pagers"
|
|
@@ -21,8 +20,7 @@
|
|
|
:class="[quicknextIconClass]"
|
|
|
v-if="showNextMore"
|
|
|
@mouseenter="quicknextIconClass = 'el-icon-d-arrow-right'"
|
|
|
- @mouseleave="quicknextIconClass = 'el-icon-more'"
|
|
|
- >
|
|
|
+ @mouseleave="quicknextIconClass = 'el-icon-more'">
|
|
|
</li>
|
|
|
<li
|
|
|
:class="{ active: currentPage === pageCount }"
|
|
@@ -41,6 +39,16 @@
|
|
|
pageCount: Number
|
|
|
},
|
|
|
|
|
|
+ watch: {
|
|
|
+ showPrevMore(val) {
|
|
|
+ if (!val) this.quickprevIconClass = 'el-icon-more';
|
|
|
+ },
|
|
|
+
|
|
|
+ showNextMore(val) {
|
|
|
+ if (!val) this.quicknextIconClass = 'el-icon-more';
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
methods: {
|
|
|
onPagerClick(event) {
|
|
|
const target = event.target;
|