Skip to content

Commit 70539b6

Browse files
authored
fix: use tooltip to hides table content that exceeds the table length (#199)
fix: use tooltip to hides table content that exceeds the table length Refs: #184 Signed-off-by: seven <[email protected]>
1 parent c0165dc commit 70539b6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/views/manage/components/index-manage.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ const indexTable = computed(() => {
193193
dataIndex: 'aliases',
194194
key: 'aliases',
195195
resizable: true,
196+
ellipsis: { tooltip: true },
196197
render: ({ aliases }: { aliases: Array<ClusterAlias> }) =>
197198
aliases.map(alias =>
198199
h(
@@ -201,8 +202,8 @@ const indexTable = computed(() => {
201202
strong: true,
202203
type: 'default',
203204
tertiary: true,
204-
iconPlacement: 'right',
205-
style: 'margin-right: 8px',
205+
size: 'small',
206+
iconPlacement: 'left',
206207
},
207208
{
208209
default: () => `${alias.alias}`,
@@ -323,13 +324,15 @@ const templateTable = computed(() => {
323324
title: 'Index Patterns',
324325
dataIndex: 'index_patterns',
325326
key: 'index_patterns',
327+
ellipsis: { tooltip: true },
326328
render: ({ index_patterns }: { index_patterns: Array<string> }) =>
327329
index_patterns?.map(pattern => h(NTag, null, { default: () => pattern })),
328330
},
329331
{
330332
title: 'Composed Of',
331333
dataIndex: 'composed_of',
332334
key: 'composed_of',
335+
ellipsis: { tooltip: true },
333336
render: ({ composed_of }: { composed_of: Array<string> }) =>
334337
composed_of?.map(composed => h(NTag, null, { default: () => composed })),
335338
},

0 commit comments

Comments
 (0)