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