-
this.moveTos(itm.value )} style={{marginLeft:15,width:itm.title.length>13?200:undefined,color:'#000000',overflow: 'hidden',textOverflow:'ellipsis',whiteSpace: 'nowrap'}}>{itm.title}
+
+
this.moveTos(0)} title={itm.title}>{itm.title}
+
+ {/*
this.moveTos(itm.value )} style={{marginLeft:15,width:itm.title.length>13?200:undefined,color:'#000000',overflow: 'hidden',textOverflow:'ellipsis',whiteSpace: 'nowrap'}}>{itm.title}
*/}
{itm.children.length===0?'':
this.istowshow(itm,filesId)} className="iconfont icon-xiajiantou font-12 ml2">}
@@ -1054,10 +1058,9 @@ class Fileslists extends Component{
filesId&&filesId===itm.id?"":
-
13?tt.title:''} >
- 13?200:undefined,overflow: 'hidden',textOverflow:'ellipsis',whiteSpace: 'nowrap'}} key={ti} id={tt.value} onClick={() => this.moveTos(tt.value )} title={tt.name}>{tt.title}
-
-
+
+
13?200:undefined,overflow: 'hidden',textOverflow:'ellipsis',whiteSpace: 'nowrap'}} key={ti} id={tt.value} onClick={() => this.moveTos(tt.value )} title={tt.title}>{tt.title}
+
)
diff --git a/public/react/src/modules/courses/coursesDetail/CoursesLeftNav.js b/public/react/src/modules/courses/coursesDetail/CoursesLeftNav.js
index e743eb1b9..309f536c7 100644
--- a/public/react/src/modules/courses/coursesDetail/CoursesLeftNav.js
+++ b/public/react/src/modules/courses/coursesDetail/CoursesLeftNav.js
@@ -79,7 +79,8 @@ class Coursesleftnav extends Component{
treeDataid:'',
//默认值
treedefaultValue:'',
- dropdownStyleshow:''
+ dropdownStyleshow:'',
+ treeDataname:''
}
}
@@ -323,7 +324,8 @@ class Coursesleftnav extends Component{
})
tr.map((iem,index)=>{
this.setState({
- treeDataid:iem.value
+ treeDataid:iem.value,
+ treeDataname:iem.title
})
})
}
@@ -1207,7 +1209,7 @@ class Coursesleftnav extends Component{
dropdownClassName={{display:this.state.dropdownStyleshow}}
// dropdownMenuStyle={{display:this.state.dropdownStyleshow}}
treeData={this.state.treeData}
- placeholder="资源(根目录)"
+ placeholder={this.state.treeDataname}
disabled={this.state.showPreson}
defaultValue={this.state.treedefaultValue}
treeDefaultExpandAll