mirror of
https://github.com/YMFE/yapi.git
synced 2025-01-24 13:14:16 +08:00
opti: 分组动态样式微调
This commit is contained in:
parent
bf557c5441
commit
81e387ab96
@ -6,6 +6,7 @@ import { formatTime } from '../../common.js';
|
||||
import { Link } from 'react-router-dom'
|
||||
import { fetchNewsData, fetchMoreNews } from '../../reducer/modules/news.js'
|
||||
import ErrMsg from '../ErrMsg/ErrMsg.js';
|
||||
import './TimeLine.scss';
|
||||
|
||||
function timeago(timestamp) {
|
||||
let minutes, hours, days, seconds, mouth, year;
|
||||
@ -56,7 +57,7 @@ function timeago(timestamp) {
|
||||
// timeago(new Date().getTime() - 40);
|
||||
|
||||
@connect(
|
||||
|
||||
|
||||
state => {
|
||||
return {
|
||||
newsData: state.news.newsData,
|
||||
@ -93,7 +94,7 @@ class TimeTree extends Component {
|
||||
|
||||
getMore() {
|
||||
const that = this;
|
||||
|
||||
|
||||
if (this.props.curpage <= this.props.newsData.total) {
|
||||
|
||||
this.setState({ loading: true });
|
||||
|
@ -14,17 +14,28 @@
|
||||
color: #6b6c6d;
|
||||
.ant-timeline-item{
|
||||
min-height: 60px;
|
||||
.ant-timeline-item-head-custom {
|
||||
padding: 0;
|
||||
width: 0;
|
||||
}
|
||||
.ant-timeline-item-head{
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
left: -13px;
|
||||
top:8px;
|
||||
// border-color:#e1e3e4;
|
||||
border:2px solid #e1e3e4;
|
||||
border-radius: 50%;
|
||||
// width: 40px;
|
||||
// height: 40px;
|
||||
// left: -13px;
|
||||
top: 13px;
|
||||
// // border-color:#e1e3e4;
|
||||
// border:2px solid #e1e3e4;
|
||||
// border-radius: 50%;
|
||||
}
|
||||
.ant-timeline-item-tail{
|
||||
top: 30px;
|
||||
// top: 30px;
|
||||
}
|
||||
.ant-avatar {
|
||||
border: 2px solid #e1e3e4;
|
||||
box-sizing: content-box;
|
||||
border-radius: 50%;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
}
|
||||
}
|
||||
.ant-avatar{
|
||||
|
Loading…
Reference in New Issue
Block a user