Fix: :scroll="{ x: 'max-content' }"

This commit is contained in:
unitwk 2023-12-03 09:41:05 +08:00
parent 0347eb1392
commit 98f6b93225
3 changed files with 12 additions and 3 deletions

View File

@ -222,6 +222,9 @@ const handleChangeNode = async (item: NodeStatus) => {
:columns="columns"
:pagination="false"
size="small"
:scroll="{
x: 'max-content'
}"
>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'operation'">

View File

@ -68,7 +68,9 @@ const dataSource = computed(() => {
<template #title>{{ card.title }}</template>
<template #body>
<a-table
:scroll="{ x: 1360 }"
:scroll="{
x: 'max-content'
}"
:columns="columns"
:data-source="dataSource"
:pagination="false"

View File

@ -225,7 +225,9 @@ onMounted(async () => {
</a-typography-text>
</a-typography-paragraph>
<a-table
:scroll="{ x: 960 }"
:scroll="{
x: 'max-content'
}"
:data-source="imageDataSource"
:columns="imageColumns"
:pagination="{
@ -268,7 +270,9 @@ onMounted(async () => {
</a-typography-text>
</a-typography-paragraph>
<a-table
:scroll="{ x: 960 }"
:scroll="{
x: 'max-content'
}"
:data-source="containerDataSource"
:columns="containerColumns"
:pagination="{