Merge branch 'dev_jupyter' of http://bdgit.educoder.net/Hjqreturn/educoder into dev_jupyter

chromesetting
guagne 5 years ago
commit 700d57c0ac

@ -243,12 +243,14 @@ function JupyterTPI (props) {
// title={item.file_path} // title={item.file_path}
mouseLeaveDelay={0.3} mouseLeaveDelay={0.3}
> >
<Icon type="file-text" className="jupyter_icon"/> <div className="sortinxdirection">
<span className="jupyter_name ml10">{item.title}</span> <Icon type="file-text" className="jupyter_icon fl lineheighttaj" />
<a className={"fr color-blue"} <a className="jupyter_name ml10 maxnamewidth150 lineheighttaj colorlineheighttaj" title={item.title}>{item.title}</a>
<a className={"fr color-blue lineheighttaj"}
onClick={() => { onClick={() => {
jsCopy("file_path"+i) jsCopy("file_path"+i)
}}>复制地址</a> }}>复制地址</a>
</div>
<input id={"file_path"+i} className={"file_path_input"} value={item.file_path}/> <input id={"file_path"+i} className={"file_path_input"} value={item.file_path}/>
</Tooltip> </Tooltip>
</li> </li>

@ -122,7 +122,6 @@
.ant-drawer-wrapper-body{ .ant-drawer-wrapper-body{
padding-top: 60px; padding-top: 60px;
background: #070F1A; background: #070F1A;
overflow: hidden !important;
} }
.ant-pagination{ .ant-pagination{
@ -159,3 +158,22 @@
} }
} }
.maxnamewidth150 {
max-width: 150px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
cursor: default;
width: 150px;
}
.sortinxdirection{
display: flex;
flex-direction:row;
}
.lineheighttaj{
line-height: 50px !important;
}
.colorlineheighttaj{
color: #ffffff;
}

@ -33,7 +33,7 @@
.jupyter_item{ .jupyter_item{
line-height:45px; line-height:45px;
//border-bottom: 1px solid rgba(238,238,238, 1); //border-bottom: 1px solid rgba(238,238,238, 1);
padding: 0 30px 0 60px; padding: 0 30px 0 45px;
overflow: hidden; overflow: hidden;
text-overflow:ellipsis; text-overflow:ellipsis;
white-space: nowrap; white-space: nowrap;

@ -243,14 +243,9 @@ class Challengesjupyter extends Component {
enlarge:bool enlarge:bool
}) })
} }
daoruzhon=()=>{ Importingfiles=()=>{
var _iframe = document.getElementById("frame"); // 导入文件
if(_iframe == null || _iframe == undefined || _iframe == ""){
console.log("framenull");
return;
}
console.log("framego");
_iframe.contentWindow.postMessage("Parentwindow", "*");
} }
render() { render() {
@ -414,7 +409,7 @@ class Challengesjupyter extends Component {
}} onClick={()=>this.onclki(true)}></i> }} onClick={()=>this.onclki(true)}></i>
} }
<div className="challenbaocun" ><p <div className="challenbaocun" ><p
className="challenbaocuntest" onClick={()=>this.daoruzhon()}>导入</p> className="challenbaocuntest" onClick={()=>this.Importingfiles()}>导入</p>
</div> </div>
</div> </div>
</div> </div>

Loading…
Cancel
Save