Files
onboard/resources/js/Pages/Report/Components/PatientSectionItem.vue
brusnitsyn 739168d427 Обновлен стартовый экран
Переписаны запросы для статистики, отчетов
Добавлена интеграция отчета сестры
2026-05-28 22:10:00 +09:00

28 lines
519 B
Vue

<script setup>
import { NCollapseItem } from 'naive-ui'
import {computed} from "vue";
const props = defineProps({
label: {
type: String
},
counter: {
type: [String, Number],
default: null
}
})
const counterText = computed(() => props.counter ? `(${props.counter})` : '(0)')
const header = computed(() => `${props.label} ${counterText.value}`)
</script>
<template>
<NCollapseItem :title="header">
<slot />
</NCollapseItem>
</template>
<style scoped>
</style>