fix lint in demo

This commit is contained in:
afc163 2017-05-15 16:36:07 +08:00
parent f93867cfc8
commit 29e54c2339
4 changed files with 7 additions and 3 deletions

View File

@ -26,7 +26,8 @@ class App extends React.Component {
return ( return (
<div> <div>
<p style={{ marginBottom: '20px' }}> <p style={{ marginBottom: '20px' }}>
<Checkbox checked={this.state.checked} <Checkbox
checked={this.state.checked}
disabled={this.state.disabled} disabled={this.state.disabled}
onChange={this.onChange} onChange={this.onChange}
> >

View File

@ -22,6 +22,7 @@ function onChange(dates, dateStrings) {
console.log('From: ', dates[0], ', to: ', dates[1]); console.log('From: ', dates[0], ', to: ', dates[1]);
console.log('From: ', dateStrings[0], ', to: ', dateStrings[1]); console.log('From: ', dateStrings[0], ', to: ', dateStrings[1]);
} }
ReactDOM.render( ReactDOM.render(
<div> <div>
<RangePicker <RangePicker

View File

@ -75,7 +75,9 @@ class App extends React.Component {
> >
Reload Reload
</Button> </Button>
<span style={{ marginLeft: 8 }}>{hasSelected ? `Selected ${selectedRowKeys.length} items` : ''}</span> <span style={{ marginLeft: 8 }}>
{hasSelected ? `Selected ${selectedRowKeys.length} items` : ''}
</span>
</div> </div>
<Table rowSelection={rowSelection} columns={columns} dataSource={data} /> <Table rowSelection={rowSelection} columns={columns} dataSource={data} />
</div> </div>

View File

@ -109,7 +109,7 @@
"eslint-plugin-babel": "^4.0.0", "eslint-plugin-babel": "^4.0.0",
"eslint-plugin-import": "^2.2.0", "eslint-plugin-import": "^2.2.0",
"eslint-plugin-jsx-a11y": "^5.0.1", "eslint-plugin-jsx-a11y": "^5.0.1",
"eslint-plugin-markdown": "1.0.0-beta.4", "eslint-plugin-markdown": "~1.0.0-beta.4",
"eslint-plugin-react": "^7.0.1", "eslint-plugin-react": "^7.0.1",
"eslint-tinker": "^0.4.0", "eslint-tinker": "^0.4.0",
"fetch-jsonp": "^1.0.3", "fetch-jsonp": "^1.0.3",