去掉无用代码
This commit is contained in:
parent
0e8e333da5
commit
757ca0bc63
10
src/Tree.js
10
src/Tree.js
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue