You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design-vue/components/switch/demo/text.md

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>