feat: add Separator Kbd and Chip components
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user