mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-05 05:29:01 +08:00
465 B
465 B
#### 文字和图标
带有文字和图标。
#### Text & icon
With text and icon.
<template>
<div>
<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="cross" slot="unCheckedChildren"/>
</a-switch>
</div>
</template>