Switch (开关)布尔开关(v-model),可带标签。基础用法NotificationsDisabledBasic.vue查看代码复制代码<script setup lang="ts"> import { ref } from 'vue' const on = ref(true) const off = ref(false) </script> <template> <div class="flex flex-col gap-3"> <KunSwitch v-model="on" label="Notifications" /> <KunSwitch v-model="off" label="Disabled" disabled /> </div> </template> 属性属性类型默认值说明modelValue *boolean—classNamestring""disabledbooleanfalselabelstring""labelClassNamestring""