|
|
@ -38,7 +38,7 @@ const [useProvideViewAggregate, useViewAggregate] = useInjectionState( |
|
|
|
field: gridField, |
|
|
|
field: gridField, |
|
|
|
column: f.field, |
|
|
|
column: f.field, |
|
|
|
index: f.index, |
|
|
|
index: f.index, |
|
|
|
width: `${Number(gridField.width.replace('px', ''))}px` || '180px', |
|
|
|
width: `${Number((gridField.width ?? '').replace('px', ''))}px` || '180px', |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
@ -116,6 +116,8 @@ const [useProvideViewAggregate, useViewAggregate] = useInjectionState( |
|
|
|
const fieldAggregateMapping = _fields.field.reduce((acc, field) => { |
|
|
|
const fieldAggregateMapping = _fields.field.reduce((acc, field) => { |
|
|
|
const f = fields.value.find((f) => f.title === field) |
|
|
|
const f = fields.value.find((f) => f.title === field) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!f?.id) return acc |
|
|
|
|
|
|
|
|
|
|
|
acc[f.id] = gridViewCols.value[f.id].aggregation ?? CommonAggregations.None |
|
|
|
acc[f.id] = gridViewCols.value[f.id].aggregation ?? CommonAggregations.None |
|
|
|
|
|
|
|
|
|
|
|
return acc |
|
|
|
return acc |
|
|
|