Browse Source

update switch demos

pull/2055/head
afc163 9 years ago
parent
commit
cb30522149
  1. 7
      components/switch/demo/basic.md
  2. 2
      components/switch/demo/disabled.md
  3. 1
      components/switch/demo/size.md
  4. 1
      components/switch/demo/text.md

7
components/switch/demo/basic.md

@ -17,3 +17,10 @@ ReactDOM.render(
mountNode
);
````
<style>
.ant-switch {
margin-bottom: 8px;
display: block;
}
<style>

2
components/switch/demo/disabled.md

@ -23,8 +23,6 @@ const Test = React.createClass({
return (
<div>
<Switch disabled={this.state.disabled} />
<br />
<br />
<Button type="primary" onClick={this.toggle}>Toggle disabled</Button>
</div>
);

1
components/switch/demo/size.md

@ -11,7 +11,6 @@ import { Switch } from 'antd';
ReactDOM.render(
<div>
<Switch />
&nbsp;
<Switch size="small" />
</div>
, mountNode);

1
components/switch/demo/text.md

@ -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);
````

Loading…
Cancel
Save