mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 02:59:04 +08:00
chore: 迁移 switch iconfont
This commit is contained in:
parent
335c34aab7
commit
37a1e03bc8
@ -8,11 +8,12 @@
|
||||
|
||||
````jsx
|
||||
var Switch = antd.Switch;
|
||||
var Icon = antd.Icon;
|
||||
var container = document.getElementById('components-switch-demo-text');
|
||||
|
||||
React.render(<div>
|
||||
<Switch checkedChildren="开" unCheckedChildren="关" />
|
||||
<span> </span>
|
||||
<Switch checkedChildren={<i className="anticon anticon-check"></i>} unCheckedChildren={<i className="anticon anticon-cross"></i>} />
|
||||
<Switch checkedChildren={<Icon type="check" />} unCheckedChildren={<Icon type="cross" />} />
|
||||
</div>, container);
|
||||
````
|
||||
|
Loading…
Reference in New Issue
Block a user