mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-12 07:55:11 +08:00
新增 BattleReportDialog、SpyReportDialog、NumberWithTooltip 等组件,完善舰队模拟器功能。重构并引入 Sheet、Sidebar、Tooltip、Skeleton 等 UI 组件,优化界面结构。实现 battle.worker 支持战斗计算,增加 universeStore、fleetStorageLogic 等核心逻辑,完善多语言与类型定义。
31 lines
864 B
Vue
31 lines
864 B
Vue
<template>
|
|
<Primitive
|
|
data-slot="sidebar-group-label"
|
|
data-sidebar="group-label"
|
|
:as="as"
|
|
:as-child="asChild"
|
|
:class="
|
|
cn(
|
|
'text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0',
|
|
'group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0',
|
|
props.class
|
|
)
|
|
"
|
|
>
|
|
<slot />
|
|
</Primitive>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import type { PrimitiveProps } from 'reka-ui'
|
|
import type { HTMLAttributes } from 'vue'
|
|
import { Primitive } from 'reka-ui'
|
|
import { cn } from '@/lib/utils'
|
|
|
|
const props = defineProps<
|
|
PrimitiveProps & {
|
|
class?: HTMLAttributes['class']
|
|
}
|
|
>()
|
|
</script>
|