fix:
This commit is contained in:
parent
ccc7441e2d
commit
5dbe978b1d
|
@ -763,10 +763,10 @@ var Tree = function (_React$Component) {
|
||||||
role: 'tree-node'
|
role: 'tree-node'
|
||||||
};
|
};
|
||||||
|
|
||||||
if (props.focusable) {
|
// if (props.focusable) {
|
||||||
// domProps.tabIndex = '0';//需求改成了默认选择第一个节点或者选中的节点
|
// // domProps.tabIndex = '0';//需求改成了默认选择第一个节点或者选中的节点
|
||||||
// domProps.onKeyDown = this.onKeyDown;//添加到具体的treeNode上了
|
// // domProps.onKeyDown = this.onKeyDown;//添加到具体的treeNode上了
|
||||||
}
|
// }
|
||||||
var getTreeNodesStates = function getTreeNodesStates() {
|
var getTreeNodesStates = function getTreeNodesStates() {
|
||||||
_this4.treeNodesStates = {};
|
_this4.treeNodesStates = {};
|
||||||
(0, _util.loopAllChildren)(props.children, function (item, index, pos, keyOrPos, siblingPosition) {
|
(0, _util.loopAllChildren)(props.children, function (item, index, pos, keyOrPos, siblingPosition) {
|
||||||
|
|
|
@ -364,7 +364,6 @@ var onlyTreeNodeWarned = false;
|
||||||
|
|
||||||
function warnOnlyTreeNode() {
|
function warnOnlyTreeNode() {
|
||||||
if (onlyTreeNodeWarned) return;
|
if (onlyTreeNodeWarned) return;
|
||||||
|
|
||||||
onlyTreeNodeWarned = true;
|
onlyTreeNodeWarned = true;
|
||||||
warning(false, 'Tree only accept TreeNode as children.');
|
console.warn('Tree only accept TreeNode as children.');
|
||||||
}
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "bee-tree",
|
"name": "bee-tree",
|
||||||
"version": "1.1.13",
|
"version": "1.1.14",
|
||||||
"description": "Tree ui component for react",
|
"description": "Tree ui component for react",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"react",
|
"react",
|
||||||
|
|
Loading…
Reference in New Issue