Installation
基本用法
最简单的用法
不可用
Switch
禁用状态
文字和图标
带有文字和图标
开
关
开
关
<script setup lang="ts">
import { Space, Switch } from '@lite-space/ui'
const value1 = ref(true)
const value2 = ref(true)
</script>
<template>
<Space>
<Switch v-model="value1" checked-children="i-carbon:accessibility" un-checked-children="i-carbon:accessibility-alt" />
<Switch v-model="value2" checked-children="开" un-checked-children="关" />
<Switch>
<template #checkedChildren>
<span>开</span>
</template>
<template #unCheckedChildren>
<span>关</span>
</template>
</Switch>
</Space>
</template>