Commit a3486899 by chenshu

Merge branch 'feature/chenshu/panel' into dev

parents 0f124a52 83768026
...@@ -114,13 +114,12 @@ class Home extends React.Component { ...@@ -114,13 +114,12 @@ class Home extends React.Component {
formatter: (val) => { formatter: (val) => {
return `${val}` return `${val}`
}, },
range: [0.06, 0.94]
}, },
studyNum: { studyNum: {
formatter: (val) => { formatter: (val) => {
return val return val
}, },
tickCount: 5 tickCount: 5,
} }
}); });
this._chart.axis('time', { this._chart.axis('time', {
...@@ -374,7 +373,7 @@ class Home extends React.Component { ...@@ -374,7 +373,7 @@ class Home extends React.Component {
<div className="study-chart"> <div className="study-chart">
<div className="study-title">学习人数与时长 <div className="study-title">学习人数与时长
<div className="study-select"> <div className="study-select">
<span className="select-word">{moment().subtract(studyTimeRange, 'day').format('MM.DD')} ~ {moment().format('MM.DD')}</span> <span className="select-word">{moment().subtract(studyTimeRange - 1, 'day').format('MM.DD')} ~ {moment().format('MM.DD')}</span>
<Select <Select
style={{ width: 88 }} style={{ width: 88 }}
value={studyTimeRange} value={studyTimeRange}
......
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