bugfix:onFilterChange.onFilterClear

This commit is contained in:
kvkens 2018-12-04 14:29:45 +08:00
parent ba775033cd
commit e1c87da647
2 changed files with 7 additions and 7 deletions

View File

@ -368,8 +368,8 @@ var Table = function (_Component) {
Table.prototype.getHeader = function getHeader(columns, fixed) { Table.prototype.getHeader = function getHeader(columns, fixed) {
var _props = this.props, var _props = this.props,
filterDelay = _props.filterDelay, filterDelay = _props.filterDelay,
onFilterRowsDropChange = _props.onFilterRowsDropChange, onFilterChange = _props.onFilterChange,
onFilterRowsChange = _props.onFilterRowsChange, onFilterClear = _props.onFilterClear,
filterable = _props.filterable, filterable = _props.filterable,
showHeader = _props.showHeader, showHeader = _props.showHeader,
expandIconAsCell = _props.expandIconAsCell, expandIconAsCell = _props.expandIconAsCell,
@ -421,8 +421,8 @@ var Table = function (_Component) {
rowStyle: trStyle, rowStyle: trStyle,
fixed: fixed, fixed: fixed,
filterable: filterable, filterable: filterable,
onFilterRowsChange: onFilterRowsChange, onFilterChange: onFilterChange,
onFilterRowsDropChange: onFilterRowsDropChange, onFilterClear: onFilterClear,
filterDelay: filterDelay, filterDelay: filterDelay,
afterDragColWidth: afterDragColWidth, afterDragColWidth: afterDragColWidth,
contentDomWidth: this.contentDomWidth, contentDomWidth: this.contentDomWidth,

View File

@ -294,7 +294,7 @@ class Table extends Component {
} }
getHeader(columns, fixed) { getHeader(columns, fixed) {
const { filterDelay, onFilterRowsDropChange, onFilterRowsChange, filterable, showHeader, expandIconAsCell, clsPrefix, onDragStart, onDragEnter, onDragOver, onDrop, draggable, const { filterDelay, onFilterChange, onFilterClear, filterable, showHeader, expandIconAsCell, clsPrefix, onDragStart, onDragEnter, onDragOver, onDrop, draggable,
onMouseDown, onMouseMove, onMouseUp, dragborder, onThMouseMove, dragborderKey, minColumnWidth, headerHeight,afterDragColWidth,headerScroll ,bordered} = this.props; onMouseDown, onMouseMove, onMouseUp, dragborder, onThMouseMove, dragborderKey, minColumnWidth, headerHeight,afterDragColWidth,headerScroll ,bordered} = this.props;
const rows = this.getHeaderRows(columns); const rows = this.getHeaderRows(columns);
if (expandIconAsCell && fixed !== 'right') { if (expandIconAsCell && fixed !== 'right') {
@ -329,8 +329,8 @@ class Table extends Component {
rowStyle={trStyle} rowStyle={trStyle}
fixed={fixed} fixed={fixed}
filterable={filterable} filterable={filterable}
onFilterRowsChange={onFilterRowsChange} onFilterChange={onFilterChange}
onFilterRowsDropChange={onFilterRowsDropChange} onFilterClear={onFilterClear}
filterDelay={filterDelay} filterDelay={filterDelay}
afterDragColWidth = {afterDragColWidth} afterDragColWidth = {afterDragColWidth}
contentDomWidth={this.contentDomWidth} contentDomWidth={this.contentDomWidth}