TAB键选中树后,默认聚焦在第一个(已选中)节点,并显示 focus 状态
This commit is contained in:
parent
f604cb7903
commit
e65b4b18bf
|
@ -731,7 +731,12 @@ var Tree = function (_React$Component) {
|
|||
// 如果是多选tree则进行选中或者反选该节点
|
||||
props.checkable && this.onCheck(treeNode);
|
||||
} else if (e.keyCode == _tinperBeeCore.KeyCode.ENTER) {
|
||||
this.onDoubleClick(treeNode);
|
||||
if (props.onDoubleClick) {
|
||||
this.onDoubleClick(treeNode);
|
||||
} else {
|
||||
this.onSelect(treeNode);
|
||||
props.checkable && this.onCheck(treeNode);
|
||||
}
|
||||
}
|
||||
this.props.keyFun && this.props.keyFun(e, treeNode);
|
||||
// e.preventDefault();
|
||||
|
@ -759,18 +764,26 @@ var Tree = function (_React$Component) {
|
|||
|
||||
// 如果当前tree节点不包括上一个焦点节点会触发此方法
|
||||
if (this.tree == targetDom && !this.isIn && !this.tree.contains(e.relatedTarget)) {
|
||||
var onFocus = this.props.onFocus;
|
||||
var _props3 = this.props,
|
||||
onFocus = _props3.onFocus,
|
||||
children = _props3.children;
|
||||
var _state$selectedKeys = this.state.selectedKeys,
|
||||
selectedKeys = _state$selectedKeys === undefined ? [] : _state$selectedKeys;
|
||||
|
||||
var tabIndexKey = selectedKeys[0];
|
||||
var isExist = false;
|
||||
var treeNode = children.length && children[0];
|
||||
var eventKey = treeNode.props.eventKey || treeNode.key;
|
||||
if (this.selectKeyDomExist && tabIndexKey || !tabIndexKey) {
|
||||
isExist = true;
|
||||
var queryInfo = 'a[pos="' + this.selectKeyDomPos + '"]';
|
||||
var parentEle = (0, _util.closest)(e.target, ".u-tree");
|
||||
var focusEle = parentEle ? parentEle.querySelector(queryInfo) : null;
|
||||
focusEle && focusEle.focus();
|
||||
// TAB键选中树后,默认聚焦在第一个(已选中)节点,并显示 focus 状态。
|
||||
this.setState({
|
||||
focusKey: tabIndexKey || eventKey
|
||||
});
|
||||
}
|
||||
var onFocusRes = onFocus && onFocus(isExist);
|
||||
if (onFocusRes instanceof Promise) {
|
||||
|
@ -1034,23 +1047,23 @@ var Tree = function (_React$Component) {
|
|||
|
||||
var props = this.props;
|
||||
|
||||
var _props3 = this.props,
|
||||
showLine = _props3.showLine,
|
||||
prefixCls = _props3.prefixCls,
|
||||
className = _props3.className,
|
||||
focusable = _props3.focusable,
|
||||
checkable = _props3.checkable,
|
||||
loadData = _props3.loadData,
|
||||
checkStrictly = _props3.checkStrictly,
|
||||
tabIndexValue = _props3.tabIndexValue,
|
||||
lazyLoad = _props3.lazyLoad,
|
||||
getScrollContainer = _props3.getScrollContainer,
|
||||
defaultExpandedKeys = _props3.defaultExpandedKeys,
|
||||
defaultSelectedKeys = _props3.defaultSelectedKeys,
|
||||
defaultCheckedKeys = _props3.defaultCheckedKeys,
|
||||
openAnimation = _props3.openAnimation,
|
||||
draggable = _props3.draggable,
|
||||
others = _objectWithoutProperties(_props3, ['showLine', 'prefixCls', 'className', 'focusable', 'checkable', 'loadData', 'checkStrictly', 'tabIndexValue', 'lazyLoad', 'getScrollContainer', 'defaultExpandedKeys', 'defaultSelectedKeys', 'defaultCheckedKeys', 'openAnimation', 'draggable']);
|
||||
var _props4 = this.props,
|
||||
showLine = _props4.showLine,
|
||||
prefixCls = _props4.prefixCls,
|
||||
className = _props4.className,
|
||||
focusable = _props4.focusable,
|
||||
checkable = _props4.checkable,
|
||||
loadData = _props4.loadData,
|
||||
checkStrictly = _props4.checkStrictly,
|
||||
tabIndexValue = _props4.tabIndexValue,
|
||||
lazyLoad = _props4.lazyLoad,
|
||||
getScrollContainer = _props4.getScrollContainer,
|
||||
defaultExpandedKeys = _props4.defaultExpandedKeys,
|
||||
defaultSelectedKeys = _props4.defaultSelectedKeys,
|
||||
defaultCheckedKeys = _props4.defaultCheckedKeys,
|
||||
openAnimation = _props4.openAnimation,
|
||||
draggable = _props4.draggable,
|
||||
others = _objectWithoutProperties(_props4, ['showLine', 'prefixCls', 'className', 'focusable', 'checkable', 'loadData', 'checkStrictly', 'tabIndexValue', 'lazyLoad', 'getScrollContainer', 'defaultExpandedKeys', 'defaultSelectedKeys', 'defaultCheckedKeys', 'openAnimation', 'draggable']);
|
||||
|
||||
var customProps = _extends({}, (0, _omit2["default"])(others, ['showIcon', 'cancelUnSelect', 'onCheck', 'selectable', 'autoExpandParent', 'defaultExpandAll', 'onExpand', 'autoSelectWhenFocus', 'expandWhenDoubleClick', 'expandedKeys', 'keyFun', 'openIcon', 'closeIcon', 'treeData', 'checkedKeys', 'selectedKeys', 'renderTreeNodes', 'mustExpandable', 'onMouseEnter', 'onMouseLeave', 'onDoubleClick']));
|
||||
var _state = this.state,
|
||||
|
@ -1175,9 +1188,9 @@ var _initialiseProps = function _initialiseProps() {
|
|||
var _this7 = this;
|
||||
|
||||
this.hasTreeNode = function () {
|
||||
var _props4 = _this7.props,
|
||||
children = _props4.children,
|
||||
treeData = _props4.treeData;
|
||||
var _props5 = _this7.props,
|
||||
children = _props5.children,
|
||||
treeData = _props5.treeData;
|
||||
|
||||
var noTreeNode = typeof children === 'undefined' || (typeof children === 'undefined' ? 'undefined' : _typeof(children)) === 'object' && children.length === 0 || (typeof treeData === 'undefined' ? 'undefined' : _typeof(treeData)) === 'object' && treeData.length === 0;
|
||||
return !noTreeNode;
|
||||
|
@ -1246,9 +1259,9 @@ var _initialiseProps = function _initialiseProps() {
|
|||
};
|
||||
|
||||
this.renderTreefromData = function (data) {
|
||||
var _props5 = _this7.props,
|
||||
renderTitle = _props5.renderTitle,
|
||||
renderTreeNodes = _props5.renderTreeNodes;
|
||||
var _props6 = _this7.props,
|
||||
renderTitle = _props6.renderTitle,
|
||||
renderTreeNodes = _props6.renderTreeNodes;
|
||||
|
||||
if (renderTreeNodes) {
|
||||
return renderTreeNodes(data);
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -83,7 +83,6 @@
|
|||
.u-tree li a[draggable],
|
||||
.u-tree li a[draggable="true"] {
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
/* Required to make elements draggable in old WebKit */
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "bee-tree",
|
||||
"version": "2.1.10",
|
||||
"version": "2.1.12",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -37,7 +37,7 @@
|
|||
},
|
||||
"accepts": {
|
||||
"version": "1.3.7",
|
||||
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/accepts/-/accepts-1.3.7.tgz",
|
||||
"integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==",
|
||||
"requires": {
|
||||
"mime-types": "~2.1.24",
|
||||
|
@ -54,12 +54,12 @@
|
|||
},
|
||||
"array-flatten": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/array-flatten/-/array-flatten-1.1.1.tgz",
|
||||
"integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI="
|
||||
},
|
||||
"asap": {
|
||||
"version": "2.0.6",
|
||||
"resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/asap/-/asap-2.0.6.tgz",
|
||||
"integrity": "sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY="
|
||||
},
|
||||
"assertion-error": {
|
||||
|
@ -83,7 +83,7 @@
|
|||
"integrity": "sha1-jknIkVIbSmpu9eUAmDI2Uv0FxPE=",
|
||||
"requires": {
|
||||
"classnames": "^2.2.5",
|
||||
"tinper-bee-core": "^2.0.32"
|
||||
"tinper-bee-core": "^2.0.34"
|
||||
}
|
||||
},
|
||||
"bee-button": {
|
||||
|
@ -93,17 +93,17 @@
|
|||
"requires": {
|
||||
"babel-runtime": "^6.23.0",
|
||||
"classnames": "^2.2.5",
|
||||
"tinper-bee-core": "^2.0.32"
|
||||
"tinper-bee-core": "^2.0.34"
|
||||
}
|
||||
},
|
||||
"bee-checkbox": {
|
||||
"version": "2.0.6",
|
||||
"resolved": "https://registry.npmjs.org/bee-checkbox/-/bee-checkbox-2.0.6.tgz",
|
||||
"integrity": "sha512-Vyz1cZGoX2QowWsZ7A7Oz2TUReweLxZaa5Ot0VPiqquCBJ2gdSqo0NjZMgjBmrab9b2vwDMOq7poDkgORoaqrA==",
|
||||
"version": "2.0.9",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/bee-checkbox/-/bee-checkbox-2.0.9.tgz",
|
||||
"integrity": "sha512-CGai4cYq/74u5qAaJ9icMguunPFV2QSAVNxeaIfLP2IAxiKaP2PYMB7julv+yiWBoGEaAIioPD11IEQabe0t0Q==",
|
||||
"requires": {
|
||||
"classnames": "^2.2.5",
|
||||
"lodash.isequal": "^4.5.0",
|
||||
"tinper-bee-core": "^2.0.32"
|
||||
"tinper-bee-core": "^2.0.34"
|
||||
}
|
||||
},
|
||||
"bee-clipboard": {
|
||||
|
@ -114,14 +114,14 @@
|
|||
"requires": {
|
||||
"babel-runtime": "^6.26.0",
|
||||
"bee-button": "^2.0.11",
|
||||
"bee-form-control": "^2.0.3",
|
||||
"bee-form-control": "^2.0.11",
|
||||
"bee-icon": "^1.0.11",
|
||||
"bee-locale": "^0.0.14",
|
||||
"bee-modal": "^2.0.13",
|
||||
"bee-tooltip": "^2.0.4",
|
||||
"classnames": "^2.2.5",
|
||||
"clipboard": "^1.6.1",
|
||||
"tinper-bee-core": "^2.0.32"
|
||||
"tinper-bee-core": "^2.0.34"
|
||||
},
|
||||
"dependencies": {
|
||||
"babel-runtime": {
|
||||
|
@ -150,7 +150,7 @@
|
|||
"classnames": "^2.2.5",
|
||||
"dom-helpers": "3.0.0",
|
||||
"re-resizable": "^4.11.0",
|
||||
"tinper-bee-core": "^2.0.32"
|
||||
"tinper-bee-core": "^2.0.34"
|
||||
}
|
||||
},
|
||||
"dom-helpers": {
|
||||
|
@ -167,7 +167,7 @@
|
|||
"integrity": "sha512-bDmm/oyA6cbWCzdFzE8tA4GcIv4W9pkrXdt4eRUD8QbUeZoe6BVE90yqRZWgbtmN8UnTMVFtDbGHPq23a+Z7Ew==",
|
||||
"requires": {
|
||||
"bee-button": "^2.0.11",
|
||||
"bee-form-control": "^2.0.3",
|
||||
"bee-form-control": "^2.0.11",
|
||||
"bee-input-group": "^2.0.2",
|
||||
"classnames": "^2.2.5",
|
||||
"moment": "^2.17.1",
|
||||
|
@ -175,7 +175,7 @@
|
|||
"rc-trigger": "^2.2.0",
|
||||
"rc-util": "^4.1.1",
|
||||
"react-lifecycles-compat": "^3.0.4",
|
||||
"tinper-bee-core": "^2.0.32"
|
||||
"tinper-bee-core": "^2.0.34"
|
||||
}
|
||||
},
|
||||
"bee-dnd": {
|
||||
|
@ -188,7 +188,7 @@
|
|||
"lodash.isequal": "^4.5.0",
|
||||
"react-beautiful-dnd": "^9.0.2",
|
||||
"react-draggable": "^3.0.2",
|
||||
"tinper-bee-core": "^2.0.32"
|
||||
"tinper-bee-core": "^2.0.34"
|
||||
}
|
||||
},
|
||||
"bee-drawer": {
|
||||
|
@ -200,18 +200,18 @@
|
|||
"babel-runtime": "^6.23.0",
|
||||
"classnames": "^2.2.6",
|
||||
"react-transition-group": "^2.6.1",
|
||||
"tinper-bee-core": "^2.0.32"
|
||||
"tinper-bee-core": "^2.0.34"
|
||||
}
|
||||
},
|
||||
"bee-form-control": {
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/bee-form-control/-/bee-form-control-2.0.3.tgz",
|
||||
"integrity": "sha512-XEqGrDPonqH6ENyinwCFtW9VcZFwoKJqG8wtcCg7hgbtdhr8Eh9FIVJOGDGKTvHTGqYQVCRzLQ8eiVtA91vN3g==",
|
||||
"version": "2.0.11",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/bee-form-control/-/bee-form-control-2.0.11.tgz",
|
||||
"integrity": "sha512-wDPQiJuvfXmJFhiEKwWDUyQvD4rvphty3eg30TQ1tSfPuZ7KGZTtCKlsvdI0N7S9Yt8l3Y31ShiusR54ANEI/g==",
|
||||
"requires": {
|
||||
"bee-icon": "^1.0.3",
|
||||
"classnames": "^2.2.5",
|
||||
"express": "^4.16.3",
|
||||
"tinper-bee-core": "^2.0.32",
|
||||
"tinper-bee-core": "^2.0.34",
|
||||
"warning": "^3.0.0"
|
||||
}
|
||||
},
|
||||
|
@ -222,7 +222,7 @@
|
|||
"requires": {
|
||||
"babel-runtime": "^6.23.0",
|
||||
"classnames": "^2.2.5",
|
||||
"tinper-bee-core": "^2.0.32"
|
||||
"tinper-bee-core": "^2.0.34"
|
||||
}
|
||||
},
|
||||
"bee-input-group": {
|
||||
|
@ -232,7 +232,7 @@
|
|||
"requires": {
|
||||
"bee-input-group-addon": "^2.0.0",
|
||||
"classnames": "^2.2.5",
|
||||
"tinper-bee-core": "^2.0.32"
|
||||
"tinper-bee-core": "^2.0.34"
|
||||
}
|
||||
},
|
||||
"bee-input-group-addon": {
|
||||
|
@ -241,7 +241,7 @@
|
|||
"integrity": "sha512-JqAdxQSjzDGT4ZNMMfYRUhtJQ3zjTH6PjbzSyUyURDmsUk8N+PIDud3RQawvxfnWasXXaNbJsko2e3mkWuPtjQ==",
|
||||
"requires": {
|
||||
"classnames": "^2.2.5",
|
||||
"tinper-bee-core": "^2.0.32"
|
||||
"tinper-bee-core": "^2.0.34"
|
||||
}
|
||||
},
|
||||
"bee-layout": {
|
||||
|
@ -251,7 +251,7 @@
|
|||
"dev": true,
|
||||
"requires": {
|
||||
"classnames": "^2.2.5",
|
||||
"tinper-bee-core": "^2.0.32"
|
||||
"tinper-bee-core": "^2.0.34"
|
||||
}
|
||||
},
|
||||
"bee-loading": {
|
||||
|
@ -262,7 +262,7 @@
|
|||
"bee-icon": "^1.0.10",
|
||||
"bee-overlay": "^1.0.2",
|
||||
"classnames": "^2.2.5",
|
||||
"tinper-bee-core": "^2.0.32"
|
||||
"tinper-bee-core": "^2.0.34"
|
||||
}
|
||||
},
|
||||
"bee-locale": {
|
||||
|
@ -273,7 +273,7 @@
|
|||
"requires": {
|
||||
"babel-runtime": "^6.23.0",
|
||||
"classnames": "^2.2.5",
|
||||
"tinper-bee-core": "^2.0.32"
|
||||
"tinper-bee-core": "^2.0.34"
|
||||
}
|
||||
},
|
||||
"bee-menus": {
|
||||
|
@ -291,7 +291,7 @@
|
|||
"rc-util": "^4.6.0",
|
||||
"react-addons-test-utils": "15.3.2",
|
||||
"resize-observer-polyfill": "^1.5.1",
|
||||
"tinper-bee-core": "^2.0.32"
|
||||
"tinper-bee-core": "^2.0.34"
|
||||
},
|
||||
"dependencies": {
|
||||
"react-addons-test-utils": {
|
||||
|
@ -310,7 +310,7 @@
|
|||
"bee-icon": "^1.0.11",
|
||||
"bee-notification": "^2.0.2",
|
||||
"classnames": "^2.2.5",
|
||||
"tinper-bee-core": "^2.0.32",
|
||||
"tinper-bee-core": "^2.0.34",
|
||||
"warning": "^4.0.3"
|
||||
},
|
||||
"dependencies": {
|
||||
|
@ -340,7 +340,7 @@
|
|||
"classnames": "^2.2.5",
|
||||
"dom-helpers": "3.0.0",
|
||||
"re-resizable": "^4.11.0",
|
||||
"tinper-bee-core": "^2.0.32"
|
||||
"tinper-bee-core": "^2.0.34"
|
||||
},
|
||||
"dependencies": {
|
||||
"bee-transition": {
|
||||
|
@ -350,7 +350,7 @@
|
|||
"requires": {
|
||||
"classnames": "^2.2.5",
|
||||
"dom-helpers": "^3.0.0",
|
||||
"tinper-bee-core": "^2.0.32"
|
||||
"tinper-bee-core": "^2.0.34"
|
||||
}
|
||||
},
|
||||
"dom-helpers": {
|
||||
|
@ -371,7 +371,7 @@
|
|||
"bee-icon": "^1.0.11",
|
||||
"bee-overlay": "^1.0.16",
|
||||
"classnames": "^2.2.5",
|
||||
"tinper-bee-core": "^2.0.32"
|
||||
"tinper-bee-core": "^2.0.34"
|
||||
},
|
||||
"dependencies": {
|
||||
"bee-animate": {
|
||||
|
@ -381,7 +381,7 @@
|
|||
"dev": true,
|
||||
"requires": {
|
||||
"classnames": "^2.2.5",
|
||||
"tinper-bee-core": "^2.0.32"
|
||||
"tinper-bee-core": "^2.0.34"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -394,7 +394,7 @@
|
|||
"bee-animate": "^1.0.0",
|
||||
"classnames": "^2.2.5",
|
||||
"dom-helpers": "^3.0.0",
|
||||
"tinper-bee-core": "^2.0.32",
|
||||
"tinper-bee-core": "^2.0.34",
|
||||
"warning": "^3.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
|
@ -404,7 +404,7 @@
|
|||
"integrity": "sha1-jknIkVIbSmpu9eUAmDI2Uv0FxPE=",
|
||||
"requires": {
|
||||
"classnames": "^2.2.5",
|
||||
"tinper-bee-core": "^2.0.32"
|
||||
"tinper-bee-core": "^2.0.34"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -417,7 +417,7 @@
|
|||
"bee-animate": "^1.0.0",
|
||||
"classnames": "^2.2.5",
|
||||
"dom-helpers": "^3.0.0",
|
||||
"tinper-bee-core": "^2.0.32",
|
||||
"tinper-bee-core": "^2.0.34",
|
||||
"warning": "^3.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
|
@ -427,7 +427,7 @@
|
|||
"integrity": "sha1-jknIkVIbSmpu9eUAmDI2Uv0FxPE=",
|
||||
"requires": {
|
||||
"classnames": "^2.2.5",
|
||||
"tinper-bee-core": "^2.0.32"
|
||||
"tinper-bee-core": "^2.0.34"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -443,7 +443,7 @@
|
|||
"bee-transition": "^1.0.0",
|
||||
"classnames": "^2.2.6",
|
||||
"copy-to-clipboard": "^3.0.8",
|
||||
"tinper-bee-core": "^2.0.32"
|
||||
"tinper-bee-core": "^2.0.34"
|
||||
},
|
||||
"dependencies": {
|
||||
"bee-transition": {
|
||||
|
@ -454,7 +454,7 @@
|
|||
"requires": {
|
||||
"classnames": "^2.2.5",
|
||||
"dom-helpers": "^3.0.0",
|
||||
"tinper-bee-core": "^2.0.32"
|
||||
"tinper-bee-core": "^2.0.34"
|
||||
}
|
||||
},
|
||||
"classnames": {
|
||||
|
@ -474,7 +474,7 @@
|
|||
"bee-locale": "^0.0.2",
|
||||
"bee-overlay": "^1.0.22",
|
||||
"classnames": "^2.2.5",
|
||||
"tinper-bee-core": "^2.0.32"
|
||||
"tinper-bee-core": "^2.0.34"
|
||||
},
|
||||
"dependencies": {
|
||||
"bee-locale": {
|
||||
|
@ -484,7 +484,7 @@
|
|||
"requires": {
|
||||
"babel-runtime": "^6.23.0",
|
||||
"classnames": "^2.2.5",
|
||||
"tinper-bee-core": "^2.0.32"
|
||||
"tinper-bee-core": "^2.0.34"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -502,7 +502,7 @@
|
|||
"dom-scroll-into-view": "1.x",
|
||||
"rc-menu": "^7.4.19",
|
||||
"react-lifecycles-compat": "^3.0.4",
|
||||
"tinper-bee-core": "^2.0.32",
|
||||
"tinper-bee-core": "^2.0.34",
|
||||
"warning": "^3.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
|
@ -514,7 +514,7 @@
|
|||
"bee-animate": "^1.0.0",
|
||||
"classnames": "^2.2.5",
|
||||
"dom-helpers": "^3.0.0",
|
||||
"tinper-bee-core": "^2.0.32",
|
||||
"tinper-bee-core": "^2.0.34",
|
||||
"warning": "^3.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
|
@ -524,7 +524,7 @@
|
|||
"integrity": "sha1-jknIkVIbSmpu9eUAmDI2Uv0FxPE=",
|
||||
"requires": {
|
||||
"classnames": "^2.2.5",
|
||||
"tinper-bee-core": "^2.0.32"
|
||||
"tinper-bee-core": "^2.0.34"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -540,7 +540,7 @@
|
|||
"babel-runtime": "^6.20.0",
|
||||
"bee-overlay": "^1.0.20",
|
||||
"classnames": "^2.2.5",
|
||||
"tinper-bee-core": "^2.0.32"
|
||||
"tinper-bee-core": "^2.0.34"
|
||||
}
|
||||
},
|
||||
"bee-transition": {
|
||||
|
@ -551,12 +551,12 @@
|
|||
"requires": {
|
||||
"classnames": "^2.2.5",
|
||||
"dom-helpers": "^3.0.0",
|
||||
"tinper-bee-core": "^2.0.32"
|
||||
"tinper-bee-core": "^2.0.34"
|
||||
}
|
||||
},
|
||||
"body-parser": {
|
||||
"version": "1.19.0",
|
||||
"resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/body-parser/-/body-parser-1.19.0.tgz",
|
||||
"integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==",
|
||||
"requires": {
|
||||
"bytes": "3.1.0",
|
||||
|
@ -579,7 +579,7 @@
|
|||
},
|
||||
"bytes": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/bytes/-/bytes-3.1.0.tgz",
|
||||
"integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg=="
|
||||
},
|
||||
"chai": {
|
||||
|
@ -654,7 +654,7 @@
|
|||
},
|
||||
"content-disposition": {
|
||||
"version": "0.5.3",
|
||||
"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/content-disposition/-/content-disposition-0.5.3.tgz",
|
||||
"integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==",
|
||||
"requires": {
|
||||
"safe-buffer": "5.1.2"
|
||||
|
@ -662,7 +662,7 @@
|
|||
},
|
||||
"content-type": {
|
||||
"version": "1.0.4",
|
||||
"resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/content-type/-/content-type-1.0.4.tgz",
|
||||
"integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA=="
|
||||
},
|
||||
"conventional-commit-types": {
|
||||
|
@ -673,12 +673,12 @@
|
|||
},
|
||||
"cookie": {
|
||||
"version": "0.4.0",
|
||||
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/cookie/-/cookie-0.4.0.tgz",
|
||||
"integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg=="
|
||||
},
|
||||
"cookie-signature": {
|
||||
"version": "1.0.6",
|
||||
"resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/cookie-signature/-/cookie-signature-1.0.6.tgz",
|
||||
"integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw="
|
||||
},
|
||||
"copy-to-clipboard": {
|
||||
|
@ -697,7 +697,7 @@
|
|||
},
|
||||
"create-react-class": {
|
||||
"version": "15.6.3",
|
||||
"resolved": "https://registry.npmjs.org/create-react-class/-/create-react-class-15.6.3.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/create-react-class/-/create-react-class-15.6.3.tgz",
|
||||
"integrity": "sha512-M+/3Q6E6DLO6Yx3OwrWjwHBnvfXXYA7W+dFjt/ZDBemHO1DDZhsalX/NUtnTYclN6GfnBDRh4qRHjcDHmlJBJg==",
|
||||
"requires": {
|
||||
"fbjs": "^0.8.9",
|
||||
|
@ -755,7 +755,7 @@
|
|||
},
|
||||
"debug": {
|
||||
"version": "2.6.9",
|
||||
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/debug/-/debug-2.6.9.tgz",
|
||||
"integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
|
||||
"requires": {
|
||||
"ms": "2.0.0"
|
||||
|
@ -795,12 +795,12 @@
|
|||
},
|
||||
"depd": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/depd/-/depd-1.1.2.tgz",
|
||||
"integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak="
|
||||
},
|
||||
"destroy": {
|
||||
"version": "1.0.4",
|
||||
"resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/destroy/-/destroy-1.0.4.tgz",
|
||||
"integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA="
|
||||
},
|
||||
"dom-align": {
|
||||
|
@ -858,17 +858,17 @@
|
|||
},
|
||||
"ee-first": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/ee-first/-/ee-first-1.1.1.tgz",
|
||||
"integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0="
|
||||
},
|
||||
"encodeurl": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/encodeurl/-/encodeurl-1.0.2.tgz",
|
||||
"integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k="
|
||||
},
|
||||
"encoding": {
|
||||
"version": "0.1.12",
|
||||
"resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.12.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/encoding/-/encoding-0.1.12.tgz",
|
||||
"integrity": "sha1-U4tm8+5izRq1HsMjgp0flIDHS+s=",
|
||||
"requires": {
|
||||
"iconv-lite": "~0.4.13"
|
||||
|
@ -931,18 +931,18 @@
|
|||
},
|
||||
"escape-html": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/escape-html/-/escape-html-1.0.3.tgz",
|
||||
"integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg="
|
||||
},
|
||||
"etag": {
|
||||
"version": "1.8.1",
|
||||
"resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/etag/-/etag-1.8.1.tgz",
|
||||
"integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc="
|
||||
},
|
||||
"express": {
|
||||
"version": "4.17.0",
|
||||
"resolved": "https://registry.npmjs.org/express/-/express-4.17.0.tgz",
|
||||
"integrity": "sha512-1Z7/t3Z5ZnBG252gKUPyItc4xdeaA0X934ca2ewckAsVsw9EG71i++ZHZPYnus8g/s5Bty8IMpSVEuRkmwwPRQ==",
|
||||
"version": "4.17.1",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/express/-/express-4.17.1.tgz",
|
||||
"integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==",
|
||||
"requires": {
|
||||
"accepts": "~1.3.7",
|
||||
"array-flatten": "1.1.1",
|
||||
|
@ -978,7 +978,7 @@
|
|||
},
|
||||
"fbjs": {
|
||||
"version": "0.8.17",
|
||||
"resolved": "https://registry.npmjs.org/fbjs/-/fbjs-0.8.17.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/fbjs/-/fbjs-0.8.17.tgz",
|
||||
"integrity": "sha1-xNWY6taUkRJlPWWIsBpc3Nn5D90=",
|
||||
"requires": {
|
||||
"core-js": "^1.0.0",
|
||||
|
@ -992,14 +992,14 @@
|
|||
"dependencies": {
|
||||
"core-js": {
|
||||
"version": "1.2.7",
|
||||
"resolved": "https://registry.npmjs.org/core-js/-/core-js-1.2.7.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/core-js/-/core-js-1.2.7.tgz",
|
||||
"integrity": "sha1-ZSKUwUZR2yj6k70tX/KYOk8IxjY="
|
||||
}
|
||||
}
|
||||
},
|
||||
"finalhandler": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/finalhandler/-/finalhandler-1.1.2.tgz",
|
||||
"integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==",
|
||||
"requires": {
|
||||
"debug": "2.6.9",
|
||||
|
@ -1013,12 +1013,12 @@
|
|||
},
|
||||
"forwarded": {
|
||||
"version": "0.1.2",
|
||||
"resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/forwarded/-/forwarded-0.1.2.tgz",
|
||||
"integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ="
|
||||
},
|
||||
"fresh": {
|
||||
"version": "0.5.2",
|
||||
"resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/fresh/-/fresh-0.5.2.tgz",
|
||||
"integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac="
|
||||
},
|
||||
"function-bind": {
|
||||
|
@ -1086,7 +1086,7 @@
|
|||
},
|
||||
"http-errors": {
|
||||
"version": "1.7.2",
|
||||
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/http-errors/-/http-errors-1.7.2.tgz",
|
||||
"integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==",
|
||||
"requires": {
|
||||
"depd": "~1.1.2",
|
||||
|
@ -1119,7 +1119,7 @@
|
|||
},
|
||||
"ipaddr.js": {
|
||||
"version": "1.9.0",
|
||||
"resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.0.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/ipaddr.js/-/ipaddr.js-1.9.0.tgz",
|
||||
"integrity": "sha512-M4Sjn6N/+O6/IXSJseKqHoFc+5FdGJ22sXqnjTpdZweHK64MzEPAyQZyEU3R/KRv2GLoa7nNtg/C2Ev6m7z+eA=="
|
||||
},
|
||||
"is-callable": {
|
||||
|
@ -1145,7 +1145,7 @@
|
|||
},
|
||||
"is-stream": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/is-stream/-/is-stream-1.1.0.tgz",
|
||||
"integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ="
|
||||
},
|
||||
"is-subset": {
|
||||
|
@ -1170,7 +1170,7 @@
|
|||
},
|
||||
"isomorphic-fetch": {
|
||||
"version": "2.2.1",
|
||||
"resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz",
|
||||
"integrity": "sha1-YRrhrPFPXoH3KVB0coGf6XM1WKk=",
|
||||
"requires": {
|
||||
"node-fetch": "^1.0.1",
|
||||
|
@ -1306,7 +1306,7 @@
|
|||
},
|
||||
"media-typer": {
|
||||
"version": "0.3.0",
|
||||
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/media-typer/-/media-typer-0.3.0.tgz",
|
||||
"integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g="
|
||||
},
|
||||
"memoize-one": {
|
||||
|
@ -1316,30 +1316,30 @@
|
|||
},
|
||||
"merge-descriptors": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/merge-descriptors/-/merge-descriptors-1.0.1.tgz",
|
||||
"integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E="
|
||||
},
|
||||
"methods": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/methods/-/methods-1.1.2.tgz",
|
||||
"integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4="
|
||||
},
|
||||
"mime": {
|
||||
"version": "1.6.0",
|
||||
"resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/mime/-/mime-1.6.0.tgz",
|
||||
"integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg=="
|
||||
},
|
||||
"mime-db": {
|
||||
"version": "1.40.0",
|
||||
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.40.0.tgz",
|
||||
"integrity": "sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA=="
|
||||
"version": "1.43.0",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/mime-db/-/mime-db-1.43.0.tgz",
|
||||
"integrity": "sha512-+5dsGEEovYbT8UY9yD7eE4XTc4UwJ1jBYlgaQQF38ENsKR3wj/8q8RFZrF9WIZpB2V1ArTVFUva8sAul1NzRzQ=="
|
||||
},
|
||||
"mime-types": {
|
||||
"version": "2.1.24",
|
||||
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.24.tgz",
|
||||
"integrity": "sha512-WaFHS3MCl5fapm3oLxU4eYDw77IQM2ACcxQ9RIxfaC3ooc6PFuBMGZZsYpvoXS5D5QTWPieo1jjLdAm3TBP3cQ==",
|
||||
"version": "2.1.26",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/mime-types/-/mime-types-2.1.26.tgz",
|
||||
"integrity": "sha512-01paPWYgLrkqAyrlDorC1uDwl2p3qZT7yl806vW7DvDoxwXi46jsjFbg+WdwotBIk6/MbEhO/dh5aZ5sNj/dWQ==",
|
||||
"requires": {
|
||||
"mime-db": "1.40.0"
|
||||
"mime-db": "1.43.0"
|
||||
}
|
||||
},
|
||||
"mini-store": {
|
||||
|
@ -1372,7 +1372,7 @@
|
|||
},
|
||||
"ms": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/ms/-/ms-2.0.0.tgz",
|
||||
"integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
|
||||
},
|
||||
"mutationobserver-shim": {
|
||||
|
@ -1382,12 +1382,12 @@
|
|||
},
|
||||
"negotiator": {
|
||||
"version": "0.6.2",
|
||||
"resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/negotiator/-/negotiator-0.6.2.tgz",
|
||||
"integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw=="
|
||||
},
|
||||
"node-fetch": {
|
||||
"version": "1.7.3",
|
||||
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-1.7.3.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/node-fetch/-/node-fetch-1.7.3.tgz",
|
||||
"integrity": "sha512-NhZ4CsKx7cYm2vSrBAr2PvFOe6sWDf0UYLRqA6svUYg7+/TSfVAu49jYC4BvQ4Sms9SZgdqGBgroqfDhJdTyKQ==",
|
||||
"requires": {
|
||||
"encoding": "^0.1.11",
|
||||
|
@ -1466,7 +1466,7 @@
|
|||
},
|
||||
"on-finished": {
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/on-finished/-/on-finished-2.3.0.tgz",
|
||||
"integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=",
|
||||
"requires": {
|
||||
"ee-first": "1.1.1"
|
||||
|
@ -1474,12 +1474,12 @@
|
|||
},
|
||||
"parseurl": {
|
||||
"version": "1.3.3",
|
||||
"resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/parseurl/-/parseurl-1.3.3.tgz",
|
||||
"integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ=="
|
||||
},
|
||||
"path-to-regexp": {
|
||||
"version": "0.1.7",
|
||||
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/path-to-regexp/-/path-to-regexp-0.1.7.tgz",
|
||||
"integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w="
|
||||
},
|
||||
"performance-now": {
|
||||
|
@ -1489,7 +1489,7 @@
|
|||
},
|
||||
"promise": {
|
||||
"version": "7.3.1",
|
||||
"resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/promise/-/promise-7.3.1.tgz",
|
||||
"integrity": "sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==",
|
||||
"requires": {
|
||||
"asap": "~2.0.3"
|
||||
|
@ -1507,7 +1507,7 @@
|
|||
},
|
||||
"proxy-addr": {
|
||||
"version": "2.0.5",
|
||||
"resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.5.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/proxy-addr/-/proxy-addr-2.0.5.tgz",
|
||||
"integrity": "sha512-t/7RxHXPH6cJtP0pRG6smSr9QJidhB+3kXu0KgXnbGYMgzEnUxRQ4/LDdfOwZEMyIh3/xHb8PX3t+lfL9z+YVQ==",
|
||||
"requires": {
|
||||
"forwarded": "~0.1.2",
|
||||
|
@ -1516,7 +1516,7 @@
|
|||
},
|
||||
"qs": {
|
||||
"version": "6.7.0",
|
||||
"resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/qs/-/qs-6.7.0.tgz",
|
||||
"integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ=="
|
||||
},
|
||||
"raf": {
|
||||
|
@ -1534,12 +1534,12 @@
|
|||
},
|
||||
"range-parser": {
|
||||
"version": "1.2.1",
|
||||
"resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/range-parser/-/range-parser-1.2.1.tgz",
|
||||
"integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg=="
|
||||
},
|
||||
"raw-body": {
|
||||
"version": "2.4.0",
|
||||
"resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/raw-body/-/raw-body-2.4.0.tgz",
|
||||
"integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==",
|
||||
"requires": {
|
||||
"bytes": "3.1.0",
|
||||
|
@ -1802,7 +1802,7 @@
|
|||
},
|
||||
"send": {
|
||||
"version": "0.17.1",
|
||||
"resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/send/-/send-0.17.1.tgz",
|
||||
"integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==",
|
||||
"requires": {
|
||||
"debug": "2.6.9",
|
||||
|
@ -1822,14 +1822,14 @@
|
|||
"dependencies": {
|
||||
"ms": {
|
||||
"version": "2.1.1",
|
||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/ms/-/ms-2.1.1.tgz",
|
||||
"integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg=="
|
||||
}
|
||||
}
|
||||
},
|
||||
"serve-static": {
|
||||
"version": "1.14.1",
|
||||
"resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/serve-static/-/serve-static-1.14.1.tgz",
|
||||
"integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==",
|
||||
"requires": {
|
||||
"encodeurl": "~1.0.2",
|
||||
|
@ -1840,12 +1840,12 @@
|
|||
},
|
||||
"setimmediate": {
|
||||
"version": "1.0.5",
|
||||
"resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/setimmediate/-/setimmediate-1.0.5.tgz",
|
||||
"integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU="
|
||||
},
|
||||
"setprototypeof": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/setprototypeof/-/setprototypeof-1.1.1.tgz",
|
||||
"integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw=="
|
||||
},
|
||||
"shallowequal": {
|
||||
|
@ -1858,7 +1858,7 @@
|
|||
},
|
||||
"statuses": {
|
||||
"version": "1.5.0",
|
||||
"resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/statuses/-/statuses-1.5.0.tgz",
|
||||
"integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow="
|
||||
},
|
||||
"string_decoder": {
|
||||
|
@ -1876,9 +1876,9 @@
|
|||
"integrity": "sha512-e900nM8RRtGhlV36KGEU9k65K3mPb1WV70OdjfxlG2EAuM1noi/E/BaW/uMhL7bPEssK8QV57vN3esixjUvcXQ=="
|
||||
},
|
||||
"tinper-bee-core": {
|
||||
"version": "2.0.32",
|
||||
"resolved": "https://registry.npmjs.org/tinper-bee-core/-/tinper-bee-core-2.0.32.tgz",
|
||||
"integrity": "sha512-HBaIAHrE/JUOj5rgw3kzTHx1POnzWopLeWzebrAvtIBpqK5nKw/bP58xZIHEGMqF2IYg6X5sRPHMpD/A/1LifQ==",
|
||||
"version": "2.0.34",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/tinper-bee-core/-/tinper-bee-core-2.0.34.tgz",
|
||||
"integrity": "sha512-DezsA3W2dalMYrbaEno00fOpxz/dVmLQB731R6ruHqMcT8JWuZrF6F4YGBIGx79bA0fITIkHMsXPFvH3f6q8Ig==",
|
||||
"requires": {
|
||||
"add-dom-event-listener": "^1.0.1",
|
||||
"component-classes": "^1.2.6",
|
||||
|
@ -1906,7 +1906,7 @@
|
|||
},
|
||||
"toidentifier": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/toidentifier/-/toidentifier-1.0.0.tgz",
|
||||
"integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw=="
|
||||
},
|
||||
"type-detect": {
|
||||
|
@ -1917,7 +1917,7 @@
|
|||
},
|
||||
"type-is": {
|
||||
"version": "1.6.18",
|
||||
"resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/type-is/-/type-is-1.6.18.tgz",
|
||||
"integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
|
||||
"requires": {
|
||||
"media-typer": "0.3.0",
|
||||
|
@ -1925,13 +1925,13 @@
|
|||
}
|
||||
},
|
||||
"ua-parser-js": {
|
||||
"version": "0.7.19",
|
||||
"resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.19.tgz",
|
||||
"integrity": "sha512-T3PVJ6uz8i0HzPxOF9SWzWAlfN/DavlpQqepn22xgve/5QecC+XMCAtmUNnY7C9StehaV6exjUCI801lOI7QlQ=="
|
||||
"version": "0.7.21",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/ua-parser-js/-/ua-parser-js-0.7.21.tgz",
|
||||
"integrity": "sha512-+O8/qh/Qj8CgC6eYBVBykMrNtp5Gebn4dlGD/kKXVkJNDwyrAwSIqwz8CDf+tsAIWVycKcku6gIXJ0qwx/ZXaQ=="
|
||||
},
|
||||
"unpipe": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/unpipe/-/unpipe-1.0.0.tgz",
|
||||
"integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw="
|
||||
},
|
||||
"util-deprecate": {
|
||||
|
@ -1942,7 +1942,7 @@
|
|||
},
|
||||
"utils-merge": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/utils-merge/-/utils-merge-1.0.1.tgz",
|
||||
"integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM="
|
||||
},
|
||||
"uuid": {
|
||||
|
@ -1953,7 +1953,7 @@
|
|||
},
|
||||
"vary": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/vary/-/vary-1.1.2.tgz",
|
||||
"integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw="
|
||||
},
|
||||
"warning": {
|
||||
|
@ -1966,7 +1966,7 @@
|
|||
},
|
||||
"whatwg-fetch": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.0.0.tgz",
|
||||
"resolved": "http://10.3.15.79/repository/ynpm-all/whatwg-fetch/-/whatwg-fetch-3.0.0.tgz",
|
||||
"integrity": "sha512-9GSJUgz1D4MfyKU7KRqwOjXCXTqWdFNvEr7eUBYchQiVc744mqK/MzXPNR2WsPkmkOa4ywfg8C2n8h+13Bey1Q=="
|
||||
},
|
||||
"word-wrap": {
|
||||
|
|
19
src/Tree.js
19
src/Tree.js
|
@ -673,7 +673,12 @@ onExpand(treeNode,keyType) {
|
|||
// 如果是多选tree则进行选中或者反选该节点
|
||||
props.checkable && this.onCheck(treeNode);
|
||||
}else if(e.keyCode == KeyCode.ENTER){
|
||||
this.onDoubleClick(treeNode);
|
||||
if(props.onDoubleClick) {
|
||||
this.onDoubleClick(treeNode);
|
||||
} else {
|
||||
this.onSelect(treeNode);
|
||||
props.checkable && this.onCheck(treeNode);
|
||||
}
|
||||
}
|
||||
this.props.keyFun && this.props.keyFun(e,treeNode);
|
||||
// e.preventDefault();
|
||||
|
@ -698,16 +703,22 @@ onExpand(treeNode,keyType) {
|
|||
|
||||
// 如果当前tree节点不包括上一个焦点节点会触发此方法
|
||||
if(this.tree == targetDom && !this.isIn && !this.tree.contains(e.relatedTarget)){
|
||||
const {onFocus} = this.props;
|
||||
const {onFocus, children} = this.props;
|
||||
const {selectedKeys=[]} = this.state;
|
||||
let tabIndexKey = selectedKeys[0]
|
||||
let isExist = false;
|
||||
const treeNode = children.length && children[0];
|
||||
let eventKey = treeNode.props.eventKey || treeNode.key;
|
||||
if((this.selectKeyDomExist && tabIndexKey) || !tabIndexKey){
|
||||
isExist = true;
|
||||
const queryInfo = `a[pos="${this.selectKeyDomPos}"]`;
|
||||
const parentEle = closest(e.target,".u-tree")
|
||||
const focusEle = parentEle?parentEle.querySelector(queryInfo):null;
|
||||
focusEle && focusEle.focus();
|
||||
// TAB键选中树后,默认聚焦在第一个(已选中)节点,并显示 focus 状态。
|
||||
this.setState({
|
||||
focusKey: tabIndexKey || eventKey
|
||||
})
|
||||
}
|
||||
let onFocusRes = onFocus && onFocus(isExist);
|
||||
if(onFocusRes instanceof Promise){
|
||||
|
@ -718,10 +729,6 @@ onExpand(treeNode,keyType) {
|
|||
this._focusDom(this.selectKeyDomPos,targetDom);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue