File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed
Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 1111 :runsItems =" runsItems"
1212 ></ui-image >
1313
14- <v-pagination v-if =" total > pageSize"
14+ <v-pagination class =" visual-dl-sm-pagination"
15+ v-if =" total > pageSize"
1516 v-model =" currentPage"
16- :length =" total"
17- :total-visible =" pageSize"
17+ :length =" pageLength"
1818 ></v-pagination >
1919 </ui-expand-panel >
2020 </div >
@@ -45,13 +45,14 @@ export default {
4545
4646 filteredPageList () {
4747 let list = this .filteredRunsList || [];
48- let currentPage = this .currentPage ;
49- let pageSize = this .pageSize ;
50- return list .slice ((currentPage - 1 ) * pageSize, currentPage * pageSize);
48+ return list .slice ((this .currentPage - 1 ) * this .pageSize , this .currentPage * this .pageSize );
5149 },
5250 total () {
53- let list = this .tagList || [];
51+ let list = this .filteredRunsList || [];
5452 return list .length ;
53+ },
54+ pageLength () {
55+ return Math .ceil (this .total / this .pageSize )
5556 }
5657 },
5758 data () {
Original file line number Diff line number Diff line change 1919 <v-pagination
2020 v-if =" total > pageSize"
2121 v-model =" currentPage"
22- :length =" total"
23- :total-visible =" pageSize"
22+ :length =" pageLength"
2423 />
2524 </ui-expand-panel >
2625 </div >
@@ -56,6 +55,9 @@ export default {
5655 total () {
5756 let tagList = this .tagList || [];
5857 return tagList .length ;
58+ },
59+ pageLength () {
60+ return Math .ceil (this .total / this .pageSize )
5961 }
6062 },
6163 data () {
You can’t perform that action at this time.
0 commit comments