mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
style: update code style to please lint
This commit is contained in:
parent
aa5c4f9595
commit
7f394da335
@ -47,10 +47,12 @@ let FilterMenu = React.createClass({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
renderMenuItem(item) {
|
renderMenuItem(item) {
|
||||||
return <Menu.Item key={item.value}>
|
return (
|
||||||
<Checkbox checked={this.state.selectedKeys.indexOf(item.value) >= 0} />
|
<Menu.Item key={item.value}>
|
||||||
{item.text}
|
<Checkbox checked={this.state.selectedKeys.indexOf(item.value) >= 0} />
|
||||||
</Menu.Item>;
|
{item.text}
|
||||||
|
</Menu.Item>
|
||||||
|
);
|
||||||
},
|
},
|
||||||
renderMenus(items) {
|
renderMenus(items) {
|
||||||
let menuItems = items.map(item => {
|
let menuItems = items.map(item => {
|
||||||
@ -94,25 +96,6 @@ let FilterMenu = React.createClass({
|
|||||||
if ('filterMultiple' in column) {
|
if ('filterMultiple' in column) {
|
||||||
multiple = column.filterMultiple;
|
multiple = column.filterMultiple;
|
||||||
}
|
}
|
||||||
<<<<<<< 1e001d2d82c5816b55d3953939fcaedbbacf1a3c
|
|
||||||
let menus = <div className="ant-table-filter-dropdown">
|
|
||||||
<Menu multiple={multiple} onClick={this.handleMenuItemClick}
|
|
||||||
prefixCls="ant-dropdown-menu"
|
|
||||||
onSelect={this.setSelectedKeys}
|
|
||||||
onDeselect={this.setSelectedKeys}
|
|
||||||
selectedKeys={this.state.selectedKeys}>
|
|
||||||
{this.renderMenus(column.filters)}
|
|
||||||
</Menu>
|
|
||||||
<div className="ant-table-filter-dropdown-btns">
|
|
||||||
<a className="ant-table-filter-dropdown-link confirm"
|
|
||||||
onClick={this.handleConfirm}>
|
|
||||||
{locale.filterConfirm}
|
|
||||||
</a>
|
|
||||||
<a className="ant-table-filter-dropdown-link clear"
|
|
||||||
onClick={this.handleClearFilters}>
|
|
||||||
{locale.filterReset}
|
|
||||||
</a>
|
|
||||||
=======
|
|
||||||
let menus = (
|
let menus = (
|
||||||
<div className="ant-table-filter-dropdown">
|
<div className="ant-table-filter-dropdown">
|
||||||
<Menu multiple={multiple}
|
<Menu multiple={multiple}
|
||||||
@ -132,7 +115,6 @@ let FilterMenu = React.createClass({
|
|||||||
{locale.filterReset}
|
{locale.filterReset}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
>>>>>>> style: update code style to please lint
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user