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

View File

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