|
|
@@ -108,7 +108,7 @@ const getTextWidth = (text: string, fontSize = 14) => {
|
|
|
|
|
|
const calculativeWidth = () => {
|
|
|
const values = tableContext.data.value
|
|
|
- .map((item) => props.realValue?.(item[props.prop]) || item[props.prop])
|
|
|
+ .map((item) => props.realValue?.(item) || item[props.prop])
|
|
|
.filter(Boolean)
|
|
|
|
|
|
let labelWidth = getTextWidth(bindProps.value.label || '') + 34
|