最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 科技 - 知识百科 - 正文

基于vue2的table分页组件实现方法

来源:懂视网 责编:小OO 时间:2020-11-27 20:22:40
文档

基于vue2的table分页组件实现方法

本文实例为大家分享了vue2 table分页组件的具体代码,供大家参考,具体内容如下:pagination.js。;pagination.css。;ul.li {margin: 0;padding: 0;}.page-bar {-webkit-touch-callout: none;-webkit-user-select: none;-khtml-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;float: right;border-radius: 4px;}.page-bar .info{float: left;margin-left:16px。
推荐度:
导读本文实例为大家分享了vue2 table分页组件的具体代码,供大家参考,具体内容如下:pagination.js。;pagination.css。;ul.li {margin: 0;padding: 0;}.page-bar {-webkit-touch-callout: none;-webkit-user-select: none;-khtml-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;float: right;border-radius: 4px;}.page-bar .info{float: left;margin-left:16px。

这篇文章主要为大家详细介绍了基于vue2的table分页组件实现方法,具有一定的参考价值,感兴趣的小伙伴们可以参考一下

本文实例为大家分享了vue2 table分页组件的具体代码,供大家参考,具体内容如下

pagination.js:

pagination.css:

ul, li {
margin: 0;
padding: 0;
}


.page-bar {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
float: right;
border-radius: 4px;
}
.page-bar .info{
float: left;
margin-left:16px;
font-size: 16px;
height: 100%;
}
.page-bar .showpages{
float: left;
font-size: 16px;
margin-left: 16px;
height: 100%;
}
.page-bar .showpages .showpages-select{
width: 70px;
margin: 0 10px;
height: 28px
}
.page-bar .pagesbtn{
float: left;
margin-left:16px;
width: 650px;
height: 100%;
}
.page-bar .pagesbtn ul{
text-align: center;
width: 100%;
}
.page-button-disabled {
color:#ddd !important;
}
.page-bar li {
list-style: none;
display: inline-block;
}


.page-bar li:first-child > a {
margin-left: 0;
}


.page-bar a {
border: 1px solid #ddd;
text-decoration: none;
position: relative;
float: left;
padding: 6px 12px;
line-height: 1.42857143;
color: #337ab7;
cursor: pointer;
}


.page-bar a:hover {
background-color: #eee;
}


.page-bar .active a {
color: #fff;
cursor: default;
background-color: #1e7aca;
border-color: #1e7aca;
}


.page-bar i {
font-style: normal;
color: #1e7aca;
margin: 0 4px;
font-size: 12px;
}

index.html:

<table class="table table-bordered table-hover "id="ggztable" v-show="isAddSpecifications">
 <thead>
 <tr>
 <th>规格值</th>
 <th>操作</th>
 </tr>
 </thead>
 <tbody>
 <tr v-for="(item,nn) in limitTemps">
 <td>{{item.value}}</td>
 <td>
 <img src='../img/common_edit@25.png' data-toggle="modal"
 data-target="#editSonModal" @click="editSonModal(item,nn)" alt='修改'>
 <img src='../img/common_del@25.png' data-toggle="modal"
 data-target="#delSonModal" @click="delSonModal(nn)" alt='删除'>
 </td>
 </tr>
 </tbody>
 </table>
<vue-pagination :cur="specificationValCur":all="specificationValAll":info="specificationValInfo" :showpages="specificationValShowpages":selected="specificationValselected"
 v-on:mypage="getPage" v-on:pageschange="getspecificationValShowPages">

</vue-pagination>

index.js

文档

基于vue2的table分页组件实现方法

本文实例为大家分享了vue2 table分页组件的具体代码,供大家参考,具体内容如下:pagination.js。;pagination.css。;ul.li {margin: 0;padding: 0;}.page-bar {-webkit-touch-callout: none;-webkit-user-select: none;-khtml-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;float: right;border-radius: 4px;}.page-bar .info{float: left;margin-left:16px。
推荐度:
标签: VUE 实现 组件
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top