publish 1.1.3
This commit is contained in:
parent
d11bbbd420
commit
1366639d23
|
@ -73,6 +73,18 @@ var TableRow = function (_Component) {
|
||||||
|
|
||||||
var _this = _possibleConstructorReturn(this, _Component.call(this, props));
|
var _this = _possibleConstructorReturn(this, _Component.call(this, props));
|
||||||
|
|
||||||
|
_this.set = function (fn) {
|
||||||
|
_this.clear();
|
||||||
|
_this._timeout = window.setTimeout(fn, 300);
|
||||||
|
};
|
||||||
|
|
||||||
|
_this.clear = function (event) {
|
||||||
|
if (_this._timeout) {
|
||||||
|
window.clearTimeout(_this._timeout);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
_this._timeout = null;
|
||||||
_this.state = {
|
_this.state = {
|
||||||
hovered: false
|
hovered: false
|
||||||
};
|
};
|
||||||
|
@ -125,7 +137,9 @@ var TableRow = function (_Component) {
|
||||||
if (expandable && expandRowByClick) {
|
if (expandable && expandRowByClick) {
|
||||||
onExpand(!expanded, record, index, event);
|
onExpand(!expanded, record, index, event);
|
||||||
}
|
}
|
||||||
|
this.set(function (e) {
|
||||||
onRowClick(record, index, event);
|
onRowClick(record, index, event);
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
TableRow.prototype.onRowDoubleClick = function onRowDoubleClick(event) {
|
TableRow.prototype.onRowDoubleClick = function onRowDoubleClick(event) {
|
||||||
|
@ -134,6 +148,7 @@ var TableRow = function (_Component) {
|
||||||
index = _props4.index,
|
index = _props4.index,
|
||||||
onRowDoubleClick = _props4.onRowDoubleClick;
|
onRowDoubleClick = _props4.onRowDoubleClick;
|
||||||
|
|
||||||
|
this.clear();
|
||||||
onRowDoubleClick(record, index, event);
|
onRowDoubleClick(record, index, event);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -9586,4 +9586,7 @@ li.rc-time-picker-panel-select-option-disabled:hover {
|
||||||
.datepicker-input-group.u-input-group {
|
.datepicker-input-group.u-input-group {
|
||||||
display: block; }
|
display: block; }
|
||||||
|
|
||||||
|
.selected {
|
||||||
|
background: #e3f2fd; }
|
||||||
|
|
||||||
/*# sourceMappingURL=demo.css.map */
|
/*# sourceMappingURL=demo.css.map */
|
||||||
|
|
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-table",
|
"name": "bee-table",
|
||||||
"version": "1.1.2",
|
"version": "1.1.3",
|
||||||
"description": "Table ui component for react",
|
"description": "Table ui component for react",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"react",
|
"react",
|
||||||
|
|
Loading…
Reference in New Issue