style(components): 优化表格组件样式

- 移除 YlTable 组件中表格列的固定宽度属性
- 添加表头的圆角样式
- 在 AnalysisInfo组件中为表格添加上边距
This commit is contained in:
du.meimei
2025-05-19 19:32:16 +08:00
parent 54d47ee45f
commit 669104e477
2 changed files with 4 additions and 1 deletions

View File

@@ -43,7 +43,6 @@ function setStripeColor(rowData: { row: any; rowIndex: number }): string {
v-for="item in props"
:prop="item.prop"
:label="item.label"
:width="item.width"
show-overflow-tooltip
/>
</el-table>
@@ -57,4 +56,7 @@ function setStripeColor(rowData: { row: any; rowIndex: number }): string {
:deep(.odd-row) {
background-color: #fafbfa;
}
:deep(.el-table__header-wrapper) {
border-radius: 8px 8px 0 0;
}
</style>

View File

@@ -17,6 +17,7 @@
<!-- 问题表格部分 -->
<yl-table
class="mt10"
:props="getTableHeadProps(analysis.head, analysis.option)"
:data="getTableData(analysis)"
v-if="analysis.head"