mirror of https://github.com/openspug/spug
U: 支持文件管理按修改日期排序;ISSUE#588
parent
9530ee14c9
commit
dd9889dcde
|
@ -18,6 +18,7 @@ import { AuthButton, Action } from 'components';
|
|||
import { http, uniqueId, X_TOKEN } from 'libs';
|
||||
import lds from 'lodash';
|
||||
import styles from './index.module.less'
|
||||
import moment from 'moment';
|
||||
|
||||
|
||||
class FileManager extends React.Component {
|
||||
|
@ -72,6 +73,7 @@ class FileManager extends React.Component {
|
|||
}, {
|
||||
title: '修改时间',
|
||||
dataIndex: 'date',
|
||||
sorter: (a, b) => { return moment(a.date).unix() - moment(b.date).unix()},
|
||||
width: 190
|
||||
}, {
|
||||
title: '属性',
|
||||
|
|
Loading…
Reference in New Issue