Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bkunyun
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bkunyun
Commits
afbdcf76
Commit
afbdcf76
authored
Sep 01, 2022
by
chenshouchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目列表样式修改
parent
21d75bb6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
31 deletions
+29
-31
index.module.css
src/views/ConsoleLayout/index.module.css
+1
-10
index.module.css
...ews/Project/components/ProjectListPopper/index.module.css
+10
-13
index.tsx
src/views/Project/components/ProjectListPopper/index.tsx
+18
-8
No files found.
src/views/ConsoleLayout/index.module.css
View file @
afbdcf76
...
@@ -54,6 +54,7 @@
...
@@ -54,6 +54,7 @@
z-index
:
1002
;
z-index
:
1002
;
}
}
.productLi
{
.productLi
{
min-width
:
142px
;
height
:
36px
;
height
:
36px
;
padding
:
7px
50px
7px
16px
;
padding
:
7px
50px
7px
16px
;
font-size
:
14px
;
font-size
:
14px
;
...
@@ -109,16 +110,6 @@
...
@@ -109,16 +110,6 @@
color
:
#8a9099
;
color
:
#8a9099
;
transform
:
rotate
(
180deg
);
transform
:
rotate
(
180deg
);
}
}
/* .ArrowDropDownIconRoot {
color: #8a9099;
transition: all 0.2s !important;
transform: rotate(0);
}
.ArrowDropDownIconRootOpen {
color: #8a9099;
transform: rotate(180deg);
} */
.menuPaper
{
.menuPaper
{
border
:
1px
solid
#f0f2f5
;
border
:
1px
solid
#f0f2f5
;
...
...
src/views/Project/components/ProjectListPopper/index.module.css
View file @
afbdcf76
...
@@ -2,14 +2,6 @@
...
@@ -2,14 +2,6 @@
width
:
calc
(
100vw
-
220px
);
width
:
calc
(
100vw
-
220px
);
height
:
calc
(
100vh
-
57px
);
height
:
calc
(
100vh
-
57px
);
background-color
:
rgba
(
0
,
0
,
0
,
0.5
);
background-color
:
rgba
(
0
,
0
,
0
,
0.5
);
/* width: 260px;
height: calc(100vh - 57px); */
/* width: 260px;
height: calc(100vh - 57px);
background-color: #fff;
border-right: 1px solid #ebedf0;
display: flex;
flex-direction: column; */
}
}
.mainBox
{
.mainBox
{
...
@@ -25,10 +17,11 @@
...
@@ -25,10 +17,11 @@
.searchBox
{
.searchBox
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
height
:
56px
;
height
:
56px
;
padding
:
1
7
px
;
padding
:
1
2px
8px
12px
24
px
;
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
}
}
.searchButton
{
.searchButton
{
width
:
22px
;
width
:
22px
;
...
@@ -48,8 +41,11 @@
...
@@ -48,8 +41,11 @@
}
}
.add
{
.add
{
padding
:
0
15px
;
padding
:
0
15px
;
width
:
22px
;
width
:
32px
;
height
:
22px
;
height
:
32px
;
}
.add
:hover
{
border-radius
:
4px
;
}
}
.addIcon
{
.addIcon
{
color
:
#1e2633
;
color
:
#1e2633
;
...
@@ -96,13 +92,14 @@
...
@@ -96,13 +92,14 @@
overflow
:
hidden
;
overflow
:
hidden
;
}
}
.projectOwnerTime
{
.projectOwnerTime
{
font-size
:
12px
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
}
}
.projectOwner
{
.projectOwner
{
font-size
:
12px
;
color
:
#565c66
;
color
:
#565c66
;
line-height
:
20px
;
line-height
:
20px
;
font-size
:
14px
;
margin-right
:
32px
;
margin-right
:
32px
;
max-width
:
60px
;
max-width
:
60px
;
white-space
:
nowrap
;
white-space
:
nowrap
;
...
@@ -113,5 +110,5 @@
...
@@ -113,5 +110,5 @@
.projectTime
{
.projectTime
{
color
:
#8a9099
;
color
:
#8a9099
;
line-height
:
20px
;
line-height
:
20px
;
font-size
:
1
4
px
;
font-size
:
1
2
px
;
}
}
src/views/Project/components/ProjectListPopper/index.tsx
View file @
afbdcf76
...
@@ -14,8 +14,8 @@ import AddIcon from "@mui/icons-material/Add";
...
@@ -14,8 +14,8 @@ import AddIcon from "@mui/icons-material/Add";
import
classNames
from
"classnames"
;
import
classNames
from
"classnames"
;
import
{
useStores
}
from
"@/store/index"
;
import
{
useStores
}
from
"@/store/index"
;
import
moment
from
"moment"
;
import
moment
from
"moment"
;
import
React
,
{
useMemo
,
useState
}
from
"react"
;
import
React
,
{
useMemo
,
useState
}
from
"react"
;
import
{
useClickAway
}
from
'ahooks'
;
import
{
useClickAway
}
from
"ahooks"
;
import
{
toJS
}
from
"mobx"
;
import
{
toJS
}
from
"mobx"
;
import
{
observer
}
from
"mobx-react-lite"
;
import
{
observer
}
from
"mobx-react-lite"
;
...
@@ -36,21 +36,26 @@ const ProjectListPopper = observer((props: any) => {
...
@@ -36,21 +36,26 @@ const ProjectListPopper = observer((props: any) => {
return
item
.
name
?.
indexOf
(
name
)
!==
-
1
;
return
item
.
name
?.
indexOf
(
name
)
!==
-
1
;
});
});
},
[
projectList
,
name
]);
},
[
projectList
,
name
]);
console
.
log
(
list
);
const
handleProjectBox
=
(
e
:
React
.
SyntheticEvent
)
=>
{
const
handleProjectBox
=
(
e
:
React
.
SyntheticEvent
)
=>
{
setProjectListOpen
(
false
);
setProjectListOpen
(
false
);
};
};
useClickAway
(
useClickAway
(
()
=>
{
()
=>
{
setProjectListOpen
(
false
);
setProjectListOpen
(
false
);
},
},
()
=>
document
.
getElementById
(
'use-click-projectList-mainBox'
),
()
=>
document
.
getElementById
(
"use-click-projectList-mainBox"
)
);
);
return
(
return
(
<
div
className=
{
style
.
projectBox
}
onClick=
{
handleProjectBox
}
>
<
div
className=
{
style
.
projectBox
}
onClick=
{
handleProjectBox
}
>
<
div
className=
{
style
.
mainBox
}
id=
"use-click-projectList-mainBox"
onClick=
{
(
e
:
any
)
=>
e
.
stopPropagation
()
}
>
<
div
className=
{
style
.
mainBox
}
id=
"use-click-projectList-mainBox"
onClick=
{
(
e
:
any
)
=>
e
.
stopPropagation
()
}
>
<
div
className=
{
style
.
searchBox
}
>
<
div
className=
{
style
.
searchBox
}
>
<
IconButton
<
IconButton
type=
"submit"
type=
"submit"
...
@@ -68,6 +73,11 @@ const ProjectListPopper = observer((props: any) => {
...
@@ -68,6 +73,11 @@ const ProjectListPopper = observer((props: any) => {
inputProps=
{
{
"aria-label"
:
"请输入项目名称"
}
}
inputProps=
{
{
"aria-label"
:
"请输入项目名称"
}
}
value=
{
name
}
value=
{
name
}
onChange=
{
nameChange
}
onChange=
{
nameChange
}
sx=
{
{
fontSize
:
"14px"
,
color
:
"rgba(194, 198, 204, 1)"
,
height
:
"22px"
,
}
}
/>
/>
<
IconButton
<
IconButton
onClick=
{
handleClickOpen
}
onClick=
{
handleClickOpen
}
...
...
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