开发中的一些问题

91 阅读1分钟

关于el-table的一些小问题

1.有一条灰色的线

image.png

2.使用fixed属性,固定列,鼠标不能拖动

解决方案

// 问题1的解决
.el-table__fixed::before, .el-table__fixed-right::before{
  background-color:transparent;
}

// 问题2的解决
.el-table__fixed {
  height: auto !important;
  bottom: 10px;
}

.el-table__fixed-right {
  height: auto !important;
  bottom: 10px;
}

tip:bottom可以根据项目需求设置

循环数组,进行v-model,input输入无效

1.定义数组原始值不能是undefined。。null都可以 2.新增一次之后,再次新增input 无效,需要删除v-model的value值