forked from Gitlink/forgeplus-react
首页开发者家园部分数据显示
This commit is contained in:
parent
e4474420a8
commit
b639779c71
|
|
@ -812,8 +812,13 @@ body{
|
|||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
span{
|
||||
span.listboxcount{
|
||||
margin-left: 20px;
|
||||
}
|
||||
span.listboxtime{
|
||||
margin-left: 40px;
|
||||
width: 97px;
|
||||
text-align: right;
|
||||
}
|
||||
.listboxcount{
|
||||
min-width: 60px;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import React,{ useState , useEffect , useMemo } from 'react';
|
||||
import { Spin , Skeleton } from 'antd';
|
||||
import moment from 'moment';
|
||||
import T311 from './Img/3-1-1.png';
|
||||
import T312 from './Img/3-1-2.png';
|
||||
import T321 from './Img/3-2-1.png';
|
||||
|
|
@ -141,8 +142,8 @@ function ThirdEdition() {
|
|||
return(
|
||||
<li>
|
||||
<a href={i.url} target="_blank">{i.title}</a>
|
||||
<span className="listboxcount"><i className="iconfont icon-a-liulanicon2x mr5"></i>{i.visits}</span>
|
||||
<span>{i.created_time && i.created_time.split(" ")[0]}</span>
|
||||
{i.from !== "other" && <span className="listboxcount"><i className="iconfont icon-a-liulanicon2x mr5"></i>{i.visits}</span> }
|
||||
{i.from !== "other" && <span className="listboxtime">{i.created_time && moment(i.created_time).format("YYYY-MM-DD")}</span> }
|
||||
</li>
|
||||
)
|
||||
}):""
|
||||
|
|
@ -180,7 +181,7 @@ function ThirdEdition() {
|
|||
<li>
|
||||
<a href={i.url} target="_blank">{i.title}</a>
|
||||
{i.from !== "other" && <span className="listboxcount"><i className="iconfont icon-a-liulanicon2x mr5"></i>{i.visits}</span> }
|
||||
<span>{i.created_time && i.created_time.split(" ")[0]}</span>
|
||||
{i.from !== "other" && <span className="listboxtime">{i.created_time && moment(i.created_time).format("YYYY-MM-DD")}</span> }
|
||||
</li>
|
||||
)
|
||||
}):""
|
||||
|
|
@ -198,8 +199,8 @@ function ThirdEdition() {
|
|||
return(
|
||||
<li>
|
||||
<a href={i.url} target="_blank">{i.title}</a>
|
||||
<span className="listboxcount"><i className="iconfont icon-a-liulanicon2x mr5"></i>{i.visits}</span>
|
||||
<span>{i.created_time && i.created_time.split(" ")[0]}</span>
|
||||
{i.from !== "other" && <span className="listboxcount"><i className="iconfont icon-a-liulanicon2x mr5"></i>{i.visits}</span> }
|
||||
{i.from !== "other" && <span className="listboxtime">{i.created_time && moment(i.created_time).format("YYYY-MM-DD")}</span> }
|
||||
</li>
|
||||
)
|
||||
}):""
|
||||
|
|
|
|||
Loading…
Reference in New Issue