提交 e3517d86 编写于 作者: zhentian.jia's avatar zhentian.jia

统一table的css

上级 89c71834
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
<el-button class="add-button" size="small" type="primary" @click="toPage()">新建项目</el-button> <el-button class="add-button" size="small" type="primary" @click="toPage()">新建项目</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-table :data="tableData" :header-cell-style="{background:'#FAFAFA',color:'#000'}"> <el-table :data="tableData" style="width: 100%">
<el-table-column prop="id" label="ID编号" min-width="100" align="center"></el-table-column> <el-table-column prop="id" label="ID编号" min-width="100" align="center"></el-table-column>
<el-table-column prop="projectName" label="项目名称" min-width="100" align="center"></el-table-column> <el-table-column prop="projectName" label="项目名称" min-width="100" align="center"></el-table-column>
<el-table-column prop="createdName" label="创建人" align="center"></el-table-column> <el-table-column prop="createdName" label="创建人" align="center"></el-table-column>
...@@ -380,19 +380,12 @@ export default { ...@@ -380,19 +380,12 @@ export default {
color: #449284; color: #449284;
border-bottom: 1px solid #efefef; border-bottom: 1px solid #efefef;
} }
.table-option span { // .table-option span {
color: #409eff; // color: #409eff;
} // }
.add-button { .add-button {
float: right; float: right;
} }
.el-table .cell {
color: #929292;
}
.el-table th > .cell {
font-weight: bold;
color: #000;
}
} }
} }
</style> </style>
\ No newline at end of file
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
</el-row> </el-row>
<el-table <el-table
:data="tableData" :data="tableData"
:header-cell-style="{background:'#FAFAFA',color:'#000'}" style="width: 100%"
> >
<el-table-column prop="userId" label="用户ID" align="center"></el-table-column> <el-table-column prop="userId" label="用户ID" align="center"></el-table-column>
<el-table-column prop="userName" label="姓名" align="center"></el-table-column> <el-table-column prop="userName" label="姓名" align="center"></el-table-column>
......
...@@ -41,8 +41,7 @@ ...@@ -41,8 +41,7 @@
</el-form> </el-form>
</el-row> </el-row>
<el-table <el-table
:data="tableData" :data="tableData" style="width: 100%"
:header-cell-style="{background:'#FAFAFA',color:'#000'}"
> >
<el-table-column prop="id" label="ID编号" min-width="100" align="center"></el-table-column> <el-table-column prop="id" label="ID编号" min-width="100" align="center"></el-table-column>
<el-table-column prop="projectName" label="项目名称" min-width="100" align="center"></el-table-column> <el-table-column prop="projectName" label="项目名称" min-width="100" align="center"></el-table-column>
...@@ -178,19 +177,16 @@ export default { ...@@ -178,19 +177,16 @@ export default {
.to-right { .to-right {
float: right; float: right;
} }
.table-option span {
color: #409eff;
}
.add-button { .add-button {
float: right; float: right;
} }
.el-table .cell { // .el-table .cell {
color: #929292; // color: #929292;
} // }
.el-table th > .cell { // .el-table th > .cell {
font-weight: bold; // font-weight: bold;
color: #000; // color: #000;
} // }
} }
} }
</style> </style>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册