This commit is contained in:
wanghaoo 2019-01-14 14:22:56 +08:00
parent ccc7441e2d
commit 5dbe978b1d
3 changed files with 6 additions and 7 deletions

View File

@ -763,10 +763,10 @@ var Tree = function (_React$Component) {
role: 'tree-node'
};
if (props.focusable) {
// domProps.tabIndex = '0';//需求改成了默认选择第一个节点或者选中的节点
// domProps.onKeyDown = this.onKeyDown;//添加到具体的treeNode上了
}
// if (props.focusable) {
// // domProps.tabIndex = '0';//需求改成了默认选择第一个节点或者选中的节点
// // domProps.onKeyDown = this.onKeyDown;//添加到具体的treeNode上了
// }
var getTreeNodesStates = function getTreeNodesStates() {
_this4.treeNodesStates = {};
(0, _util.loopAllChildren)(props.children, function (item, index, pos, keyOrPos, siblingPosition) {

View File

@ -364,7 +364,6 @@ var onlyTreeNodeWarned = false;
function warnOnlyTreeNode() {
if (onlyTreeNodeWarned) return;
onlyTreeNodeWarned = true;
warning(false, 'Tree only accept TreeNode as children.');
console.warn('Tree only accept TreeNode as children.');
}

View File

@ -1,6 +1,6 @@
{
"name": "bee-tree",
"version": "1.1.13",
"version": "1.1.14",
"description": "Tree ui component for react",
"keywords": [
"react",