feat: initialize Vue component library and aligned documentation
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<script setup lang="ts">
|
||||
import {
|
||||
Switch,
|
||||
SwitchContent,
|
||||
SwitchControl,
|
||||
SwitchThumb,
|
||||
Label,
|
||||
Description,
|
||||
} from "@heroui-vue/components";
|
||||
</script>
|
||||
<template>
|
||||
<Switch>
|
||||
<SwitchContent>
|
||||
<SwitchControl
|
||||
class="[--switch-control-bg-checked-hover:var(--success)] [--switch-control-bg-checked:var(--success)]"
|
||||
>
|
||||
<SwitchThumb />
|
||||
</SwitchControl>
|
||||
<div class="flex flex-col gap-0.5">
|
||||
<Label>自动保存草稿</Label>
|
||||
<Description>输入时会自动保存更改。</Description>
|
||||
</div>
|
||||
</SwitchContent>
|
||||
</Switch>
|
||||
</template>
|
||||
Reference in New Issue
Block a user