fix: add mouse events

This commit is contained in:
gx-mac 2021-04-07 19:22:40 +08:00
parent 5d72cddcd0
commit 864e286202
1 changed files with 13 additions and 0 deletions

View File

@ -784,6 +784,17 @@ onExpand(treeNode,keyType) {
}
}
onUlMouseEnter(e){
// this.isIn = true;
// console.log('onUlMouseEnter----isIn-----',this.isIn);
}
onUlMouseLeave(e){
// this.isIn = false;
// console.log('onUlMouseLeave----isIn-----',this.isIn);
}
getFilterExpandedKeys(props, expandKeyProp, expandAll) {
const keys = props[expandKeyProp];
if (!expandAll && !props.autoExpandParent) {
@ -1165,6 +1176,8 @@ onExpand(treeNode,keyType) {
if (focusable) {
domProps.onFocus = this.onUlFocus;
domProps.onMouseEnter = this.onUlMouseEnter;
domProps.onMouseLeave = this.onUlMouseLeave;
}
// if (props.focusable) {