Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
c3995bdb
Commit
c3995bdb
authored
Apr 02, 2021
by
zangsuyun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修改上下移规则
parent
810f03c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
src/modules/knowledge-base/components/KnowledgeBaseList.jsx
+6
-8
No files found.
src/modules/knowledge-base/components/KnowledgeBaseList.jsx
View file @
c3995bdb
...
...
@@ -3,7 +3,7 @@
* @Author: zangsuyun
* @Date: 2021-03-12 14:49:40
* @LastEditors: zangsuyun
* @LastEditTime: 2021-0
3-31 10:25:56
* @LastEditTime: 2021-0
4-02 10:54:24
* @Copyright: © 2020 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -43,7 +43,7 @@ class KnowledgeBaseList extends React.Component {
};
handleUp
=
(
index
,
record
)
=>
{
if
(
index
===
0
)
{
if
(
index
===
0
&&
this
.
props
.
query
.
current
===
1
)
{
return
;
}
const
params
=
{
...
...
@@ -63,10 +63,7 @@ class KnowledgeBaseList extends React.Component {
const
{
query
,
totalCount
}
=
this
.
props
;
const
{
current
,
size
}
=
query
;
if
(
index
===
query
.
size
-
1
||
totalCount
===
size
*
(
current
-
1
)
+
index
+
1
)
{
if
(
totalCount
===
size
*
(
current
-
1
)
+
index
+
1
)
{
return
;
}
...
...
@@ -324,7 +321,9 @@ class KnowledgeBaseList extends React.Component {
<
div
className=
"operate"
>
<
div
className=
{
index
===
0
?
"operate__item disable"
:
"operate__item"
index
===
0
&&
current
===
1
?
"operate__item disable"
:
"operate__item"
}
onClick=
{
()
=>
this
.
handleUp
(
index
,
record
)
}
>
...
...
@@ -333,7 +332,6 @@ class KnowledgeBaseList extends React.Component {
<
span
className=
"operate__item split"
>
|
</
span
>
<
div
className=
{
index
===
size
-
1
||
totalCount
===
size
*
(
current
-
1
)
+
index
+
1
?
"operate__item disable"
:
"operate__item"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment