<div class="panel-container">
<div>
<table class="table-head" width="80%">
<thead>
<tr>
<th class="headerTable" rowspan="2">名称</th>
<th rowspan="2">性别</th>
<th colspan="2">回来时间</th>
<th colspan="2">出去时间</th>
</tr>
<tr class="num">
<th>准时度</th>
<th>准时率</th>
<th>准时度</th>
<th>准时率</th>
</tr>
</thead>
</table>
</div>
<div class="timeBody">
<table>
<tbody>
<tr v-for="(item, index) in list" :key="index">
<td :title="item.name">{{item.name}}</td>
<td>{{item.sex}}</td>
<td>{{item.outTotal}}</td>
<td>{{item.outPer}}</td>
<td>{{item.inTotal}}</td>
<td>{{item.inPer}}</td>
</tr>
</tbody>
</table>
</div>
</div>
<script>
export default {
data() {
return {
list: [{
name: '地名1',
result: '1',
outTotal: '12',
outPer: '30%',
inTotal: '16',
inPer: '34%'
},{
name: '地名2',
result: '1'
outTotal: '12',
outPer: '30%',
inTotal: '16',
inPer: '34%'
},{
name: '地名3',
result: '0',
outTotal: '12',
outPer: '30%',
inTotal: '16',
inPer: '34%'
}]
}
}
}
</script>
.panel-container {
height: 100%;
.table-head {
width: 100%;
color: #B3BBC7;
border: .01rem solid #2B2F33;
tr {
height: .35rem;
&:first-child {
border-top: .01rem solid #2B2F33;
border-bottom: .01rem solid #2B2F33;
background: #3F4348;
th:first-child, th:nth-child(2) {
width: 13.4%;
}
}
&nth-child(odd) td {
background: #3A3A3A;
}
}
th, td {
background: #3A3E43;
}
td {
text-align: center;
}
}
/deep/ .table-list {
height: 92%;
.ivu-table {
overflow: auto;
.ivu-table-body {
border-bottom: .01rem solid #2B2F33;
}
}
/deep/ thead {
diaplay: none !important;
}
}
.num {
background: #3A3E43;
}
} .timeBody {
height: 91%;
overflow-y: auto;
::-webkit-scrollbar {
display: none;
}
table {
width: 100%;
tbody {
width: 100%;
color: #B3BBC7;
border: .01rem solid #2B2F33;
tr {
width: 100%;
height: .35rem;
&:first-child {
border-top: .01rem solid #2B2F33;
border-bottom: .01rem solid #2B2F33;
background: #3F4348;
}
&:nth-child(odd) td {
background: #3A3E43;
}
}
th, td {
border-right: .01rem solid #2B2F33;
}
td {
text-align: center;
width: 7.2%;
&:nth-of-type(1) {
width: 13.3%;
}
&:nth-of-type(2) {
width: 13.15%;
}
}
}
}
}
}
.timeBody::-webkit-scrollbar {
display: none;
}

Vue中table表头合并的用法的更多相关文章

  1. Vue基础01vue的基本示例,vue的双向数据绑定,vue中常见的几种用法,vue相关常见指令

    自学vue框架,每天记录重要的知识点,与大家分享!有不足之处,希望大家指正. 本篇将讲述:vue的基本示例,vue的双向数据绑定,vue中常见的几种用法,vue相关常见指令 前期学习基础,使用vue. ...

  2. vue中mixin的理解与用法

    vue中提供了一种混合机制--mixins,用来更高效的实现组件内容的复用.最开始我一度认为这个和组件好像没啥区别..后来发现错了.下面我们来看看mixins和普通情况下引入组件有什么区别? 组件在引 ...

  3. vue中computed的作用以及用法

    在vue中computed是计算属性,主要作用是把数据存储到内存中,减少不必要的请求,还可以利用computed给子组件的data赋值. 参考地址:https://www.jianshu.com/p/ ...

  4. Vue中table合并单元格用法

    <table> <tr> <th>地名</th> <th>结果</th> <th>人名</th> < ...

  5. vue中is的作用和用法

    回顾vue官方文档的过程中发现了is这个特性,虽然以我的写代码风格实在用不上,不过还是记录一下这个知识点 is的作用 <ul> <li></li> <li&g ...

  6. react ,ant Design UI中table组件合并单元格并展开详情的问题

    需求:购物车订单列表,如图: 一:单元格合并 遇到这种你会怎么办呢?  单元格合并?  还是其他的方法? 下面是我的处理方式,就是在table 组件的columns上处理,这里拿商品举例,其余的类似, ...

  7. element-ui中table表头表格错误问题解决

    我用的是element-ui v1.4.3 在iframe关闭和切换导航会引起有table的表格错位,解决办法: handleAdminNavTab: function(tab) { var admi ...

  8. vue中computed和watch的用法

    computed用来监控自己定义的变量,该变量不在data里面声明,直接在computed里面定义,然后就可以在页面上进行双向数据绑定展示出结果或者用作其他处理: computed比较适合对多个变量或 ...

  9. vue 中 px转vw的用法

    下面介绍最简单的用法 1 下载依赖 npm install postcss-import postcss-loader postcss-px-to-viewport --save-dev 2 在项目根 ...

随机推荐

  1. MapServer Tutorial——MapServer7.2.1教程学习——第一节用例实践:Example1.2 Static Map with Two Layers

    MapServer Tutorial——MapServer7.2.1教程学习——第一节用例实践:Example1.2 Static Map with Two Layers 一.前言 上一篇博客< ...

  2. nodejs 安装失败 ,出现error 2502 和error2503

    出现error 2502 和error2503是因为win8的权限问题所导致的,具体说就是要以管理员身份进行安装就可以解决,下面详细来说一下. 1.cmd命令行点击以管理员身份运行. 2.这时候就可以 ...

  3. Android stdio 报错 error invoking main method

    打开Android stdio失败 报错:error invoking main method 想想前一天做了什么事?? 昨天把企图把Android Stdio文件包移盘,但是中途截止了,也就是说移动 ...

  4. void的几点用法

    1.可以通过void 0 获取undefined.等同于void(0). void 任意数 === undefined   // true void(0) === undefined  // true ...

  5. 入门项目 A1 start

    ''' 启动文件入口 ''' from core import src import os import sys # 拿到项目的路径 path = os.path.dirname(__file__) ...

  6. oracle累积求和分析函数sum over的使用

    oracle sum()over函数的使用 over不能单独使用,要和分析函数:rank(),dense_rank(),row_number()等一起使用. over函数的参数:over(partit ...

  7. ADO.NET 的五个对象

    首先来一张关系图,了解大概关系. 知道了整个大关系之后,我们在具体看一下他们五个的分工: 1. SqlConnection 在访问数据时,我们首先必须要建立数据库的物理连接.· 2.SqlComman ...

  8. Beta版——爱阅APP功能说明书

    爱阅APP功能说明书 一.引言 通过Alpha发布和一些用户的反馈信息,了解到我们APP存在的问题.针对这些问题我们做了一些修改.以下内容是Beta版的功能说明书. 二.工具 安卓手机 爱阅APP安装 ...

  9. CentOS 7 命令行安装TeamViewer

    由于要通过要远程登录到内网的电脑(一台笔记本),用于在紧急情况下处理服务器故障.刚开始准备使用ssh端口转发,无奈vps转发速度太慢. 后面考虑使用TeamViewer远程控制Windows桌面,但是 ...

  10. Vagrant 创建虚拟环境

    1. 添加box vagrant box add --name centos6.8/cms boxname.box 2.初始化admin环境 vagrant init centos6.8/cms ad ...