Files
onboard/resources/js/Pages/Report/Components/PatientSectionItem.vue
brusnitsyn bb9e67ab3d * изменил таблицы в основном отчете
* изменил метод сохранения пациентов основного отчета
2026-05-07 18:00:43 +09:00

28 lines
516 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})` : '')
const header = computed(() => `${props.label} ${counterText.value}`)
</script>
<template>
<NCollapseItem :title="header">
<slot />
</NCollapseItem>
</template>
<style scoped>
</style>