1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-12 04:10:47 +00:00
This commit is contained in:
Michael18811380328
2018-12-12 11:52:50 +08:00
parent c481ce26d1
commit 7ba53ba76c
2 changed files with 6 additions and 1 deletions

View File

@@ -9,7 +9,7 @@ const viewerPropTypes = {
lastModified: PropTypes.string,
latestContributor: PropTypes.string,
markdownContent: PropTypes.string,
onContentRendered: PropTypes.func,
onContentRendered: PropTypes.func.isRequired,
activeTitleIndex: PropTypes.number
};

View File

@@ -46,6 +46,10 @@ class MainPanel extends Component {
this.props.onMainNavBarClick(e.target.dataset.path);
}
onContentRendered = (markdownViewer) => {
//
}
render() {
let filePathList = this.props.filePath.split('/');
@@ -107,6 +111,7 @@ class MainPanel extends Component {
lastModified = {this.props.lastModified}
onLinkClick={this.props.onLinkClick}
isFileLoading={this.props.isFileLoading}
onContentRendered={this.onContentRendered}
/>
}
{ !this.props.isViewFileState &&