Skip to content

Commit

Permalink
perf(frontend): 集群列表列表宽度调整 #9126
Browse files Browse the repository at this point in the history
  • Loading branch information
hLinx authored and iSecloud committed Jan 17, 2025
1 parent 74b3f76 commit 3ce8aec
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<BkTableColumn
field="cluster_stats"
:label="t('容量使用率')"
:width="240">
:width="280">
<template #default="{ data }: { data: IRowData }">
<ClusterStatsCell
:cluster-id="data.id"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
}"
:label="t('版本')"
:min-width="150"
:show-overflow="false">
show-overflow>
<template #default="{ data }: { data: IRowData }">
{{ data.major_version || '--' }}
</template>
Expand All @@ -16,7 +16,7 @@
field="disaster_tolerance_level"
:label="t('容灾要求')"
:min-width="160"
:show-overflow="false">
show-overflow>
<template #default="{ data }: { data: IRowData }">
{{ data.disasterToleranceLevelName || '--' }}
</template>
Expand All @@ -29,7 +29,7 @@
}"
:label="t('地域')"
:min-width="100"
:show-overflow="false">
show-overflow>
<template #default="{ data }: { data: IRowData }">
{{ data.region || '--' }}
</template>
Expand All @@ -38,7 +38,7 @@
field="cluster_spec"
:label="t('规格')"
:min-width="180"
:show-overflow="false">
show-overflow>
<template #default="{ data }: { data: IRowData }">
{{ data.cluster_spec.spec_name || '--' }}
</template>
Expand All @@ -50,7 +50,7 @@
checked: columnCheckedMap.bk_cloud_id,
}"
:label="t('管控区域')"
:show-overflow="false"
show-overflow
:width="120">
<template #default="{ data }: { data: IRowData }">
{{ data.bk_cloud_name ? `${data.bk_cloud_name}[${data.bk_cloud_id}]` : '--' }}
Expand All @@ -59,7 +59,7 @@
<BkTableColumn
field="creator"
:label="t('创建人')"
:show-overflow="false"
show-overflow
:width="140">
<template #default="{ data }: { data: IRowData }">
{{ data.creator || '--' }}
Expand All @@ -68,7 +68,7 @@
<BkTableColumn
field="create_at"
:label="t('部署时间')"
:show-overflow="false"
show-overflow
sort
:width="250">
<template #default="{ data }: { data: IRowData }">
Expand All @@ -82,7 +82,7 @@
checked: columnCheckedMap.time_zone,
}"
:label="t('时区')"
:show-overflow="false"
show-overflow
:width="100">
<template #default="{ data }: { data: IRowData }">
{{ data.cluster_time_zone || '--' }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
<BkTableColumn
:fixed="isStretchLayoutOpen ? false : 'right'"
:label="t('操作')"
:min-width="200"
:min-width="240"
:show-overflow="false">
<template #default="{data}: {data: RedisModel}">
<OperationBtnStatusTips
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
<BkTableColumn
:fixed="isStretchLayoutOpen ? false : 'right'"
:label="t('操作')"
:min-width="230"
:min-width="240"
:show-overflow="false">
<template #default="{data}: {data: RedisModel}">
<OperationBtnStatusTips
Expand Down

0 comments on commit 3ce8aec

Please sign in to comment.