|
|
@@ -9,6 +9,7 @@ interface Props extends /* @vue-ignore */ Partial<Omit<TableColumnCtx<T>, 'prop'
|
|
|
zmSortable?: boolean
|
|
|
zmFilterable?: boolean
|
|
|
filterModelValue?: any
|
|
|
+ realValue?: (value: any) => any
|
|
|
}
|
|
|
|
|
|
const emits = defineEmits(['update:filterModelValue'])
|
|
|
@@ -89,7 +90,7 @@ const handleSearchClick = () => {
|
|
|
const calculativeWidth = () => {
|
|
|
console.log('tableContext.data :>> ', tableContext.data.value)
|
|
|
const values = tableContext.data.value.map(
|
|
|
- (item) => props.formatter?.(item[props.prop]) || item[props.prop]
|
|
|
+ (item) => props.realValue?.(item[props.prop]) || item[props.prop]
|
|
|
)
|
|
|
console.log('values :>> ', values)
|
|
|
}
|