去掉无用代码
This commit is contained in:
parent
0e8e333da5
commit
757ca0bc63
src
10
src/Tree.js
10
src/Tree.js
|
@ -21,7 +21,7 @@ function noop() {}
|
||||||
class Tree extends React.Component {
|
class Tree extends React.Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(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[m] = this[m].bind(this);
|
||||||
});
|
});
|
||||||
this.contextmenuKeys = [];
|
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){
|
onUlMouseEnter(e){
|
||||||
this.isIn = true;
|
this.isIn = true;
|
||||||
|
|
Loading…
Reference in New Issue