记一次修改iviewUI table的表头样式

1. 使用table

```

<Table 
:columns="columns1"
 :data="tableData"
 height="400">
</Table>

```

 height="400":给表格加上滚动条

2. 加上样式:

```

/deep/ .ivu-table th.table-head-style {
  background-colorrgb(0183255);
  
}

```

columns1中添加样式了例如:

```

columns1: [
        {
            title: 'Name',
            key: 'name',
            className: 'table-head-style',
        },]

```

这样就可以在

posted @ 2021-01-31 17:46  PromiseAll  阅读(920)  评论(0)    收藏  举报