Commit e343b661 by xuzhenghua

ui问题

parents a3f2e3b7 34c55862
......@@ -41,8 +41,12 @@ export default class RecordPopup extends Component {
</div>
<div className="table__body">
{
<<<<<<< HEAD
recordList.length>0?
recordList.map((item, index) => {
=======
recordList.length > 0 && recordList.map((item, index) => {
>>>>>>> 34c558626cde36bc53ef82ea62da8a8d7e3881ab
return (<div className="tr__container" key={index}>
<span className="tr">{item.submit_time}</span>
<span className="tr">{item.score}</span>
......@@ -58,6 +62,13 @@ export default class RecordPopup extends Component {
}):
<div className={'notdata'}>暂无测试记录</div>
}
{
recordList.length === 0 && (
<div className="tr__container">
<p>暂无测试记录</p>
</div>
)
}
</div>
</div>
</div>
......
......@@ -74,6 +74,10 @@
&:last-child {
border-bottom: none;
}
p {
color: #525c65;
}
}
}
.notdata{
......
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