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>
<span <span
class="ant-switch" checked=""
class="ant-switch ant-switch-checked"
tabindex="0" tabindex="0"
> >
<span <span

View File

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