111111111111 #1

Open
innov wants to merge 1 commits from 2.1.54-beta into master
2 changed files with 4 additions and 7 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "bee-tree", "name": "bee-tree",
"version": "2.1.53", "version": "2.1.54-beta",
"version-yonui": "2.1.27-yonui.0", "version-yonui": "2.1.27-yonui.0",
"description": "Tree ui component for react", "description": "Tree ui component for react",
"keywords": [ "keywords": [

View File

@ -755,7 +755,7 @@ onExpand(treeNode,keyType) {
const targetDom = e.target; const targetDom = e.target;
// 如果当前tree节点不包括上一个焦点节点会触发此方法 // 如果当前tree节点不包括上一个焦点节点会触发此方法
if(this.tree == targetDom && !this.isIn && !this.tree.contains(e.relatedTarget)){ if(this.tree == targetDom && !this.tree.contains(e.relatedTarget)){
const {onFocus, children} = this.props; const {onFocus, children} = this.props;
const {selectedKeys=[]} = this.state; const {selectedKeys=[]} = this.state;
let tabIndexKey = selectedKeys[0] let tabIndexKey = selectedKeys[0]
@ -786,13 +786,10 @@ onExpand(treeNode,keyType) {
onUlMouseEnter(e){ onUlMouseEnter(e){
this.isIn = true; // console.log('onUlMouseEnter----isIn-----');
// console.log('onUlMouseEnter----isIn-----',this.isIn);
} }
onUlMouseLeave(e){ onUlMouseLeave(e){
this.isIn = false; // console.log('onUlMouseLeave----isIn-----');
// console.log('onUlMouseLeave----isIn-----',this.isIn);
} }
getFilterExpandedKeys(props, expandKeyProp, expandAll) { getFilterExpandedKeys(props, expandKeyProp, expandAll) {