style(components): 优化表格组件样式
- 移除 YlTable 组件中表格列的固定宽度属性 - 添加表头的圆角样式 - 在 AnalysisInfo组件中为表格添加上边距
This commit is contained in:
@@ -43,7 +43,6 @@ function setStripeColor(rowData: { row: any; rowIndex: number }): string {
|
|||||||
v-for="item in props"
|
v-for="item in props"
|
||||||
:prop="item.prop"
|
:prop="item.prop"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:width="item.width"
|
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
</el-table>
|
</el-table>
|
||||||
@@ -57,4 +56,7 @@ function setStripeColor(rowData: { row: any; rowIndex: number }): string {
|
|||||||
:deep(.odd-row) {
|
:deep(.odd-row) {
|
||||||
background-color: #fafbfa;
|
background-color: #fafbfa;
|
||||||
}
|
}
|
||||||
|
:deep(.el-table__header-wrapper) {
|
||||||
|
border-radius: 8px 8px 0 0;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
<!-- 问题表格部分 -->
|
<!-- 问题表格部分 -->
|
||||||
<yl-table
|
<yl-table
|
||||||
|
class="mt10"
|
||||||
:props="getTableHeadProps(analysis.head, analysis.option)"
|
:props="getTableHeadProps(analysis.head, analysis.option)"
|
||||||
:data="getTableData(analysis)"
|
:data="getTableData(analysis)"
|
||||||
v-if="analysis.head"
|
v-if="analysis.head"
|
||||||
|
|||||||
Reference in New Issue
Block a user