diff --git a/.eslintrc b/.eslintrc index f7926788ce..780aa12746 100644 --- a/.eslintrc +++ b/.eslintrc @@ -31,7 +31,6 @@ "no-undef": 2, "no-unused-vars": [2, { "vars": "all", "args": "none" }], "babel/object-shorthand": 0, - "react/jsx-boolean-value": 0, "react/jsx-no-duplicate-props": 2, "react/sort-comp": 0, "react/wrap-multilines": 0, diff --git a/components/badge/demo/dot.md b/components/badge/demo/dot.md index bb380924b4..22c26a6154 100644 --- a/components/badge/demo/dot.md +++ b/components/badge/demo/dot.md @@ -10,10 +10,10 @@ import { Badge, Icon } from 'antd'; ReactDOM.render(
- + - + 一个链接
, document.getElementById('components-badge-demo-dot')); diff --git a/components/badge/index.jsx b/components/badge/index.jsx index 06f1546437..3aaa743053 100644 --- a/components/badge/index.jsx +++ b/components/badge/index.jsx @@ -28,7 +28,7 @@ class AntBadge extends React.Component { + transitionAppear> { hidden ? null : diff --git a/components/button/demo/loading.md b/components/button/demo/loading.md index 588c83ac4f..ea83ce7791 100644 --- a/components/button/demo/loading.md +++ b/components/button/demo/loading.md @@ -22,13 +22,13 @@ const App = React.createClass({ }, render() { return
- - -
diff --git a/components/checkbox/demo/disable.md b/components/checkbox/demo/disable.md index 3a7865bf56..d5f40b43c5 100644 --- a/components/checkbox/demo/disable.md +++ b/components/checkbox/demo/disable.md @@ -1,4 +1,4 @@ -# 不可用 + 不可用 - order: 1 @@ -11,8 +11,8 @@ import { Checkbox } from 'antd'; const container = document.getElementById('components-checkbox-demo-disable'); ReactDOM.render(
- +
- +
, container); ```` diff --git a/components/collapse/demo/accordion.md b/components/collapse/demo/accordion.md index 3025a40e11..f55966563f 100644 --- a/components/collapse/demo/accordion.md +++ b/components/collapse/demo/accordion.md @@ -17,7 +17,7 @@ const text = ` `; ReactDOM.render( - +

{text}

diff --git a/components/collapse/demo/mix.md b/components/collapse/demo/mix.md index aee70adecc..494a4619f0 100644 --- a/components/collapse/demo/mix.md +++ b/components/collapse/demo/mix.md @@ -21,7 +21,7 @@ const text = ` `; ReactDOM.render( - + diff --git a/components/datepicker/demo/disabled.md b/components/datepicker/demo/disabled.md index 390158066a..e482822244 100644 --- a/components/datepicker/demo/disabled.md +++ b/components/datepicker/demo/disabled.md @@ -10,6 +10,6 @@ import { Datepicker } from 'antd'; ReactDOM.render( - + , document.getElementById('components-datepicker-demo-disabled')); ```` diff --git a/components/datepicker/demo/locale.md b/components/datepicker/demo/locale.md index 6d4ba4caca..6d18da5f11 100644 --- a/components/datepicker/demo/locale.md +++ b/components/datepicker/demo/locale.md @@ -22,7 +22,7 @@ const App = React.createClass({ }; }, render() { - return ; + return ; } }); diff --git a/components/datepicker/index.jsx b/components/datepicker/index.jsx index 81d2d7d759..3cbc77446f 100644 --- a/components/datepicker/index.jsx +++ b/components/datepicker/index.jsx @@ -105,7 +105,7 @@ function createPicker(TheCalendar) { showTime={this.props.showTime} prefixCls="ant-calendar" showOk={this.props.showTime} - showClear={true}/> + showClear /> ); let sizeClass = ''; diff --git a/components/form/demo/disabled.md b/components/form/demo/disabled.md index b77845001a..8bff67eda1 100644 --- a/components/form/demo/disabled.md +++ b/components/form/demo/disabled.md @@ -28,7 +28,7 @@ ReactDOM.render( label="用户名:" labelCol={{span:5}} wrapperCol={{span:12}} - required={true} > + required>

大眼萌 minion

+ required> diff --git a/components/form/demo/form-controls.md b/components/form/demo/form-controls.md index 5dbcd2e4b9..e763876701 100644 --- a/components/form/demo/form-controls.md +++ b/components/form/demo/form-controls.md @@ -60,7 +60,7 @@ ReactDOM.render( 选项二 diff --git a/components/form/demo/horizontal-form.md b/components/form/demo/horizontal-form.md index 73d50f84f4..820a8c88a1 100644 --- a/components/form/demo/horizontal-form.md +++ b/components/form/demo/horizontal-form.md @@ -46,7 +46,7 @@ const Demo = React.createClass({ label="用户名:" labelCol={{span: 6}} wrapperCol={{span: 6}} - required={true} > + required>

大眼萌 minion

+ required> + required> 男的 女的 @@ -72,8 +72,8 @@ const Demo = React.createClass({ label="备注:" labelCol={{span: 6}} wrapperCol={{span: 14}} - required={true} - help="随便写点什么" > + required + help="随便写点什么"> + required> 台机器 @@ -55,7 +55,7 @@ const Demo = React.createClass({ label="我是标题:" labelCol={{span: 8}} wrapperCol={{span: 10}} - required={true} > + required>

唧唧复唧唧木兰当户织呀

链接文字 @@ -66,7 +66,7 @@ const Demo = React.createClass({ label="Switch 开关:" labelCol={{span: 8}} wrapperCol={{span: 10}} - required={true} > + required> @@ -74,7 +74,7 @@ const Demo = React.createClass({ label="Slider 滑动输入条:" labelCol={{span: 8}} wrapperCol={{span: 10}} - required={true}> + required> @@ -82,7 +82,7 @@ const Demo = React.createClass({ label="Select 选择器:" labelCol={{span: 8}} wrapperCol={{span: 16}} - required={true}> + required> @@ -49,7 +49,7 @@ ReactDOM.render( label="成功校验:" labelCol={{span: 5}} wrapperCol={{span: 12}} - hasFeedback={true} + hasFeedback validateStatus="success"> @@ -58,7 +58,7 @@ ReactDOM.render( label="警告校验:" labelCol={{span: 5}} wrapperCol={{span: 12}} - hasFeedback={true} + hasFeedback validateStatus="warning"> @@ -67,7 +67,7 @@ ReactDOM.render( label="失败校验:" labelCol={{span: 5}} wrapperCol={{span: 12}} - hasFeedback={true} + hasFeedback validateStatus="error" help="请输入数字和字母组合"> diff --git a/components/modal/confirm.jsx b/components/modal/confirm.jsx index 62004b8b13..0a065099e7 100644 --- a/components/modal/confirm.jsx +++ b/components/modal/confirm.jsx @@ -91,7 +91,7 @@ export default function (props) { ReactDOM.render(

, + , document.getElementById('components-pagination-demo-changer')); ```` diff --git a/components/pagination/demo/jump.md b/components/pagination/demo/jump.md index a33b1bc998..24882baddb 100644 --- a/components/pagination/demo/jump.md +++ b/components/pagination/demo/jump.md @@ -14,6 +14,6 @@ function onChange(page) { } ReactDOM.render( - , + , document.getElementById('components-pagination-demo-jump')); ```` diff --git a/components/queue-anim/demo/form.md b/components/queue-anim/demo/form.md index 2c03d927ff..6f415ae261 100644 --- a/components/queue-anim/demo/form.md +++ b/components/queue-anim/demo/form.md @@ -27,7 +27,7 @@ const Test = React.createClass({

- + {this.state.show ? [
diff --git a/components/radio/demo/disable.md b/components/radio/demo/disable.md index fa2c8f8013..af4f90b8d3 100644 --- a/components/radio/demo/disable.md +++ b/components/radio/demo/disable.md @@ -24,7 +24,7 @@ const App = React.createClass({ return
不可用
- 不可用 + 不可用