1
continuous-integration/drone/push Build is passing Details

uat_us
caiyiling 2024-09-26 17:21:56 +08:00
parent cd7d261adf
commit 360826ef28
2 changed files with 2 additions and 2 deletions

View File

@ -722,7 +722,7 @@ export default {
span.innerText = column.label span.innerText = column.label
document.body.appendChild(span) document.body.appendChild(span)
const w = span.getBoundingClientRect().width 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) document.body.removeChild(span)
return h('span', column.label) return h('span', column.label)
} }

View File

@ -733,7 +733,7 @@ export default {
span.innerText = column.label span.innerText = column.label
document.body.appendChild(span) document.body.appendChild(span)
const w = span.getBoundingClientRect().width 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) document.body.removeChild(span)
return h('span', column.label) return h('span', column.label)
} }