publish 1.1.3

This commit is contained in:
jonyshi 2018-05-02 15:37:38 +08:00
parent d11bbbd420
commit 1366639d23
7 changed files with 183 additions and 101 deletions

View File

@ -73,6 +73,18 @@ var TableRow = function (_Component) {
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 = {
hovered: false
};
@ -125,7 +137,9 @@ var TableRow = function (_Component) {
if (expandable && expandRowByClick) {
onExpand(!expanded, record, index, event);
}
this.set(function (e) {
onRowClick(record, index, event);
});
};
TableRow.prototype.onRowDoubleClick = function onRowDoubleClick(event) {
@ -134,6 +148,7 @@ var TableRow = function (_Component) {
index = _props4.index,
onRowDoubleClick = _props4.onRowDoubleClick;
this.clear();
onRowDoubleClick(record, index, event);
};

File diff suppressed because one or more lines are too long

3
dist/demo.css vendored
View File

@ -9586,4 +9586,7 @@ li.rc-time-picker-panel-select-option-disabled:hover {
.datepicker-input-group.u-input-group {
display: block; }
.selected {
background: #e3f2fd; }
/*# sourceMappingURL=demo.css.map */

2
dist/demo.css.map vendored

File diff suppressed because one or more lines are too long

84
dist/demo.js vendored

File diff suppressed because one or more lines are too long

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "bee-table",
"version": "1.1.2",
"version": "1.1.3",
"description": "Table ui component for react",
"keywords": [
"react",