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 等核心逻辑,完善多语言与类型定义。
22 lines
569 B
Vue
22 lines
569 B
Vue
<script setup lang="ts">
|
|
import type { DialogTitleProps } from "reka-ui"
|
|
import type { HTMLAttributes } from "vue"
|
|
import { reactiveOmit } from "@vueuse/core"
|
|
import { DialogTitle } from "reka-ui"
|
|
import { cn } from "@/lib/utils"
|
|
|
|
const props = defineProps<DialogTitleProps & { class?: HTMLAttributes["class"] }>()
|
|
|
|
const delegatedProps = reactiveOmit(props, "class")
|
|
</script>
|
|
|
|
<template>
|
|
<DialogTitle
|
|
data-slot="sheet-title"
|
|
:class="cn('text-foreground font-semibold', props.class)"
|
|
v-bind="delegatedProps"
|
|
>
|
|
<slot />
|
|
</DialogTitle>
|
|
</template>
|