feat:过滤行的失去焦点事件还原

This commit is contained in:
kvkens 2018-10-30 09:36:20 +08:00
parent ed58d29fcc
commit fa0daef431
8 changed files with 228 additions and 445 deletions

View File

@ -83,40 +83,35 @@ var FilterDropDown = function (_Component) {
onSelect: this.onSelectDropdown,
selectedKeys: this.state.selectValue
},
_react2["default"].createElement(
Item,
{ key: '1' },
'\u7B49\u4E8E'
),
_react2["default"].createElement(
Item,
{ key: '2' },
'\u5305\u542B'
),
_react2["default"].createElement(
Item,
{ key: '3' },
'\u4EE5\u7ED3\u5C3E'
),
_react2["default"].createElement(
Item,
{ key: '4' },
'\u7A7A'
),
_react2["default"].createElement(
Item,
{ key: '5' },
'\u4E0D\u7B49\u4E8E'
),
_react2["default"].createElement(
Item,
{ key: '6' },
'\u4E0D\u5305\u542B'
),
_react2["default"].createElement(
Item,
{ key: '1' },
'\u7B49\u4E8E'
),
_react2["default"].createElement(
Item,
{ key: '5' },
'\u4E0D\u7B49\u4E8E'
),
_react2["default"].createElement(
Item,
{ key: '7' },
'\u4EE5\u5F00\u59CB'
),
_react2["default"].createElement(
Item,
{ key: '3' },
'\u4EE5\u7ED3\u5C3E'
)
);
return _react2["default"].createElement(

View File

@ -140,8 +140,8 @@ var FilterType = function (_Component) {
value: _this.state.text,
className: className,
onChange: _this.changeText,
onKeyDown: _this.changeTextCall
//onBlur={this.changeTextCallBlur}
onKeyDown: _this.changeTextCall,
onBlur: _this.changeTextCallBlur
}),
_react2["default"].createElement(_FilterDropDown2["default"], {
onSelectDropdown: onSelectDropdown,

19
dist/demo.css vendored
View File

@ -6765,15 +6765,7 @@ input.u-button[type="submit"] {
float: left; }
.u-pagination .data_per_select {
margin: 5px;
float: left;
min-width: 120px; }
.u-pagination .data_per_select .u-select {
width: 50px;
margin: 0 6px; }
.u-pagination .data_per_select .u-select .u-select-selection {
height: 36px; }
.u-pagination .data_per_select .u-select .u-select-selection .u-select-selection-rendered {
line-height: 36px; }
float: left; }
.u-pagination .data_select {
outline: none;
-webkit-appearance: none;
@ -9239,8 +9231,7 @@ ul {
box-shadow: 0 1px 5px #ccc;
background-clip: padding-box;
border: 1px solid #ccc;
line-height: 1.5;
z-index: 1800; }
line-height: 1.5; }
.rc-calendar-date-panel,
.rc-calendar-panel {
@ -9690,9 +9681,6 @@ ul {
background: #3fc7fa;
color: #fff; }
.rc-calendar > .rc-calendar-year-panel {
position: relative; }
.rc-calendar-year-panel {
left: 0;
top: 0;
@ -9981,8 +9969,7 @@ ul {
left: 36px; }
.rc-calendar-range .rc-calendar-year-panel,
.rc-calendar-range .rc-calendar-month-panel,
.rc-calendar-range .rc-calendar-decade-panel {
.rc-calendar-range .rc-calendar-month-panel {
top: 35px; }
.rc-calendar-range .rc-calendar-month-panel .rc-calendar-year-panel {

2
dist/demo.css.map vendored

File diff suppressed because one or more lines are too long

607
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

@ -91,4 +91,4 @@
"react-addons-test-utils": "^15.5.0",
"react-dom": "^15.5.0"
}
}
}

View File

@ -94,7 +94,7 @@ class FilterType extends Component {
className={className}
onChange={this.changeText}
onKeyDown={this.changeTextCall}
//onBlur={this.changeTextCallBlur}
onBlur={this.changeTextCallBlur}
/>
<FilterDropDown
onSelectDropdown={onSelectDropdown}