1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-11 03:41:12 +00:00
This commit is contained in:
Michael An
2019-03-14 18:14:11 +08:00
committed by Daniel Pan
parent ff453cb3fb
commit 2050d9f1b9
7 changed files with 181 additions and 183 deletions

View File

@@ -20,7 +20,7 @@ class HistoryList extends React.Component {
this.perPage = 25;
this.state = {
historyList: [],
activeItem: -1,
activeItem: 0,
currentPage: 1,
totalReversionCount: 0,
loading: false
@@ -114,7 +114,7 @@ class HistoryList extends React.Component {
index={index}
key={index}
preItem={arr[preItemIndex]}
/>
/>
);
}) : <Loading/>
}
@@ -132,12 +132,13 @@ HistoryList.propTypes = propTypes;
const HistoryItempropTypes = {
ctime: PropTypes.number,
ctime: PropTypes.string,
onClick: PropTypes.func,
index: PropTypes.number,
preItem: PropTypes.string,
currewntItem: PropTypes.string,
preItem: PropTypes.object,
currewntItem: PropTypes.object,
name: PropTypes.string,
className: PropTypes.string,
};
class HistoryItem extends React.Component {
@@ -152,7 +153,7 @@ class HistoryItem extends React.Component {
}
}
HistoryList.propTypes = HistoryItempropTypes;
HistoryItem.propTypes = HistoryItempropTypes;
export default HistoryList;