feat: migrate ScrollShadow and Tabs with docs and keyboard support
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<script setup lang="ts">
|
||||
import { ScrollShadow } from "@heroui-vue/components";
|
||||
const entries = [
|
||||
"与设计团队一起回顾季度目标。",
|
||||
"将深色模式设计令牌发布到生产环境。",
|
||||
"合并表单字段的无障碍修复。",
|
||||
"发布更新后的组件文档。",
|
||||
"安排下一冲刺的性能审计。",
|
||||
"在文档站点中添加滚动阴影示例。",
|
||||
];
|
||||
</script>
|
||||
<template>
|
||||
<div class="w-full sm:max-w-sm">
|
||||
<ScrollShadow
|
||||
hideScrollBar
|
||||
class="max-h-48 rounded-xl border border-border/80 bg-linear-to-b from-neutral-50/90 to-white p-4 ring-1 ring-black/5 dark:from-neutral-900/80 dark:to-neutral-900 dark:ring-white/10"
|
||||
:size="48"
|
||||
variant="fade"
|
||||
>
|
||||
<div class="space-y-3">
|
||||
<template :key="entry" v-for="entry in entries">
|
||||
<p
|
||||
class="text-sm leading-relaxed text-neutral-600 dark:text-neutral-400"
|
||||
>
|
||||
{{ entry }}
|
||||
</p>
|
||||
</template>
|
||||
</div>
|
||||
</ScrollShadow>
|
||||
</div>
|
||||
</template>
|
||||
@@ -0,0 +1,19 @@
|
||||
<script setup lang="ts">
|
||||
import { ScrollShadow } from "@heroui-vue/components";
|
||||
</script>
|
||||
<template>
|
||||
<div class="w-full p-0 sm:max-w-sm">
|
||||
<ScrollShadow class="max-h-[240px] p-4">
|
||||
<div class="space-y-4">
|
||||
<template :key="idx" v-for="(_, idx) in Array.from({ length: 10 })">
|
||||
<p>
|
||||
段落 {{ idx + 1 }}:Lorem ipsum dolor sit amet, consectetur
|
||||
adipiscing elit. Nullam pulvinar risus non risus hendrerit
|
||||
venenatis. Pellentesque sit amet hendrerit risus, sed porttitor
|
||||
quam. Morbi accumsan cursus enim, sed ultricies sapien.
|
||||
</p>
|
||||
</template>
|
||||
</div>
|
||||
</ScrollShadow>
|
||||
</div>
|
||||
</template>
|
||||
@@ -0,0 +1,19 @@
|
||||
<script setup lang="ts">
|
||||
import { ScrollShadow } from "@heroui-vue/components";
|
||||
</script>
|
||||
<template>
|
||||
<div class="w-full p-0 sm:max-w-sm">
|
||||
<ScrollShadow hideScrollBar class="max-h-[240px] p-4">
|
||||
<div class="space-y-4">
|
||||
<template :key="idx" v-for="(_, idx) in Array.from({ length: 10 })">
|
||||
<p>
|
||||
段落 {{ idx + 1 }}:Lorem ipsum dolor sit amet, consectetur
|
||||
adipiscing elit. Nullam pulvinar risus non risus hendrerit
|
||||
venenatis. Pellentesque sit amet hendrerit risus, sed porttitor
|
||||
quam. Morbi accumsan cursus enim, sed ultricies sapien.
|
||||
</p>
|
||||
</template>
|
||||
</div>
|
||||
</ScrollShadow>
|
||||
</div>
|
||||
</template>
|
||||
@@ -0,0 +1,63 @@
|
||||
<script setup lang="ts">
|
||||
import {
|
||||
Card,
|
||||
CardDescription,
|
||||
CardTitle,
|
||||
ScrollShadow,
|
||||
} from "@heroui-vue/components";
|
||||
const images = [
|
||||
"https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/docs/robot1.jpeg",
|
||||
"https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/docs/avocado.jpeg",
|
||||
"https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/docs/oranges.jpeg",
|
||||
];
|
||||
const getRandomImage = (idx: number) => {
|
||||
return images[idx % images.length];
|
||||
};
|
||||
</script>
|
||||
<template>
|
||||
<div class="w-full sm:max-w-sm">
|
||||
<div class="mb-8 w-full">
|
||||
<h4 class="mb-2 text-sm font-semibold">垂直</h4>
|
||||
<Card class="w-full p-0">
|
||||
<ScrollShadow class="max-h-[240px] p-4" orientation="vertical">
|
||||
<div class="space-y-4">
|
||||
<template :key="idx" v-for="(_, idx) in Array.from({ length: 10 })">
|
||||
<p>
|
||||
段落 {{ idx + 1 }}:Lorem ipsum dolor sit amet, consectetur
|
||||
adipiscing elit. Nullam pulvinar risus non risus hendrerit
|
||||
venenatis. Pellentesque sit amet hendrerit risus, sed porttitor
|
||||
quam. Morbi accumsan cursus enim, sed ultricies sapien.
|
||||
</p>
|
||||
</template>
|
||||
</div>
|
||||
</ScrollShadow>
|
||||
</Card>
|
||||
</div>
|
||||
<div class="w-full">
|
||||
<h4 class="mb-2 text-sm font-semibold">水平</h4>
|
||||
<Card class="w-full p-0">
|
||||
<ScrollShadow class="p-4" orientation="horizontal">
|
||||
<div class="flex flex-row gap-4">
|
||||
<template :key="idx" v-for="(_, idx) in Array.from({ length: 10 })">
|
||||
<Card
|
||||
class="flex min-w-[200px] flex-row gap-3 p-1"
|
||||
variant="transparent"
|
||||
>
|
||||
<img
|
||||
alt="示例卡片"
|
||||
class="aspect-square h-16 w-16 shrink-0 rounded-xl object-cover select-none sm:h-20 sm:w-20"
|
||||
loading="lazy"
|
||||
:src="getRandomImage(idx)"
|
||||
/>
|
||||
<div class="flex flex-1 flex-col justify-center gap-1">
|
||||
<CardTitle class="text-sm">连接未来</CardTitle>
|
||||
<CardDescription class="text-xs">今天 18:30</CardDescription>
|
||||
</div>
|
||||
</Card>
|
||||
</template>
|
||||
</div>
|
||||
</ScrollShadow>
|
||||
</Card>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -0,0 +1,19 @@
|
||||
<script setup lang="ts">
|
||||
import { ScrollShadow } from "@heroui-vue/components";
|
||||
</script>
|
||||
<template>
|
||||
<div class="w-full p-0 sm:max-w-sm">
|
||||
<ScrollShadow class="max-h-[240px] p-4" :size="80">
|
||||
<div class="space-y-4">
|
||||
<template :key="idx" v-for="(_, idx) in Array.from({ length: 10 })">
|
||||
<p>
|
||||
段落 {{ idx + 1 }}:Lorem ipsum dolor sit amet, consectetur
|
||||
adipiscing elit. Nullam pulvinar risus non risus hendrerit
|
||||
venenatis. Pellentesque sit amet hendrerit risus, sed porttitor
|
||||
quam. Morbi accumsan cursus enim, sed ultricies sapien.
|
||||
</p>
|
||||
</template>
|
||||
</div>
|
||||
</ScrollShadow>
|
||||
</div>
|
||||
</template>
|
||||
@@ -0,0 +1,98 @@
|
||||
<script setup lang="ts">
|
||||
import type { ScrollShadowVisibility } from "@heroui-vue/components";
|
||||
import { ref } from "vue";
|
||||
import {
|
||||
Card,
|
||||
CardDescription,
|
||||
CardTitle,
|
||||
ScrollShadow,
|
||||
} from "@heroui-vue/components";
|
||||
const images = [
|
||||
"https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/docs/robot1.jpeg",
|
||||
"https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/docs/avocado.jpeg",
|
||||
"https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/docs/oranges.jpeg",
|
||||
];
|
||||
const VISIBILITY_LABELS: Record<ScrollShadowVisibility, string> = {
|
||||
auto: "自动",
|
||||
both: "两侧",
|
||||
bottom: "底部",
|
||||
left: "左侧",
|
||||
none: "无",
|
||||
right: "右侧",
|
||||
top: "顶部",
|
||||
};
|
||||
const verticalState = ref<ScrollShadowVisibility>("none");
|
||||
function setVerticalState(value: ScrollShadowVisibility) {
|
||||
verticalState.value = value;
|
||||
}
|
||||
const horizontalState = ref<ScrollShadowVisibility>("none");
|
||||
function setHorizontalState(value: ScrollShadowVisibility) {
|
||||
horizontalState.value = value;
|
||||
}
|
||||
const getRandomImage = (idx: number) => {
|
||||
return images[idx % images.length];
|
||||
};
|
||||
</script>
|
||||
<template>
|
||||
<div class="w-full sm:max-w-sm">
|
||||
<div class="mb-8 flex flex-col gap-2">
|
||||
<div class="rounded bg-default p-4">
|
||||
<p class="text-sm font-semibold">
|
||||
垂直阴影状态:{{ VISIBILITY_LABELS[verticalState] }}
|
||||
</p>
|
||||
</div>
|
||||
<div class="w-full">
|
||||
<ScrollShadow
|
||||
class="max-h-[240px] p-4"
|
||||
orientation="vertical"
|
||||
@visibility-change="(visibility) => setVerticalState(visibility)"
|
||||
>
|
||||
<div class="space-y-4">
|
||||
<template :key="idx" v-for="(_, idx) in Array.from({ length: 10 })">
|
||||
<p>
|
||||
段落 {{ idx + 1 }}:Lorem ipsum dolor sit amet, consectetur
|
||||
adipiscing elit. Nullam pulvinar risus non risus hendrerit
|
||||
venenatis. Pellentesque sit amet hendrerit risus, sed porttitor
|
||||
quam. Morbi accumsan cursus enim, sed ultricies sapien.
|
||||
</p>
|
||||
</template>
|
||||
</div>
|
||||
</ScrollShadow>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex flex-col gap-2">
|
||||
<div class="rounded bg-default p-4">
|
||||
<p class="text-sm font-semibold">
|
||||
水平阴影状态:{{ VISIBILITY_LABELS[horizontalState] }}
|
||||
</p>
|
||||
</div>
|
||||
<div class="w-full">
|
||||
<ScrollShadow
|
||||
class="p-4"
|
||||
orientation="horizontal"
|
||||
@visibility-change="(visibility) => setHorizontalState(visibility)"
|
||||
>
|
||||
<div class="flex flex-row gap-4">
|
||||
<template :key="idx" v-for="(_, idx) in Array.from({ length: 10 })">
|
||||
<Card
|
||||
class="flex min-w-[200px] flex-row gap-3 p-1"
|
||||
variant="transparent"
|
||||
>
|
||||
<img
|
||||
alt="示例卡片"
|
||||
class="aspect-square h-16 w-16 shrink-0 rounded-xl object-cover select-none sm:h-20 sm:w-20"
|
||||
loading="lazy"
|
||||
:src="getRandomImage(idx)"
|
||||
/>
|
||||
<div class="flex flex-1 flex-col justify-center gap-1">
|
||||
<CardTitle class="text-sm">连接未来</CardTitle>
|
||||
<CardDescription class="text-xs">今天 18:30</CardDescription>
|
||||
</div>
|
||||
</Card>
|
||||
</template>
|
||||
</div>
|
||||
</ScrollShadow>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -0,0 +1,38 @@
|
||||
<script setup lang="ts">
|
||||
import {
|
||||
Button,
|
||||
Card,
|
||||
CardContent,
|
||||
CardDescription,
|
||||
CardFooter,
|
||||
CardHeader,
|
||||
CardTitle,
|
||||
ScrollShadow,
|
||||
} from "@heroui-vue/components";
|
||||
</script>
|
||||
<template>
|
||||
<Card class="max-w-[400px]">
|
||||
<CardHeader>
|
||||
<CardTitle>条款与条件</CardTitle>
|
||||
<CardDescription>继续前请先阅读</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent class="p-0">
|
||||
<ScrollShadow class="h-[300px] px-4" :size="80">
|
||||
<div class="space-y-4">
|
||||
<template :key="idx" v-for="(_, idx) in Array.from({ length: 10 })">
|
||||
<p>
|
||||
段落 {{ idx + 1 }}:Lorem ipsum dolor sit amet, consectetur
|
||||
adipiscing elit. Nullam pulvinar risus non risus hendrerit
|
||||
venenatis. Pellentesque sit amet hendrerit risus, sed porttitor
|
||||
quam. Morbi accumsan cursus enim, sed ultricies sapien.
|
||||
</p>
|
||||
</template>
|
||||
</div>
|
||||
</ScrollShadow>
|
||||
</CardContent>
|
||||
<CardFooter class="mt-4 flex flex-row gap-2">
|
||||
<Button class="w-full" variant="secondary">Cancel</Button>
|
||||
<Button class="w-full">接受</Button>
|
||||
</CardFooter>
|
||||
</Card>
|
||||
</template>
|
||||
@@ -0,0 +1,39 @@
|
||||
<script setup lang="ts">
|
||||
import {
|
||||
Tabs,
|
||||
TabsIndicator,
|
||||
TabsList,
|
||||
TabsListContainer,
|
||||
TabsPanel,
|
||||
TabsTab,
|
||||
} from "@heroui-vue/components";
|
||||
</script>
|
||||
<template>
|
||||
<Tabs class="w-full max-w-md">
|
||||
<TabsListContainer>
|
||||
<TabsList aria-label="选项">
|
||||
<TabsTab value="overview">
|
||||
概览
|
||||
<TabsIndicator></TabsIndicator>
|
||||
</TabsTab>
|
||||
<TabsTab value="analytics">
|
||||
分析
|
||||
<TabsIndicator></TabsIndicator>
|
||||
</TabsTab>
|
||||
<TabsTab value="reports">
|
||||
报告
|
||||
<TabsIndicator></TabsIndicator>
|
||||
</TabsTab>
|
||||
</TabsList>
|
||||
</TabsListContainer>
|
||||
<TabsPanel class="pt-4" value="overview">
|
||||
<p>查看项目概览与近期活动。</p>
|
||||
</TabsPanel>
|
||||
<TabsPanel class="pt-4" value="analytics">
|
||||
<p>跟踪指标并分析性能数据。</p>
|
||||
</TabsPanel>
|
||||
<TabsPanel class="pt-4" value="reports">
|
||||
<p>生成并下载详细报告。</p>
|
||||
</TabsPanel>
|
||||
</Tabs>
|
||||
</template>
|
||||
@@ -0,0 +1,51 @@
|
||||
<script setup lang="ts">
|
||||
import {
|
||||
Tabs,
|
||||
TabsIndicator,
|
||||
TabsList,
|
||||
TabsListContainer,
|
||||
TabsPanel,
|
||||
TabsTab,
|
||||
} from "@heroui-vue/components";
|
||||
const listClassName = [
|
||||
"rounded-xl border border-accent/10 bg-accent-soft/30 p-1",
|
||||
"**:data-[slot=tabs-tab]:rounded-lg",
|
||||
"**:data-[slot=tabs-tab]:bg-transparent",
|
||||
"**:data-[slot=tabs-tab]:text-muted",
|
||||
"**:data-[slot=tabs-tab]:opacity-100",
|
||||
"**:data-[slot=tabs-tab]:transition-colors",
|
||||
"**:data-[slot=tabs-tab]:data-[hovered=true]:not-data-[selected=true]:bg-accent-soft",
|
||||
"**:data-[slot=tabs-tab]:data-[hovered=true]:not-data-[selected=true]:text-accent-soft-foreground",
|
||||
"**:data-[slot=tabs-tab]:data-[pressed=true]:not-data-[selected=true]:bg-accent-soft-hover",
|
||||
"**:data-[slot=tabs-tab]:data-[focus-visible=true]:ring-2",
|
||||
"**:data-[slot=tabs-tab]:data-[focus-visible=true]:ring-accent/15",
|
||||
"**:data-[slot=tabs-tab]:data-[selected=true]:font-medium",
|
||||
"**:data-[slot=tabs-tab]:data-[selected=true]:text-accent-foreground",
|
||||
"**:data-[slot=tabs-tab]:shadow-none",
|
||||
"**:data-[slot=tabs-indicator]:rounded-lg",
|
||||
"**:data-[slot=tabs-indicator]:bg-accent",
|
||||
"**:data-[slot=tabs-indicator]:shadow-none",
|
||||
].join(" ");
|
||||
</script>
|
||||
<template>
|
||||
<Tabs class="w-full max-w-sm">
|
||||
<TabsListContainer class="rounded-none bg-transparent">
|
||||
<TabsList aria-label="计费周期" :class="listClassName">
|
||||
<TabsTab value="monthly">
|
||||
按月
|
||||
<TabsIndicator></TabsIndicator>
|
||||
</TabsTab>
|
||||
<TabsTab value="yearly">
|
||||
按年
|
||||
<TabsIndicator></TabsIndicator>
|
||||
</TabsTab>
|
||||
</TabsList>
|
||||
</TabsListContainer>
|
||||
<TabsPanel class="pt-3 text-sm text-muted" value="monthly">
|
||||
按月计费,随时可取消。
|
||||
</TabsPanel>
|
||||
<TabsPanel class="pt-3 text-sm text-muted" value="yearly">
|
||||
年付可节省 20%。
|
||||
</TabsPanel>
|
||||
</Tabs>
|
||||
</template>
|
||||
@@ -0,0 +1,37 @@
|
||||
<script setup lang="ts">
|
||||
import {
|
||||
Tabs,
|
||||
TabsIndicator,
|
||||
TabsList,
|
||||
TabsListContainer,
|
||||
TabsPanel,
|
||||
TabsTab,
|
||||
} from "@heroui-vue/components";
|
||||
</script>
|
||||
<template>
|
||||
<Tabs class="w-full max-w-md">
|
||||
<TabsListContainer>
|
||||
<TabsList aria-label="含禁用项的标签页">
|
||||
<TabsTab value="active">
|
||||
启用
|
||||
<TabsIndicator></TabsIndicator>
|
||||
</TabsTab>
|
||||
<TabsTab isDisabled value="disabled">
|
||||
已禁用
|
||||
<TabsIndicator></TabsIndicator>
|
||||
</TabsTab>
|
||||
<TabsTab value="available">
|
||||
可用
|
||||
<TabsIndicator></TabsIndicator>
|
||||
</TabsTab>
|
||||
</TabsList>
|
||||
</TabsListContainer>
|
||||
<TabsPanel class="pt-4" value="active">
|
||||
<p>此标签页已启用,可以选择。</p>
|
||||
</TabsPanel>
|
||||
<TabsPanel class="pt-4" value="disabled"><p>无法访问此内容。</p></TabsPanel>
|
||||
<TabsPanel class="pt-4" value="available">
|
||||
<p>此标签页也可以选择。</p>
|
||||
</TabsPanel>
|
||||
</Tabs>
|
||||
</template>
|
||||
@@ -0,0 +1,42 @@
|
||||
<script setup lang="ts">
|
||||
import {
|
||||
Tabs,
|
||||
TabsIndicator,
|
||||
TabsList,
|
||||
TabsListContainer,
|
||||
TabsPanel,
|
||||
TabsTab,
|
||||
} from "@heroui-vue/components";
|
||||
const items = [
|
||||
{ id: "overview", label: "概览" },
|
||||
{ id: "analytics", label: "分析" },
|
||||
{ id: "reports", label: "报告" },
|
||||
{ id: "performance", label: "性能" },
|
||||
{ id: "engagement", label: "互动" },
|
||||
{ id: "audience", label: "受众" },
|
||||
{ id: "acquisition", label: "获取" },
|
||||
{ id: "retention", label: "留存" },
|
||||
{ id: "settings", label: "设置" },
|
||||
];
|
||||
</script>
|
||||
<template>
|
||||
<div class="w-[400px] max-w-full">
|
||||
<Tabs>
|
||||
<TabsListContainer>
|
||||
<TabsList aria-label="溢出选项">
|
||||
<template :key="item.id" v-for="item in items">
|
||||
<TabsTab :value="item.id">
|
||||
{{ item.label }}
|
||||
<TabsIndicator></TabsIndicator>
|
||||
</TabsTab>
|
||||
</template>
|
||||
</TabsList>
|
||||
</TabsListContainer>
|
||||
<template :key="item.id" v-for="item in items">
|
||||
<TabsPanel class="pt-4" :value="item.id">
|
||||
<p>{{ item.label }} 面板内容。</p>
|
||||
</TabsPanel>
|
||||
</template>
|
||||
</Tabs>
|
||||
</div>
|
||||
</template>
|
||||
@@ -0,0 +1,39 @@
|
||||
<script setup lang="ts">
|
||||
import {
|
||||
Tabs,
|
||||
TabsIndicator,
|
||||
TabsList,
|
||||
TabsListContainer,
|
||||
TabsPanel,
|
||||
TabsTab,
|
||||
} from "@heroui-vue/components";
|
||||
</script>
|
||||
<template>
|
||||
<Tabs class="w-full max-w-md" as="div" data-custom="foo">
|
||||
<TabsListContainer>
|
||||
<TabsList aria-label="选项">
|
||||
<TabsTab href="/guide" value="getting-started" as="a">
|
||||
快速入门
|
||||
<TabsIndicator></TabsIndicator>
|
||||
</TabsTab>
|
||||
<TabsTab href="/components" value="components" as="a">
|
||||
组件
|
||||
<TabsIndicator></TabsIndicator>
|
||||
</TabsTab>
|
||||
<TabsTab href="/introduction" value="releases" as="a">
|
||||
发布说明
|
||||
<TabsIndicator></TabsIndicator>
|
||||
</TabsTab>
|
||||
</TabsList>
|
||||
</TabsListContainer>
|
||||
<TabsPanel class="pt-4" value="overview">
|
||||
<p>查看项目概览与近期活动。</p>
|
||||
</TabsPanel>
|
||||
<TabsPanel class="pt-4" value="analytics">
|
||||
<p>跟踪指标并分析性能数据。</p>
|
||||
</TabsPanel>
|
||||
<TabsPanel class="pt-4" value="reports">
|
||||
<p>生成并下载详细报告。</p>
|
||||
</TabsPanel>
|
||||
</Tabs>
|
||||
</template>
|
||||
@@ -0,0 +1,50 @@
|
||||
<script setup lang="ts">
|
||||
import {
|
||||
Tabs,
|
||||
TabsIndicator,
|
||||
TabsList,
|
||||
TabsListContainer,
|
||||
TabsPanel,
|
||||
TabsTab,
|
||||
} from "@heroui-vue/components";
|
||||
</script>
|
||||
<template>
|
||||
<Tabs class="w-full max-w-lg" orientation="vertical" variant="secondary">
|
||||
<TabsListContainer>
|
||||
<TabsList aria-label="垂直标签页">
|
||||
<TabsTab value="account">
|
||||
账户
|
||||
<TabsIndicator></TabsIndicator>
|
||||
</TabsTab>
|
||||
<TabsTab value="security">
|
||||
安全
|
||||
<TabsIndicator></TabsIndicator>
|
||||
</TabsTab>
|
||||
<TabsTab value="notifications">
|
||||
通知
|
||||
<TabsIndicator></TabsIndicator>
|
||||
</TabsTab>
|
||||
<TabsTab value="billing">
|
||||
账单
|
||||
<TabsIndicator></TabsIndicator>
|
||||
</TabsTab>
|
||||
</TabsList>
|
||||
</TabsListContainer>
|
||||
<TabsPanel class="px-4" value="account">
|
||||
<h3 class="mb-2 font-semibold">账户 Settings</h3>
|
||||
<p class="text-sm text-muted">管理你的账户信息与偏好设置。</p>
|
||||
</TabsPanel>
|
||||
<TabsPanel class="px-4" value="security">
|
||||
<h3 class="mb-2 font-semibold">安全 Settings</h3>
|
||||
<p class="text-sm text-muted">配置双重认证与密码设置。</p>
|
||||
</TabsPanel>
|
||||
<TabsPanel class="px-4" value="notifications">
|
||||
<h3 class="mb-2 font-semibold">通知偏好</h3>
|
||||
<p class="text-sm text-muted">选择接收通知的方式与时间。</p>
|
||||
</TabsPanel>
|
||||
<TabsPanel class="px-4" value="billing">
|
||||
<h3 class="mb-2 font-semibold">账单 Information</h3>
|
||||
<p class="text-sm text-muted">查看并管理订阅与支付方式。</p>
|
||||
</TabsPanel>
|
||||
</Tabs>
|
||||
</template>
|
||||
@@ -0,0 +1,39 @@
|
||||
<script setup lang="ts">
|
||||
import {
|
||||
Tabs,
|
||||
TabsIndicator,
|
||||
TabsList,
|
||||
TabsListContainer,
|
||||
TabsPanel,
|
||||
TabsTab,
|
||||
} from "@heroui-vue/components";
|
||||
</script>
|
||||
<template>
|
||||
<Tabs class="w-full max-w-md" variant="secondary">
|
||||
<TabsListContainer>
|
||||
<TabsList aria-label="选项">
|
||||
<TabsTab value="overview">
|
||||
概览
|
||||
<TabsIndicator></TabsIndicator>
|
||||
</TabsTab>
|
||||
<TabsTab value="analytics">
|
||||
分析
|
||||
<TabsIndicator></TabsIndicator>
|
||||
</TabsTab>
|
||||
<TabsTab value="reports">
|
||||
报告
|
||||
<TabsIndicator></TabsIndicator>
|
||||
</TabsTab>
|
||||
</TabsList>
|
||||
</TabsListContainer>
|
||||
<TabsPanel class="pt-4" value="overview">
|
||||
<p>查看项目概览与近期活动。</p>
|
||||
</TabsPanel>
|
||||
<TabsPanel class="pt-4" value="analytics">
|
||||
<p>跟踪指标并分析性能数据。</p>
|
||||
</TabsPanel>
|
||||
<TabsPanel class="pt-4" value="reports">
|
||||
<p>生成并下载详细报告。</p>
|
||||
</TabsPanel>
|
||||
</Tabs>
|
||||
</template>
|
||||
@@ -0,0 +1,63 @@
|
||||
<script setup lang="ts">
|
||||
import {
|
||||
Tabs,
|
||||
TabsIndicator,
|
||||
TabsList,
|
||||
TabsListContainer,
|
||||
TabsPanel,
|
||||
TabsTab,
|
||||
} from "@heroui-vue/components";
|
||||
</script>
|
||||
<template>
|
||||
<Tabs
|
||||
align="start"
|
||||
class="w-full max-w-lg"
|
||||
orientation="vertical"
|
||||
variant="secondary"
|
||||
>
|
||||
<TabsListContainer>
|
||||
<TabsList aria-label="设置">
|
||||
<TabsTab value="general">
|
||||
通用
|
||||
<TabsIndicator></TabsIndicator>
|
||||
</TabsTab>
|
||||
<TabsTab value="billing">
|
||||
订阅与账单
|
||||
<TabsIndicator></TabsIndicator>
|
||||
</TabsTab>
|
||||
<TabsTab value="appearance">
|
||||
外观
|
||||
<TabsIndicator></TabsIndicator>
|
||||
</TabsTab>
|
||||
<TabsTab value="notifications">
|
||||
通知
|
||||
<TabsIndicator></TabsIndicator>
|
||||
</TabsTab>
|
||||
<TabsTab value="privacy">
|
||||
隐私
|
||||
<TabsIndicator></TabsIndicator>
|
||||
</TabsTab>
|
||||
</TabsList>
|
||||
</TabsListContainer>
|
||||
<TabsPanel class="px-4" value="general">
|
||||
<h3 class="mb-2 font-semibold">通用</h3>
|
||||
<p class="text-sm text-muted">管理你的账户信息与偏好设置。</p>
|
||||
</TabsPanel>
|
||||
<TabsPanel class="px-4" value="billing">
|
||||
<h3 class="mb-2 font-semibold">订阅与账单</h3>
|
||||
<p class="text-sm text-muted">查看并管理你的套餐与支付方式。</p>
|
||||
</TabsPanel>
|
||||
<TabsPanel class="px-4" value="appearance">
|
||||
<h3 class="mb-2 font-semibold">外观</h3>
|
||||
<p class="text-sm text-muted">选择主题并调整界面密度。</p>
|
||||
</TabsPanel>
|
||||
<TabsPanel class="px-4" value="notifications">
|
||||
<h3 class="mb-2 font-semibold">通知</h3>
|
||||
<p class="text-sm text-muted">选择接收通知的方式与时间。</p>
|
||||
</TabsPanel>
|
||||
<TabsPanel class="px-4" value="privacy">
|
||||
<h3 class="mb-2 font-semibold">隐私</h3>
|
||||
<p class="text-sm text-muted">控制你分享的内容以及谁可以查看你的动态。</p>
|
||||
</TabsPanel>
|
||||
</Tabs>
|
||||
</template>
|
||||
@@ -0,0 +1,50 @@
|
||||
<script setup lang="ts">
|
||||
import {
|
||||
Tabs,
|
||||
TabsIndicator,
|
||||
TabsList,
|
||||
TabsListContainer,
|
||||
TabsPanel,
|
||||
TabsTab,
|
||||
} from "@heroui-vue/components";
|
||||
</script>
|
||||
<template>
|
||||
<Tabs class="w-full max-w-lg" orientation="vertical">
|
||||
<TabsListContainer>
|
||||
<TabsList aria-label="垂直标签页">
|
||||
<TabsTab value="account">
|
||||
账户
|
||||
<TabsIndicator></TabsIndicator>
|
||||
</TabsTab>
|
||||
<TabsTab value="security">
|
||||
安全
|
||||
<TabsIndicator></TabsIndicator>
|
||||
</TabsTab>
|
||||
<TabsTab value="notifications">
|
||||
通知
|
||||
<TabsIndicator></TabsIndicator>
|
||||
</TabsTab>
|
||||
<TabsTab value="billing">
|
||||
账单
|
||||
<TabsIndicator></TabsIndicator>
|
||||
</TabsTab>
|
||||
</TabsList>
|
||||
</TabsListContainer>
|
||||
<TabsPanel class="px-4" value="account">
|
||||
<h3 class="mb-2 font-semibold">账户 Settings</h3>
|
||||
<p class="text-sm text-muted">管理你的账户信息与偏好设置。</p>
|
||||
</TabsPanel>
|
||||
<TabsPanel class="px-4" value="security">
|
||||
<h3 class="mb-2 font-semibold">安全 Settings</h3>
|
||||
<p class="text-sm text-muted">配置双重认证与密码设置。</p>
|
||||
</TabsPanel>
|
||||
<TabsPanel class="px-4" value="notifications">
|
||||
<h3 class="mb-2 font-semibold">通知偏好</h3>
|
||||
<p class="text-sm text-muted">选择接收通知的方式与时间。</p>
|
||||
</TabsPanel>
|
||||
<TabsPanel class="px-4" value="billing">
|
||||
<h3 class="mb-2 font-semibold">账单 Information</h3>
|
||||
<p class="text-sm text-muted">查看并管理订阅与支付方式。</p>
|
||||
</TabsPanel>
|
||||
</Tabs>
|
||||
</template>
|
||||
@@ -0,0 +1,42 @@
|
||||
<script setup lang="ts">
|
||||
import {
|
||||
Tabs,
|
||||
TabsIndicator,
|
||||
TabsList,
|
||||
TabsListContainer,
|
||||
TabsPanel,
|
||||
TabsSeparator,
|
||||
TabsTab,
|
||||
} from "@heroui-vue/components";
|
||||
</script>
|
||||
<template>
|
||||
<Tabs class="w-full max-w-md">
|
||||
<TabsListContainer>
|
||||
<TabsList aria-label="选项">
|
||||
<TabsTab value="overview">
|
||||
概览
|
||||
<TabsIndicator></TabsIndicator>
|
||||
</TabsTab>
|
||||
<TabsTab value="analytics">
|
||||
<TabsSeparator></TabsSeparator>
|
||||
分析
|
||||
<TabsIndicator></TabsIndicator>
|
||||
</TabsTab>
|
||||
<TabsTab value="reports">
|
||||
<TabsSeparator></TabsSeparator>
|
||||
报告
|
||||
<TabsIndicator></TabsIndicator>
|
||||
</TabsTab>
|
||||
</TabsList>
|
||||
</TabsListContainer>
|
||||
<TabsPanel class="pt-4" value="overview">
|
||||
<p>查看项目概览与近期活动。</p>
|
||||
</TabsPanel>
|
||||
<TabsPanel class="pt-4" value="analytics">
|
||||
<p>跟踪指标并分析性能数据。</p>
|
||||
</TabsPanel>
|
||||
<TabsPanel class="pt-4" value="reports">
|
||||
<p>生成并下载详细报告。</p>
|
||||
</TabsPanel>
|
||||
</Tabs>
|
||||
</template>
|
||||
Reference in New Issue
Block a user