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

281 B

#### 两种大小 `size="small"` 表示小号开关。 #### Two sizes `size="small"` represents a small sized switch.
<template>
  <div>
    <a-switch defaultChecked />
    <br />
    <a-switch size="small" defaultChecked />
  </div>
</template>