Files
heroui-vue/apps/docs/demos/kbd-variants.vue
T
2026-10-21 18:35:24 +08:00

66 lines
1.7 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<script setup lang="ts">
import { Kbd, KbdAbbr, KbdContent } from "@heroui-vue/components";
</script>
<template>
<div class="flex flex-col gap-4">
<div class="flex items-center gap-2">
<span>复制:</span>
<Kbd>
<KbdAbbr key-value="command" />
<KbdContent>C</KbdContent>
</Kbd>
<Kbd variant="light">
<KbdAbbr key-value="command" />
<KbdContent>C</KbdContent>
</Kbd>
</div>
<div class="flex items-center gap-2">
<span>粘贴:</span>
<Kbd>
<KbdAbbr key-value="command" />
<KbdContent>V</KbdContent>
</Kbd>
<Kbd variant="light">
<KbdAbbr key-value="command" />
<KbdContent>V</KbdContent>
</Kbd>
</div>
<div class="flex items-center gap-2">
<span>剪切:</span>
<Kbd>
<KbdAbbr key-value="command" />
<KbdContent>X</KbdContent>
</Kbd>
<Kbd variant="light">
<KbdAbbr key-value="command" />
<KbdContent>X</KbdContent>
</Kbd>
</div>
<div class="flex items-center gap-2">
<span>撤销:</span>
<Kbd>
<KbdAbbr key-value="command" />
<KbdContent>Z</KbdContent>
</Kbd>
<Kbd variant="light">
<KbdAbbr key-value="command" />
<KbdContent>Z</KbdContent>
</Kbd>
</div>
<div class="flex items-center gap-2">
<span>重做:</span>
<Kbd>
<KbdAbbr key-value="command" />
<KbdAbbr key-value="shift" />
<KbdContent>Z</KbdContent>
</Kbd>
<Kbd variant="light">
<KbdAbbr key-value="command" />
<KbdAbbr key-value="shift" />
<KbdContent>Z</KbdContent>
</Kbd>
</div>
</div>
</template>