ant-design-vue/components/switch/demo/text.md

25 lines
471 B
Markdown
Raw Normal View History

2018-02-27 04:14:29 +00:00
<cn>
#### 文字和图标
带有文字和图标。
</cn>
<us>
#### Text & icon
With text and icon.
</us>
2019-10-09 10:32:23 +00:00
```tpl
2018-02-27 04:14:29 +00:00
<template>
<div>
2019-09-28 12:45:07 +00:00
<a-switch checkedChildren="开" unCheckedChildren="关" defaultChecked />
<br />
<a-switch checkedChildren="1" unCheckedChildren="0" />
<br />
<a-switch defaultChecked>
<a-icon type="check" slot="checkedChildren" />
<a-icon type="close" slot="unCheckedChildren" />
2018-02-27 04:14:29 +00:00
</a-switch>
</div>
</template>
```