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" :columns="columns"
:pagination="false" :pagination="false"
size="small" size="small"
:scroll="{
x: 'max-content'
}"
> >
<template #bodyCell="{ column, record }"> <template #bodyCell="{ column, record }">
<template v-if="column.key === 'operation'"> <template v-if="column.key === 'operation'">

View File

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

View File

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