style: 调整表格头挤压
This commit is contained in:
@@ -261,6 +261,7 @@ export async function getParamConfigInfo(
|
|||||||
title: rule.display,
|
title: rule.display,
|
||||||
dataIndex: rule.name,
|
dataIndex: rule.name,
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
width: 5,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
result.data.columns = columns;
|
result.data.columns = columns;
|
||||||
|
|||||||
@@ -69,6 +69,8 @@ function fnTabActiveTopTag(key: string | number) {
|
|||||||
title: t('common.operate'),
|
title: t('common.operate'),
|
||||||
key: 'index',
|
key: 'index',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
fixed: 'right',
|
||||||
|
width: 5,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -578,6 +580,7 @@ function arrayChildExpand(key: Record<string, any>, row: Record<string, any>) {
|
|||||||
title: rule.display,
|
title: rule.display,
|
||||||
dataIndex: rule.name,
|
dataIndex: rule.name,
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
width: 5,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
tableState.arrayChildColumns = columns;
|
tableState.arrayChildColumns = columns;
|
||||||
@@ -585,6 +588,8 @@ function arrayChildExpand(key: Record<string, any>, row: Record<string, any>) {
|
|||||||
title: t('common.operate'),
|
title: t('common.operate'),
|
||||||
key: 'index',
|
key: 'index',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
fixed: 'right',
|
||||||
|
width: 5,
|
||||||
});
|
});
|
||||||
|
|
||||||
// 设置展开key
|
// 设置展开key
|
||||||
@@ -1217,7 +1222,7 @@ onMounted(() => {
|
|||||||
:size="tableState.size"
|
:size="tableState.size"
|
||||||
:pagination="false"
|
:pagination="false"
|
||||||
:bordered="true"
|
:bordered="true"
|
||||||
:scroll="{ x: true }"
|
:scroll="{ x: tableState.arrayColumns.length * 200, y: 450 }"
|
||||||
:show-expand-column="false"
|
:show-expand-column="false"
|
||||||
v-model:expanded-row-keys="tableState.arrayChildExpandKeys"
|
v-model:expanded-row-keys="tableState.arrayChildExpandKeys"
|
||||||
>
|
>
|
||||||
@@ -1373,7 +1378,10 @@ onMounted(() => {
|
|||||||
:size="tableState.size"
|
:size="tableState.size"
|
||||||
:pagination="false"
|
:pagination="false"
|
||||||
:bordered="true"
|
:bordered="true"
|
||||||
:scroll="{ x: true }"
|
:scroll="{
|
||||||
|
x: tableState.arrayChildColumns.length * 200,
|
||||||
|
y: 450,
|
||||||
|
}"
|
||||||
>
|
>
|
||||||
<template #title>
|
<template #title>
|
||||||
<a-button
|
<a-button
|
||||||
|
|||||||
Reference in New Issue
Block a user