fix(staff): format time columns in detail modal
YkStaffDetailModal Col gains optional formatter; baseCustomerCols time cols render via formatTime instead of raw epoch. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -12,6 +12,8 @@ interface Col {
|
||||
width?: number | string
|
||||
minWidth?: number | string
|
||||
align?: 'left' | 'center' | 'right'
|
||||
/** el-table-column formatter (row, column, cellValue, index) → display string. */
|
||||
formatter?: (row: any, column: any, cellValue: any, index: number) => string
|
||||
}
|
||||
const props = defineProps<{
|
||||
modelValue: boolean
|
||||
@@ -68,6 +70,7 @@ watch(
|
||||
:width="c.width"
|
||||
:min-width="c.minWidth"
|
||||
:align="c.align"
|
||||
:formatter="c.formatter"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
</el-table>
|
||||
|
||||
Reference in New Issue
Block a user