去掉无用代码

This commit is contained in:
wanghaoo 2019-03-06 11:04:57 +08:00
parent 0e8e333da5
commit 757ca0bc63
1 changed files with 2 additions and 8 deletions

View File

@ -21,7 +21,7 @@ function noop() {}
class Tree extends React.Component {
constructor(props) {
super(props);
['onKeyDown', 'onCheck',"onUlFocus","_focusDom","onUlMouseDown","onUlMouseEnter","onUlMouseLeave"].forEach((m) => {
['onKeyDown', 'onCheck',"onUlFocus","_focusDom","onUlMouseEnter","onUlMouseLeave"].forEach((m) => {
this[m] = this[m].bind(this);
});
this.contextmenuKeys = [];
@ -574,13 +574,7 @@ onExpand(treeNode,keyType) {
}
onUlMouseDown(e){
// const targetDom = e.target;
// console.log('mouseDown************',e.target);
// if(this.refs.tree !== targetDom){
// e.preventDefault();
// }
}
onUlMouseEnter(e){
this.isIn = true;