@ -17,3 +17,10 @@ ReactDOM.render(
mountNode
);
````
<style>
.ant-switch {
margin-bottom: 8px;
display: block;
}
@ -23,8 +23,6 @@ const Test = React.createClass({
return (
<div>
<Switch disabled={this.state.disabled} />
<br />
<Button type="primary" onClick={this.toggle}>Toggle disabled</Button>
</div>
@ -11,7 +11,6 @@ import { Switch } from 'antd';
ReactDOM.render(
<Switch />
<Switch size="small" />
, mountNode);
@ -10,7 +10,6 @@ import { Switch, Icon } from 'antd';
ReactDOM.render(<div>
<Switch checkedChildren="开" unCheckedChildren="关" />
<span> </span>
<Switch checkedChildren={<Icon type="check" />} unCheckedChildren={<Icon type="cross" />} />
</div>, mountNode);