feat: initialize Vue component library and aligned documentation
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<script setup lang="ts">
|
||||
import {
|
||||
Switch,
|
||||
SwitchContent,
|
||||
SwitchControl,
|
||||
SwitchThumb,
|
||||
} from "@heroui-vue/components";
|
||||
</script>
|
||||
<template>
|
||||
<Switch v-slot="{ isSelected }">
|
||||
<SwitchContent>
|
||||
<SwitchControl><SwitchThumb /></SwitchControl>
|
||||
{{ isSelected ? "已开启" : "已关闭" }}
|
||||
</SwitchContent>
|
||||
</Switch>
|
||||
</template>
|
||||
Reference in New Issue
Block a user