diff --git a/build/FilterType.js b/build/FilterType.js
index 565574d..78570b4 100644
--- a/build/FilterType.js
+++ b/build/FilterType.js
@@ -83,15 +83,21 @@ var FilterType = function (_Component) {
};
_this.changeText = function (val) {
+ var _this$props2 = _this.props,
+ onFilterChange = _this$props2.onFilterChange,
+ dataIndex = _this$props2.dataIndex;
+
_this.setState({
value: val
+ }, function () {
+ onFilterChange(dataIndex, val, _this.state.condition);
});
};
_this.changeTextCall = function (e) {
- var _this$props2 = _this.props,
- onFilterChange = _this$props2.onFilterChange,
- dataIndex = _this$props2.dataIndex;
+ var _this$props3 = _this.props,
+ onFilterChange = _this$props3.onFilterChange,
+ dataIndex = _this$props3.dataIndex;
if (e.keyCode == 13) {
e.target.value !== "" && onFilterChange(dataIndex, e.target.value, _this.state.condition);
@@ -105,9 +111,9 @@ var FilterType = function (_Component) {
};
_this.onSelectDropdown = function (item) {
- var _this$props3 = _this.props,
- onFilterChange = _this$props3.onFilterChange,
- dataIndex = _this$props3.dataIndex;
+ var _this$props4 = _this.props,
+ onFilterChange = _this$props4.onFilterChange,
+ dataIndex = _this$props4.dataIndex;
_this.setState({
condition: item.key
@@ -117,9 +123,9 @@ var FilterType = function (_Component) {
};
_this.changeNumber = function (value) {
- var _this$props4 = _this.props,
- onFilterChange = _this$props4.onFilterChange,
- dataIndex = _this$props4.dataIndex;
+ var _this$props5 = _this.props,
+ onFilterChange = _this$props5.onFilterChange,
+ dataIndex = _this$props5.dataIndex;
_this.setState({
value: value
@@ -144,9 +150,9 @@ var FilterType = function (_Component) {
};
_this.changeSelect = function (value) {
- var _this$props5 = _this.props,
- onFilterChange = _this$props5.onFilterChange,
- dataIndex = _this$props5.dataIndex;
+ var _this$props6 = _this.props,
+ onFilterChange = _this$props6.onFilterChange,
+ dataIndex = _this$props6.dataIndex;
if (onFilterChange) {
onFilterChange(dataIndex, value, _this.state.condition);
@@ -173,9 +179,9 @@ var FilterType = function (_Component) {
};
_this.changeDate = function (value) {
- var _this$props6 = _this.props,
- onFilterChange = _this$props6.onFilterChange,
- dataIndex = _this$props6.dataIndex;
+ var _this$props7 = _this.props,
+ onFilterChange = _this$props7.onFilterChange,
+ dataIndex = _this$props7.dataIndex;
if (onFilterChange) {
onFilterChange(dataIndex, value, _this.state.condition);
@@ -187,18 +193,18 @@ var FilterType = function (_Component) {
};
_this.renderControl = function (rendertype) {
- var _this$props7 = _this.props,
- filterInputNumberOptions = _this$props7.filterInputNumberOptions,
- filterDropdownIncludeKeys = _this$props7.filterDropdownIncludeKeys,
- dataIndex = _this$props7.dataIndex,
- filterDropdown = _this$props7.filterDropdown,
- filterDropdownType = _this$props7.filterDropdownType,
- format = _this$props7.format,
- className = _this$props7.className,
- onChange = _this$props7.onChange,
- onSelectDropdown = _this$props7.onSelectDropdown,
- clsPrefix = _this$props7.clsPrefix,
- locale = _this$props7.locale;
+ var _this$props8 = _this.props,
+ filterInputNumberOptions = _this$props8.filterInputNumberOptions,
+ filterDropdownIncludeKeys = _this$props8.filterDropdownIncludeKeys,
+ dataIndex = _this$props8.dataIndex,
+ filterDropdown = _this$props8.filterDropdown,
+ filterDropdownType = _this$props8.filterDropdownType,
+ format = _this$props8.format,
+ className = _this$props8.className,
+ onChange = _this$props8.onChange,
+ onSelectDropdown = _this$props8.onSelectDropdown,
+ clsPrefix = _this$props8.clsPrefix,
+ locale = _this$props8.locale;
switch (rendertype) {
case 'text':
diff --git a/build/TableHeader.js b/build/TableHeader.js
index 238da68..7274b91 100644
--- a/build/TableHeader.js
+++ b/build/TableHeader.js
@@ -880,7 +880,7 @@ var _initialiseProps = function _initialiseProps() {
, clsPrefix: clsPrefix //css前缀
, className: clsPrefix + " filter-text",
dataIndex: dataIndex //字段
- , onFilterChange: _this8.handlerFilterChange //输入框回调
+ , onFilterChange: (0, _throttleDebounce.debounce)(filterDelay || 300, _this8.handlerFilterChange) //输入框回调
, onFilterClear: _this8.handlerFilterClear //清除回调
, filterDropdown: rows[1][index]["filterdropdown"] //是否显示下拉条件
, filterDropdownType: rows[1][index]["filterdropdowntype"] //下拉的条件类型为string,number
diff --git a/demo/demolist/Demo1001.js b/demo/demolist/Demo1001.js
index 081b328..4f94351 100644
--- a/demo/demolist/Demo1001.js
+++ b/demo/demolist/Demo1001.js
@@ -6,8 +6,6 @@
* demo1001
*/
import React, { Component } from 'react';
-import {Icon} from "tinper-bee";
-
import Table from '../../src';
import dragColumn from '../../src/lib/dragColumn';
@@ -55,11 +53,11 @@ const data = [
const DragColumnTable = dragColumn(Table);
-const defaultProps22 = {
+const defaultProps29 = {
prefixCls: "bee-table"
};
-class Demo22 extends Component {
+class Demo29 extends Component {
constructor(props) {
super(props);
}
@@ -88,5 +86,5 @@ class Demo22 extends Component {
}
}
-Demo22.defaultProps = defaultProps22;
-export default Demo22;
\ No newline at end of file
+Demo29.defaultProps = defaultProps29;
+export default Demo29;
\ No newline at end of file
diff --git a/demo/index.js b/demo/index.js
index c7702d1..477f438 100644
--- a/demo/index.js
+++ b/demo/index.js
@@ -8,7 +8,7 @@ import Button from '../src';
-var Demo0101 = require("./demolist/Demo0101");var Demo0102 = require("./demolist/Demo0102");var Demo0103 = require("./demolist/Demo0103");var Demo0104 = require("./demolist/Demo0104");var Demo0105 = require("./demolist/Demo0105");var Demo0106 = require("./demolist/Demo0106");var Demo0107 = require("./demolist/Demo0107");var Demo0201 = require("./demolist/Demo0201");var Demo0202 = require("./demolist/Demo0202");var Demo0301 = require("./demolist/Demo0301");var Demo0302 = require("./demolist/Demo0302");var Demo0401 = require("./demolist/Demo0401");var Demo0402 = require("./demolist/Demo0402");var Demo0404 = require("./demolist/Demo0404");var Demo0405 = require("./demolist/Demo0405");var Demo0406 = require("./demolist/Demo0406");var Demo0501 = require("./demolist/Demo0501");var Demo0502 = require("./demolist/Demo0502");var Demo0503 = require("./demolist/Demo0503");var Demo0505 = require("./demolist/Demo0505");var Demo0601 = require("./demolist/Demo0601");var Demo0602 = require("./demolist/Demo0602");var Demo0603 = require("./demolist/Demo0603");var Demo0701 = require("./demolist/Demo0701");var Demo0702 = require("./demolist/Demo0702");var Demo0802 = require("./demolist/Demo0802");var Demo0901 = require("./demolist/Demo0901");var Demo0902 = require("./demolist/Demo0902");var Demo0903 = require("./demolist/Demo0903");var Demo1001 = require("./demolist/Demo1001");var Demo1002 = require("./demolist/Demo1002");var Demo1101 = require("./demolist/Demo1101");var Demo1102 = require("./demolist/Demo1102");var Demo1103 = require("./demolist/Demo1103");var Demo1105 = require("./demolist/Demo1105");var Demo1106 = require("./demolist/Demo1106");var Demo1107 = require("./demolist/Demo1107");var Demo1108 = require("./demolist/Demo1108");var Demo1201 = require("./demolist/Demo1201");var Demo1301 = require("./demolist/Demo1301");var Demo1302 = require("./demolist/Demo1302");var Demo1401 = require("./demolist/Demo1401");var Demo1402 = require("./demolist/Demo1402");var Demo1403 = require("./demolist/Demo1403");var Demo1404 = require("./demolist/Demo1404");var Demo1601 = require("./demolist/Demo1601");var DemoArray = [{"example":
{ title }
\n{ desc }
\n 查看源码 \n\n { code }
\n
\n {!!scss_code ?\n { scss_code }
\n
: null }\n