diff --git a/.gitignore b/.gitignore index 4126ce56..8aae36ae 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .storybook +.vscode *.iml *.log .doc/ diff --git a/src/NodeList.tsx b/src/NodeList.tsx index 8ac8f629..bc3a5062 100644 --- a/src/NodeList.tsx +++ b/src/NodeList.tsx @@ -326,6 +326,7 @@ const NodeList = React.forwardRef>((props, ref) itemHeight={itemHeight} prefixCls={`${prefixCls}-list`} ref={listRef} + role="tree" onVisibleChange={originList => { // The best match is using `fullList` - `originList` = `restList` // and check the `restList` to see if has the MOTION_KEY node diff --git a/src/Tree.tsx b/src/Tree.tsx index bc460584..050930dd 100644 --- a/src/Tree.tsx +++ b/src/Tree.tsx @@ -1468,7 +1468,6 @@ class Tree extends Rea }} >
{ - const { checked, halfChecked, disableCheckbox } = this.props; + const { checked, halfChecked, disableCheckbox, title } = this.props; const { context: { prefixCls }, } = this.props; @@ -374,6 +374,10 @@ class InternalTreeNode extends React.Component {$custom} @@ -545,6 +549,8 @@ class InternalTreeNode extends React.Component