fix badge demo

This commit is contained in:
afc163 2017-07-31 18:03:16 +08:00
parent 330e1f7a4b
commit a88f8fcc21
2 changed files with 3 additions and 2 deletions

View File

@ -399,7 +399,8 @@ exports[`renders ./components/badge/demo/change.md correctly 1`] = `
/>
</span>
<span
class="ant-switch"
checked=""
class="ant-switch ant-switch-checked"
tabindex="0"
>
<span

View File

@ -60,7 +60,7 @@ class Demo extends React.Component {
<Badge dot={this.state.show}>
<a href="#" className="head-example" />
</Badge>
<Switch onChange={this.onChange} />
<Switch onChange={this.onChange} checked={this.state.show} />
</div>
</div>
);