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 (
<div>
<p style={{ marginBottom: '20px' }}>
<Checkbox checked={this.state.checked}
<Checkbox
checked={this.state.checked}
disabled={this.state.disabled}
onChange={this.onChange}
>

View File

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

View File

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

View File

@ -109,7 +109,7 @@
"eslint-plugin-babel": "^4.0.0",
"eslint-plugin-import": "^2.2.0",
"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-tinker": "^0.4.0",
"fetch-jsonp": "^1.0.3",