Commit 5a740a66 authored by wuyongsheng's avatar wuyongsheng

feat: 暂无相关项目

parent 47fa4ab1
......@@ -55,6 +55,12 @@
overflow-y: overlay;
border-top: 1px solid #f0f2f5;
}
.noProjectBox {
color: #edeff2;
height: 48px;
line-height: 48px;
text-align: center;
}
.projectli {
cursor: pointer;
}
......
......@@ -2,7 +2,7 @@
* @Author: 吴永生 15770852798@163.com
* @Date: 2022-08-02 11:43:28
* @LastEditors: 吴永生 15770852798@163.com
* @LastEditTime: 2022-08-30 19:32:05
* @LastEditTime: 2022-09-01 19:49:39
* @FilePath: /bkunyun/src/views/Project/components/ProjectListPopper/index.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -110,7 +110,8 @@ const ProjectListPopper = observer((props: any) => {
</IconButton>
</div>
<div className={style.projectlist}>
{list.map((item: any) => {
{list.length ? (
list.map((item: any) => {
return (
<div
className={classNames({
......@@ -121,7 +122,11 @@ const ProjectListPopper = observer((props: any) => {
onClick={() => handleChangeCurrentProject(item)}
>
<div className={style.projectliBorderBox}>
<img src={smallLogo} alt="" className={style.projectliLogo} />
<img
src={smallLogo}
alt=""
className={style.projectliLogo}
/>
<div className={style.projectliInfo}>
<div className={style.projectName}>{item.name}</div>
<div className={style.projectOwnerTime}>
......@@ -136,7 +141,10 @@ const ProjectListPopper = observer((props: any) => {
</div>
</div>
);
})}
})
) : (
<div className={style.noProjectBox}>暂无相关项目</div>
)}
</div>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment