el-table-column 结合 dayjs

npm install dayjs
import dayjs from 'dayjs'
<el-table-column
  prop="auditTime"
  label="审核时间"
  width="200"
  :show-overflow-tooltip="true"
  :formatter="formatAuditTime"
></el-table-column>
 formatAuditTime(_row, _column, cellValue) {
   return cellValue ? dayjs(cellValue).format('YYYY/MM/DD hh:mm:ss') : ''
 },

你可能感兴趣的:(javascript,开发语言,ecmascript)