parent
44ed1086ee
commit
5de98298ca
|
@ -246,10 +246,6 @@ var Table = function (_Component) {
|
||||||
_utils.EventUtil.addHandler(document, 'keydown', this.onKeyDown);
|
_utils.EventUtil.addHandler(document, 'keydown', this.onKeyDown);
|
||||||
};
|
};
|
||||||
|
|
||||||
Table.prototype.componentWillUnmount = function componentWillUnmount() {
|
|
||||||
_utils.EventUtil.removeHandler(document, 'keydown', this.onKeyDown);
|
|
||||||
};
|
|
||||||
|
|
||||||
Table.prototype.componentDidMount = function componentDidMount() {
|
Table.prototype.componentDidMount = function componentDidMount() {
|
||||||
setTimeout(this.resetScrollY, 300);
|
setTimeout(this.resetScrollY, 300);
|
||||||
//含有纵向滚动条
|
//含有纵向滚动条
|
||||||
|
@ -315,6 +311,7 @@ var Table = function (_Component) {
|
||||||
};
|
};
|
||||||
|
|
||||||
Table.prototype.componentWillUnmount = function componentWillUnmount() {
|
Table.prototype.componentWillUnmount = function componentWillUnmount() {
|
||||||
|
_utils.EventUtil.removeHandler(document, 'keydown', this.onKeyDown);
|
||||||
if (this.resizeEvent) {
|
if (this.resizeEvent) {
|
||||||
this.resizeEvent.remove();
|
this.resizeEvent.remove();
|
||||||
}
|
}
|
||||||
|
@ -1198,7 +1195,7 @@ var Table = function (_Component) {
|
||||||
'div',
|
'div',
|
||||||
{ className: className, style: props.style, ref: function ref(el) {
|
{ className: className, style: props.style, ref: function ref(el) {
|
||||||
return _this6.contentTable = el;
|
return _this6.contentTable = el;
|
||||||
}, tabIndex: props.tabIndex ? props.tabIndex : '0' },
|
}, onKeyDown: this.onKeyDown, tabIndex: props.tabIndex ? props.tabIndex : '0' },
|
||||||
this.getTitle(),
|
this.getTitle(),
|
||||||
_react2["default"].createElement(
|
_react2["default"].createElement(
|
||||||
'div',
|
'div',
|
||||||
|
|
|
@ -11027,10 +11027,6 @@
|
||||||
_utils.EventUtil.addHandler(document, 'keydown', this.onKeyDown);
|
_utils.EventUtil.addHandler(document, 'keydown', this.onKeyDown);
|
||||||
};
|
};
|
||||||
|
|
||||||
Table.prototype.componentWillUnmount = function componentWillUnmount() {
|
|
||||||
_utils.EventUtil.removeHandler(document, 'keydown', this.onKeyDown);
|
|
||||||
};
|
|
||||||
|
|
||||||
Table.prototype.componentDidMount = function componentDidMount() {
|
Table.prototype.componentDidMount = function componentDidMount() {
|
||||||
setTimeout(this.resetScrollY, 300);
|
setTimeout(this.resetScrollY, 300);
|
||||||
//含有纵向滚动条
|
//含有纵向滚动条
|
||||||
|
@ -11096,6 +11092,10 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
Table.prototype.componentWillUnmount = function componentWillUnmount() {
|
Table.prototype.componentWillUnmount = function componentWillUnmount() {
|
||||||
|
debugger;
|
||||||
|
console.log(' -----componentWillUnmount-------- ');
|
||||||
|
// EventUtil.removeHandler(document,'keydown',this.onKeyDown);
|
||||||
|
|
||||||
if (this.resizeEvent) {
|
if (this.resizeEvent) {
|
||||||
this.resizeEvent.remove();
|
this.resizeEvent.remove();
|
||||||
}
|
}
|
||||||
|
@ -11979,7 +11979,7 @@
|
||||||
'div',
|
'div',
|
||||||
{ className: className, style: props.style, ref: function ref(el) {
|
{ className: className, style: props.style, ref: function ref(el) {
|
||||||
return _this6.contentTable = el;
|
return _this6.contentTable = el;
|
||||||
}, tabIndex: props.tabIndex ? props.tabIndex : '0' },
|
}, onKeyDown: this.onKeyDown, tabIndex: props.tabIndex ? props.tabIndex : '0' },
|
||||||
this.getTitle(),
|
this.getTitle(),
|
||||||
_react2['default'].createElement(
|
_react2['default'].createElement(
|
||||||
'div',
|
'div',
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "bee-table",
|
"name": "bee-table",
|
||||||
"version": "1.6.21",
|
"version": "1.6.22",
|
||||||
"description": "Table ui component for react",
|
"description": "Table ui component for react",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"react",
|
"react",
|
||||||
|
|
Loading…
Reference in New Issue