ant design vue表格列表时间戳转时间
import moment from 'moment'moment.locale('zh-cn')return [{title: '产品',dataIndex: 'objPortfolio.portfolioName'}, {title: '更新时间',dataIndex: 'updateTime',customRender: (text, row, index) => {.
·
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
}]
更多推荐
已为社区贡献4条内容
所有评论(0)