mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-12 07:55:11 +08:00
重构部分UI组件脚本结构,统一导入风格,提升可维护性。CardUnlockOverlay解锁条件弹窗改为列表展示,提升可读性。修复QueueNotifications滚动区域高度。ScrollableDialogContent增加最大高度。StarsBackground与ParticlesBg组件代码格式优化。App.vue引入玩家积分定时更新逻辑,NPC成长系统补充间谍探测器修复。
28 lines
782 B
Vue
28 lines
782 B
Vue
<template>
|
|
<Separator
|
|
data-slot="separator"
|
|
v-bind="delegatedProps"
|
|
:class="
|
|
cn(
|
|
'bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px',
|
|
props.class
|
|
)
|
|
"
|
|
/>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import type { SeparatorProps } from 'reka-ui'
|
|
import type { HTMLAttributes } from 'vue'
|
|
import { reactiveOmit } from '@vueuse/core'
|
|
import { Separator } from 'reka-ui'
|
|
import { cn } from '@/lib/utils'
|
|
|
|
const props = withDefaults(defineProps<SeparatorProps & { class?: HTMLAttributes['class'] }>(), {
|
|
orientation: 'horizontal',
|
|
decorative: true
|
|
})
|
|
|
|
const delegatedProps = reactiveOmit(props, 'class')
|
|
</script>
|