feat: add Surface, Link and Spinner components
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
<script setup lang="ts">
|
||||
import { Link, LinkIcon } from "@heroui-vue/components";
|
||||
</script>
|
||||
<template>
|
||||
<div class="flex flex-col gap-6">
|
||||
<div class="flex flex-col gap-2">
|
||||
<p class="text-sm font-medium text-muted">默认悬浮下划线</p>
|
||||
<Link href="#">
|
||||
悬浮以查看下划线
|
||||
<LinkIcon />
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
<div class="flex flex-col gap-2">
|
||||
<p class="text-sm font-medium text-muted">始终显示下划线</p>
|
||||
<Link class="underline" href="#">
|
||||
下划线始终可见
|
||||
<LinkIcon />
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
<div class="flex flex-col gap-2">
|
||||
<p class="text-sm font-medium text-muted">无下划线</p>
|
||||
<Link class="no-underline" href="#">
|
||||
不带任何下划线的链接
|
||||
<LinkIcon />
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
<div class="flex flex-col gap-2">
|
||||
<p class="text-sm font-medium text-muted">调整下划线偏移</p>
|
||||
<div class="flex flex-col gap-3">
|
||||
<Link class="underline-offset-1" href="#">
|
||||
偏移 1(1px 间距)
|
||||
<LinkIcon />
|
||||
</Link>
|
||||
<Link class="underline-offset-2" href="#">
|
||||
偏移 2(2px 间距)
|
||||
<LinkIcon />
|
||||
</Link>
|
||||
<Link class="underline-offset-3" href="#">
|
||||
偏移 3(3px 间距)
|
||||
<LinkIcon />
|
||||
</Link>
|
||||
<Link class="underline-offset-4" href="#">
|
||||
偏移 4(4px 间距)
|
||||
<LinkIcon />
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user