style: 调整表格头挤压
This commit is contained in:
@@ -261,6 +261,7 @@ export async function getParamConfigInfo(
|
||||
title: rule.display,
|
||||
dataIndex: rule.name,
|
||||
align: 'left',
|
||||
width: 5,
|
||||
});
|
||||
}
|
||||
result.data.columns = columns;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user