ant design vue表格列表时间戳转时间

it2023-06-07  72

import moment from 'moment' moment.locale('zh-cn') return [{ title: '产品', dataIndex: 'objPortfolio.portfolioName' }, { title: '更新时间', dataIndex: 'updateTime', customRender: (text, row, index) => { return moment(text).format('YYYY-MM-DD HH:mm:ss') }, sorter: true, sortOrder: sortedInfo.columnKey === 'updateTime' && sortedInfo.order }, { title: '修改', dataIndex: 'operation', scopedSlots: { customRender: 'operation' }, fixed: 'right', width: 120 }]

 

最新回复(0)