mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-02 07:27:04 +00:00
Display quantity up
This commit is contained in:
@@ -86,7 +86,6 @@ const propTypes = {
|
|||||||
onDeleteRepoTag: PropTypes.func.isRequired,
|
onDeleteRepoTag: PropTypes.func.isRequired,
|
||||||
updateDetail: PropTypes.bool.isRequired,
|
updateDetail: PropTypes.bool.isRequired,
|
||||||
onPageScroll: PropTypes.func.isRequired,
|
onPageScroll: PropTypes.func.isRequired,
|
||||||
itemShowLength: PropTypes.number.isRequired
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class LibContentContainer extends React.Component {
|
class LibContentContainer extends React.Component {
|
||||||
@@ -156,10 +155,6 @@ class LibContentContainer extends React.Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let direntItemsList = direntList.filter((item, index) => {
|
|
||||||
return index < this.props.itemShowLength;
|
|
||||||
})
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<div className="cur-view-container">
|
<div className="cur-view-container">
|
||||||
@@ -195,7 +190,7 @@ class LibContentContainer extends React.Component {
|
|||||||
draftCounts={this.props.draftCounts}
|
draftCounts={this.props.draftCounts}
|
||||||
updateUsedRepoTags={this.props.updateUsedRepoTags}
|
updateUsedRepoTags={this.props.updateUsedRepoTags}
|
||||||
isDirentListLoading={this.props.isDirentListLoading}
|
isDirentListLoading={this.props.isDirentListLoading}
|
||||||
direntList={direntItemsList}
|
direntList={this.props.direntList}
|
||||||
showShareBtn={this.props.showShareBtn}
|
showShareBtn={this.props.showShareBtn}
|
||||||
sortBy={this.props.sortBy}
|
sortBy={this.props.sortBy}
|
||||||
sortOrder={this.props.sortOrder}
|
sortOrder={this.props.sortOrder}
|
||||||
@@ -234,7 +229,7 @@ class LibContentContainer extends React.Component {
|
|||||||
draftCounts={this.props.draftCounts}
|
draftCounts={this.props.draftCounts}
|
||||||
updateUsedRepoTags={this.props.updateUsedRepoTags}
|
updateUsedRepoTags={this.props.updateUsedRepoTags}
|
||||||
isDirentListLoading={this.props.isDirentListLoading}
|
isDirentListLoading={this.props.isDirentListLoading}
|
||||||
direntList={direntItemsList}
|
direntList={this.props.direntList}
|
||||||
onAddFile={this.props.onAddFile}
|
onAddFile={this.props.onAddFile}
|
||||||
onItemClick={this.onItemClick}
|
onItemClick={this.onItemClick}
|
||||||
onItemDelete={this.props.onItemDelete}
|
onItemDelete={this.props.onItemDelete}
|
||||||
@@ -286,7 +281,7 @@ class LibContentContainer extends React.Component {
|
|||||||
draftCounts={this.props.draftCounts}
|
draftCounts={this.props.draftCounts}
|
||||||
updateUsedRepoTags={this.props.updateUsedRepoTags}
|
updateUsedRepoTags={this.props.updateUsedRepoTags}
|
||||||
isDirentListLoading={this.props.isDirentListLoading}
|
isDirentListLoading={this.props.isDirentListLoading}
|
||||||
direntList={direntItemsList}
|
direntList={this.props.direntList}
|
||||||
showShareBtn={this.props.showShareBtn}
|
showShareBtn={this.props.showShareBtn}
|
||||||
sortBy={this.props.sortBy}
|
sortBy={this.props.sortBy}
|
||||||
sortOrder={this.props.sortOrder}
|
sortOrder={this.props.sortOrder}
|
||||||
|
@@ -1346,6 +1346,10 @@ class LibContentView extends React.Component {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let direntItemsList = this.state.direntList.filter((item, index) => {
|
||||||
|
return index < this.state.itemsShowLength;
|
||||||
|
})
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="main-panel o-hidden">
|
<div className="main-panel o-hidden">
|
||||||
<div className="main-panel-north border-left-show">
|
<div className="main-panel-north border-left-show">
|
||||||
@@ -1433,7 +1437,7 @@ class LibContentView extends React.Component {
|
|||||||
readmeMarkdown={this.state.readmeMarkdown}
|
readmeMarkdown={this.state.readmeMarkdown}
|
||||||
updateUsedRepoTags={this.updateUsedRepoTags}
|
updateUsedRepoTags={this.updateUsedRepoTags}
|
||||||
isDirentListLoading={this.state.isDirentListLoading}
|
isDirentListLoading={this.state.isDirentListLoading}
|
||||||
direntList={this.state.direntList}
|
direntList={direntItemsList}
|
||||||
showShareBtn={showShareBtn}
|
showShareBtn={showShareBtn}
|
||||||
sortBy={this.state.sortBy}
|
sortBy={this.state.sortBy}
|
||||||
sortOrder={this.state.sortOrder}
|
sortOrder={this.state.sortOrder}
|
||||||
|
Reference in New Issue
Block a user