bugfix:调整过滤行的wrap范围

This commit is contained in:
kvkens 2018-11-28 11:53:27 +08:00
parent 3a8dbcfe6d
commit 43b35a88dc
2 changed files with 9 additions and 9 deletions

View File

@ -230,7 +230,7 @@ var FilterType = function (_Component) {
format: format, format: format,
locale: _zh_CN2["default"] locale: _zh_CN2["default"]
})), })),
filterDropdown == 'show' && _react2["default"].createElement(_FilterDropDown2["default"], { _react2["default"].createElement(_FilterDropDown2["default"], {
locale: locale, locale: locale,
onSelectDropdown: onSelectDropdown, onSelectDropdown: onSelectDropdown,
onClickClear: _this.clearDateValue, onClickClear: _this.clearDateValue,
@ -252,7 +252,7 @@ var FilterType = function (_Component) {
dateInputPlaceholder: ['开始', '结束'], dateInputPlaceholder: ['开始', '结束'],
showClear: true showClear: true
})), })),
filterDropdown == 'show' && _react2["default"].createElement(_FilterDropDown2["default"], { _react2["default"].createElement(_FilterDropDown2["default"], {
locale: locale, locale: locale,
onSelectDropdown: onSelectDropdown, onSelectDropdown: onSelectDropdown,
onClickClear: _this.clearDateValue, onClickClear: _this.clearDateValue,
@ -268,7 +268,7 @@ var FilterType = function (_Component) {
className: className, className: className,
onChange: onChange onChange: onChange
}), }),
filterDropdown == 'show' && _react2["default"].createElement(_FilterDropDown2["default"], { locale: locale, _react2["default"].createElement(_FilterDropDown2["default"], { locale: locale,
onSelectDropdown: onSelectDropdown onSelectDropdown: onSelectDropdown
}) })
); );

View File

@ -174,14 +174,14 @@ class FilterType extends Component {
open={this.state.open} open={this.state.open}
format={format} format={format}
locale={zhCN} locale={zhCN}
/>{filterDropdown == 'show' && <FilterDropDown /><FilterDropDown
locale={locale} locale={locale}
onSelectDropdown={onSelectDropdown} onSelectDropdown={onSelectDropdown}
onClickClear={this.clearDateValue} onClickClear={this.clearDateValue}
isShowCondition={filterDropdown} isShowCondition={filterDropdown}
isShowClear={this.state.dateValue} isShowClear={this.state.dateValue}
> >
</FilterDropDown>} </FilterDropDown>
</div> </div>
case 'daterange': case 'daterange':
return <div className={`${clsPrefix} filter-wrap`}> return <div className={`${clsPrefix} filter-wrap`}>
@ -195,14 +195,14 @@ class FilterType extends Component {
placeholder={'开始 ~ 结束'} placeholder={'开始 ~ 结束'}
dateInputPlaceholder={['开始', '结束']} dateInputPlaceholder={['开始', '结束']}
showClear={true} showClear={true}
/>{filterDropdown == 'show' && <FilterDropDown /><FilterDropDown
locale={locale} locale={locale}
onSelectDropdown={onSelectDropdown} onSelectDropdown={onSelectDropdown}
onClickClear={this.clearDateValue} onClickClear={this.clearDateValue}
isShowCondition={filterDropdown} isShowCondition={filterDropdown}
isShowClear={this.state.dateValue} isShowClear={this.state.dateValue}
> >
</FilterDropDown>} </FilterDropDown>
</div> </div>
case 'bool': case 'bool':
return <div className={`${clsPrefix} filter-wrap`}> return <div className={`${clsPrefix} filter-wrap`}>
@ -210,10 +210,10 @@ class FilterType extends Component {
className={className} className={className}
onChange={onChange} onChange={onChange}
/> />
{filterDropdown == 'show' && <FilterDropDown locale={locale} <FilterDropDown locale={locale}
onSelectDropdown={onSelectDropdown} onSelectDropdown={onSelectDropdown}
> >
</FilterDropDown>} </FilterDropDown>
</div> </div>
default: default:
return <div></div>; return <div></div>;