@@ -722,7 +722,7 @@ export default {
|
||||
span.innerText = column.label
|
||||
document.body.appendChild(span)
|
||||
const w = span.getBoundingClientRect().width
|
||||
column.minWidth = w > 65 ? w + 10 : w + 30
|
||||
column.minWidth = w > 65 ? w + 10 : w > 60 ? w + 15 : w + 20
|
||||
document.body.removeChild(span)
|
||||
return h('span', column.label)
|
||||
}
|
||||
|
||||
@@ -733,7 +733,7 @@ export default {
|
||||
span.innerText = column.label
|
||||
document.body.appendChild(span)
|
||||
const w = span.getBoundingClientRect().width
|
||||
column.minWidth = w > 65 ? w + 10 : w + 30
|
||||
column.minWidth = w > 65 ? w + 10 : w > 60 ? w + 15 : w + 30
|
||||
document.body.removeChild(span)
|
||||
return h('span', column.label)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user