From fa7645bd5d72c956648bfb3b7dfde1077b1a1c46 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Thu, 2 Nov 2023 20:36:59 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E8=B0=83=E6=95=B4=E8=A1=A8=E6=A0=BC?= =?UTF-8?q?=E5=A4=B4=E6=8C=A4=E5=8E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/configManage/configParam.ts | 1 + src/views/configManage/configParam/index.vue | 12 ++++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/api/configManage/configParam.ts b/src/api/configManage/configParam.ts index 6fd06ea0..fa206d44 100644 --- a/src/api/configManage/configParam.ts +++ b/src/api/configManage/configParam.ts @@ -261,6 +261,7 @@ export async function getParamConfigInfo( title: rule.display, dataIndex: rule.name, align: 'left', + width: 5, }); } result.data.columns = columns; diff --git a/src/views/configManage/configParam/index.vue b/src/views/configManage/configParam/index.vue index aaa0d329..0339c608 100644 --- a/src/views/configManage/configParam/index.vue +++ b/src/views/configManage/configParam/index.vue @@ -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, row: Record) { title: rule.display, dataIndex: rule.name, align: 'left', + width: 5, }); } tableState.arrayChildColumns = columns; @@ -585,6 +588,8 @@ function arrayChildExpand(key: Record, row: Record) { 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, + }" >