fix: tooltip too long to show

This commit is contained in:
Lykin 2023-12-16 01:45:28 +08:00
parent c5abaa6573
commit f5611a2635
5 changed files with 30 additions and 6 deletions

View File

@ -58,7 +58,11 @@ const columns = computed(() => [
align: 'center', align: 'center',
titleAlign: 'center', titleAlign: 'center',
ellipsis: { ellipsis: {
tooltip: true, tooltip: {
style: {
maxWidth: '80vw',
},
},
}, },
render: ({ client, addr }, index) => { render: ({ client, addr }, index) => {
let content = '' let content = ''

View File

@ -89,7 +89,11 @@ const fieldColumn = computed(() => ({
titleAlign: 'center', titleAlign: 'center',
resizable: true, resizable: true,
ellipsis: { ellipsis: {
tooltip: true, tooltip: {
style: {
maxWidth: '80vw',
},
},
}, },
filterOptionValue: fieldFilterOption.value, filterOptionValue: fieldFilterOption.value,
className: inEdit.value ? 'clickable' : '', className: inEdit.value ? 'clickable' : '',
@ -114,7 +118,11 @@ const valueColumn = computed(() => ({
ellipsis: displayCode.value ellipsis: displayCode.value
? false ? false
: { : {
tooltip: true, tooltip: {
style: {
maxWidth: '80vw',
},
},
}, },
// filterOptionValue: valueFilterOption.value, // filterOptionValue: valueFilterOption.value,
className: inEdit.value ? 'clickable' : '', className: inEdit.value ? 'clickable' : '',

View File

@ -90,7 +90,11 @@ const valueColumn = computed(() => ({
ellipsis: displayCode.value ellipsis: displayCode.value
? false ? false
: { : {
tooltip: true, tooltip: {
style: {
maxWidth: '80vw',
},
},
}, },
filterOptionValue: valueFilterOption.value, filterOptionValue: valueFilterOption.value,
className: inEdit.value ? 'clickable' : '', className: inEdit.value ? 'clickable' : '',

View File

@ -89,7 +89,11 @@ const valueColumn = computed(() => ({
ellipsis: displayCode.value ellipsis: displayCode.value
? false ? false
: { : {
tooltip: true, tooltip: {
style: {
maxWidth: '80vw',
},
},
}, },
filterOptionValue: valueFilterOption.value, filterOptionValue: valueFilterOption.value,
className: inEdit.value ? 'clickable' : '', className: inEdit.value ? 'clickable' : '',

View File

@ -138,7 +138,11 @@ const valueColumn = computed(() => ({
ellipsis: displayCode.value ellipsis: displayCode.value
? false ? false
: { : {
tooltip: true, tooltip: {
style: {
maxWidth: '80vw',
},
},
}, },
filterOptionValue: valueFilterOption.value, filterOptionValue: valueFilterOption.value,
className: inEdit.value ? 'clickable' : '', className: inEdit.value ? 'clickable' : '',