update tip info

chromesetting
tangjiang 5 years ago
parent f774e99d70
commit 3ce6ff2e76

@ -4,11 +4,11 @@
* @Github:
* @Date: 2019-12-12 15:04:20
* @LastEditors: tangjiang
* @LastEditTime: 2019-12-13 11:09:27
* @LastEditTime: 2019-12-13 11:25:22
*/
import './index.scss';
import React, { useEffect, useState } from 'react';
import { Spin, Button, Icon } from 'antd';
import { Spin, Button } from 'antd';
function RightPane (props) {
const {
status,
@ -32,9 +32,9 @@ function RightPane (props) {
const loadError = (
<div className="jupyter_load_url_error">
<Icon type="icon-jiazaishibai1" />
<span className="iconfont icon-jiazaishibai1 icon-error"></span>
<p className="jupyter_error_txt">
加载实训出错是否
实训加载失败
<span
className="jupyter_reload"
onClick={handleClickReload}
@ -52,7 +52,7 @@ function RightPane (props) {
useEffect(() => {
if (status === -1) {
setRenderCtx(() => loadInit);
} else if (status === 2 && url) {
} else if (status === 0 && url) {
setRenderCtx(() => (
<div className="jupyter_result">

@ -28,17 +28,29 @@
}
.jupyter_load_url_error{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
// &::before{
// background-color: rgba(0,0,0,.2);
// }
.jupyter_error_txt{
position: relative;
z-index: 1;
font-size: 12px;
.jupyter_reload{
cursor: pointer;
color: #1890ff;
}
}
.icon-error{
position: relative;
color: #DCE0E6;
transform: scale(5);
top: -35px;
}
}
.jupyter_result{

Loading…
Cancel
Save