style: 调整表格头挤压

This commit is contained in:
TsMask
2023-11-02 20:36:59 +08:00
parent 17826f916a
commit fa7645bd5d
2 changed files with 11 additions and 2 deletions

View File

@@ -261,6 +261,7 @@ export async function getParamConfigInfo(
title: rule.display,
dataIndex: rule.name,
align: 'left',
width: 5,
});
}
result.data.columns = columns;

View File

@@ -69,6 +69,8 @@ function fnTabActiveTopTag(key: string | number) {
title: t('common.operate'),
key: 'index',
align: 'left',
fixed: 'right',
width: 5,
});
}
} else {
@@ -578,6 +580,7 @@ function arrayChildExpand(key: Record<string, any>, row: Record<string, any>) {
title: rule.display,
dataIndex: rule.name,
align: 'left',
width: 5,
});
}
tableState.arrayChildColumns = columns;
@@ -585,6 +588,8 @@ function arrayChildExpand(key: Record<string, any>, row: Record<string, any>) {
title: t('common.operate'),
key: 'index',
align: 'left',
fixed: 'right',
width: 5,
});
// 设置展开key
@@ -1217,7 +1222,7 @@ onMounted(() => {
:size="tableState.size"
:pagination="false"
:bordered="true"
:scroll="{ x: true }"
:scroll="{ x: tableState.arrayColumns.length * 200, y: 450 }"
:show-expand-column="false"
v-model:expanded-row-keys="tableState.arrayChildExpandKeys"
>
@@ -1373,7 +1378,10 @@ onMounted(() => {
:size="tableState.size"
:pagination="false"
:bordered="true"
:scroll="{ x: true }"
:scroll="{
x: tableState.arrayChildColumns.length * 200,
y: 450,
}"
>
<template #title>
<a-button