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
5a740a66
Commit
5a740a66
authored
Sep 01, 2022
by
wuyongsheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 暂无相关项目
parent
47fa4ab1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
25 deletions
+39
-25
index.module.css
...ews/Project/components/ProjectListPopper/index.module.css
+6
-0
index.tsx
src/views/Project/components/ProjectListPopper/index.tsx
+33
-25
No files found.
src/views/Project/components/ProjectListPopper/index.module.css
View file @
5a740a66
...
@@ -55,6 +55,12 @@
...
@@ -55,6 +55,12 @@
overflow-y
:
overlay
;
overflow-y
:
overlay
;
border-top
:
1px
solid
#f0f2f5
;
border-top
:
1px
solid
#f0f2f5
;
}
}
.noProjectBox
{
color
:
#edeff2
;
height
:
48px
;
line-height
:
48px
;
text-align
:
center
;
}
.projectli
{
.projectli
{
cursor
:
pointer
;
cursor
:
pointer
;
}
}
...
...
src/views/Project/components/ProjectListPopper/index.tsx
View file @
5a740a66
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 吴永生 15770852798@163.com
* @Author: 吴永生 15770852798@163.com
* @Date: 2022-08-02 11:43:28
* @Date: 2022-08-02 11:43:28
* @LastEditors: 吴永生 15770852798@163.com
* @LastEditors: 吴永生 15770852798@163.com
* @LastEditTime: 2022-0
8-30 19:32:05
* @LastEditTime: 2022-0
9-01 19:49:39
* @FilePath: /bkunyun/src/views/Project/components/ProjectListPopper/index.tsx
* @FilePath: /bkunyun/src/views/Project/components/ProjectListPopper/index.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
@@ -110,33 +110,41 @@ const ProjectListPopper = observer((props: any) => {
...
@@ -110,33 +110,41 @@ const ProjectListPopper = observer((props: any) => {
</
IconButton
>
</
IconButton
>
</
div
>
</
div
>
<
div
className=
{
style
.
projectlist
}
>
<
div
className=
{
style
.
projectlist
}
>
{
list
.
map
((
item
:
any
)
=>
{
{
list
.
length
?
(
return
(
list
.
map
((
item
:
any
)
=>
{
<
div
return
(
className=
{
classNames
({
<
div
[
style
.
projectli
]:
true
,
className=
{
classNames
({
[
style
.
projectliActive
]:
item
.
id
===
currentProjectId
,
[
style
.
projectli
]:
true
,
})
}
[
style
.
projectliActive
]:
item
.
id
===
currentProjectId
,
key=
{
item
.
id
}
})
}
onClick=
{
()
=>
handleChangeCurrentProject
(
item
)
}
key=
{
item
.
id
}
>
onClick=
{
()
=>
handleChangeCurrentProject
(
item
)
}
<
div
className=
{
style
.
projectliBorderBox
}
>
>
<
img
src=
{
smallLogo
}
alt=
""
className=
{
style
.
projectliLogo
}
/>
<
div
className=
{
style
.
projectliBorderBox
}
>
<
div
className=
{
style
.
projectliInfo
}
>
<
img
<
div
className=
{
style
.
projectName
}
>
{
item
.
name
}
</
div
>
src=
{
smallLogo
}
<
div
className=
{
style
.
projectOwnerTime
}
>
alt=
""
<
span
className=
{
style
.
projectOwner
}
title=
{
item
.
owner
}
>
className=
{
style
.
projectliLogo
}
{
item
.
power
}
/>
</
span
>
<
div
className=
{
style
.
projectliInfo
}
>
<
span
className=
{
style
.
projectTime
}
>
<
div
className=
{
style
.
projectName
}
>
{
item
.
name
}
</
div
>
{
moment
(
item
.
createdAt
).
format
(
"YYYY-MM-DD"
)
}
<
div
className=
{
style
.
projectOwnerTime
}
>
</
span
>
<
span
className=
{
style
.
projectOwner
}
title=
{
item
.
owner
}
>
{
item
.
power
}
</
span
>
<
span
className=
{
style
.
projectTime
}
>
{
moment
(
item
.
createdAt
).
format
(
"YYYY-MM-DD"
)
}
</
span
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
);
);
})
})
}
)
:
(
<
div
className=
{
style
.
noProjectBox
}
>
暂无相关项目
</
div
>
)
}
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
...
...
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