<el-table:data="form.tableData"ref="table"tooltip-effect="dark"borderheight="100%"@selection-change='selectRow'><el-table-columnlabel="项目"align="right"><el-table-columnprop="name"label="数量"><el-table-columnwidth="150"prop="month"label="月份"><template slot-scope="scope"><el-form-item :prop="'tableData.' + scope.$index + '.taskCode'"><el-input v-model="scope.row.new_exceptQuota" :disabled="requestStatus == 'detail'" clearable></el-input></el-form-item></template></el-table-column></el-table-column></el-table-column><el-table-columnlabel="右侧大标题"align="center":key="item"><el-table-columnlabel="第二行第一列"align="center"><template slot-scope="scope"><el-form-item  :prop="'tableData.' + scope.$index + '.taskCode'"><el-input v-model="scope.row.new_exceptQuota" :disabled="requestStatus == 'detail'" clearable></el-input></el-form-item></template></el-table-column>//多个<el-table-column></el-table-column></el-table-column>
</el-table>

样式部分:

/deep/ .el-table th{overflow: initial;
}
/deep/ .el-table thead tr:first-of-type th:first-of-type,
/deep/ .el-table thead tr:nth-of-type(2) th:first-of-type{border-bottom: none;
}
/deep/ .el-table thead tr:first-of-type th:first-of-type .cell{text-align: right;
}
/deep/ .el-table thead tr:nth-of-type(2) th:first-of-type .cell{padding-left: 0;
}
/deep/ .el-table thead tr:last-of-type th:first-of-type .cell{text-align: left;
}
/deep/ .el-table thead tr:first-of-type th:first-of-type:before,
/deep/ .el-table thead tr:last-of-type th:first-of-type:before{content: '';position: absolute;width: 1px;background-color: #666;display: block;
}
/deep/ .el-table thead tr:first-of-type th:first-of-type:before {height: 198px; //根据情况调整top: 0; left: 39px;  //根据情况调整transform: rotate(-34deg);  //根据情况调整transform-origin: top;z-index: 2;
}
/deep/ .el-table thead tr:last-of-type th:first-of-type:before {height: 183px;  //根据情况调整bottom: 0;right: 0;  //根据情况调整transform: rotate(-54deg);  //根据情况调整transform-origin: bottom;
}

完成效果:

element table表格表头显示斜杠/斜线相关推荐

  1. element表格el-table表头显示斜杠

    需求:如上图所示,表格的表头有一个斜杠展示效果 解决方法: 通过穿透修改element原有的样式也是成功将这个效果做了出来,详细单页代码如下,话不多说,直接上代码. <template>& ...

  2. table表格表头单元格添加斜线

    <!DOCTYPE html> <html> <head><title>表格斜线</title><style>html {hei ...

  3. 原生的HTML Table表格实现表头添加斜杠

    原生的HTML Table表格实现表头添加斜杠 其实就是实现类似的这样一个功能,但是呢,方式很多,有的要固定长宽,有的要固定大小,有的要写JS,有的要用动画,很费劲,然后从网上找了一个demo,稍微改 ...

  4. Element UI 之table表格表头过长使用点点…显示,并添加鼠标移入悬浮显示

    Element UI 之table表格表头过长使用点点-显示,并添加鼠标移入悬浮显示 需求 鼠标移入表头 关键点: 1.样式中添加:(如果在scope中会不起作用) .el-table .cell { ...

  5. table表格取消显示表头

    vue之element,使element的table表格不显示表头使用show-header属性:

  6. element table固定表头,表的高度自适应解决方法

    element table固定表头,表的高度自适应解决方法 参考文章: (1)element table固定表头,表的高度自适应解决方法 (2)https://www.cnblogs.com/muou ...

  7. element更改表格表头、行、指定单元格样式

    element更改表格表头.行.指定单元格样式 更改表格的样式 使用header-cell-style属性,可为函数或对象 函数写法 <!-- html --> <el-table ...

  8. element table表格里的多选按钮,根据条件判断是否可以被选中

    element table表格里的多选按钮,根据条件判断是否可以被选中 <el-table v-loading="loading" :data="contentLi ...

  9. element Table表格实现前x行恒展示,不会被折叠,设置点击表头按钮排序。

    table表格前X行恒展示不会被折叠. 表头筛选按钮示意图: // data --渲染的数据(每一列每一行),请求回来的. 默认通过字段名和每一个headers对象中每一个prop来对应起来渲染数据的 ...

最新文章

  1. python怎么画形状_python – matplotlib – 如何绘制随机导向的矩形(或任何形状)?...
  2. 【FPGA】单端口RAM的设计(异步读、同步写)
  3. 复数特征值求特征向量_深刻地认识特征值
  4. 公积金联名卡——提取公积金用,用身份证即可办理
  5. python语法笔记(六)
  6. C++自定义自适应中值滤波
  7. Android之PhotoView使用(原创)
  8. 基于xml技术的操作
  9. TypeError: 'NoneType' object is not subscriptable
  10. Qt杂记-QQuick之Android隐藏状态栏以及状态栏透明(QQuick项目)
  11. mengento 数据库模型
  12. JDK9的安装与配置
  13. linux系统cpu文件,Linux_学堂:当前Linux系统运行的各种参数, 1、CPU   在文件“/proc/ - phpStudy...
  14. opencv 读取视频、打开摄像头、写入视频文件
  15. 智能配电房综合监控系统的探讨
  16. 自动化 夏令营 保研
  17. 工作说明书SOW(Statement Of Work)
  18. 500强企业专家级面试果然是噩梦级,吐血分享成功经验
  19. 四叉树与八叉树原理 / AABB OBB / 碰撞检测优化
  20. cocos creator 加载微信云端图片

热门文章

  1. python短信验证码_Python如何实现手机验证码
  2. 《科技日报》:神州控股、神州信息、神州数码集团携手合力打造 “神州信创云”正式启航
  3. 8个输入法高效使用技巧,大幅提升你的打字效率
  4. 美式期权定价利率衍生证券
  5. 浙大MPA常规批复试上岸经验分享
  6. 新入职百度某员工发飙:前人代码写得像一坨屎,不能忍受,颠覆了对大厂的认知,...
  7. 软件设计师下午真题及参考答案
  8. 流量计专用无线物联模块介绍
  9. (FortiGate)飞塔防火墙配置端口映射(VIP)
  10. net-java-php-python-宠物销售系统计算机毕业设计程序