This commit is contained in:
caishi 2020-05-22 16:58:48 +08:00
parent d30f245d01
commit faef6a2638
2 changed files with 5 additions and 5 deletions

View File

@ -291,17 +291,17 @@ class CoderRootDirectory extends Component{
</a>
),
},{
dataIndex:"message",
dataIndex:"commit",
width:"60%",
render:(text,item)=>
(
item.commit && item.commit.message ? <span>{item.commit.message}</span> :""
)
},{
dataIndex:"created_at",
dataIndex:"commit",
width:"10%",
render:(text)=>(
text ? <span>{Time(`${text}`)}</span> :""
render:(text,item)=>(
item.commit && item.commit.time_from_now ? <a title={item.commit.created_at} style={{cursor:"default",color:"#888"}}>{item.commit.time_from_now}</a> :""
)
}
];

View File

@ -13,7 +13,7 @@ export default ()=>{
& span{
margin:0px 15px;
color:#BBB;
line-height:32px;
line-height:35px;
}
`;