feat: initialize Vue component library and aligned documentation
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<script setup lang="ts">
|
||||
import {
|
||||
Switch,
|
||||
SwitchContent,
|
||||
SwitchControl,
|
||||
SwitchThumb,
|
||||
} from "@heroui-vue/components";
|
||||
import { ref } from "vue";
|
||||
const selected = ref(false);
|
||||
</script>
|
||||
<template>
|
||||
<div class="flex flex-col gap-4">
|
||||
<Switch v-model:checked="selected">
|
||||
<SwitchContent>
|
||||
<SwitchControl><SwitchThumb /></SwitchControl>
|
||||
启用通知
|
||||
</SwitchContent>
|
||||
</Switch>
|
||||
<p class="text-sm text-muted">开关{{ selected ? "已打开" : "已关闭" }}</p>
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user