17 lines
395 B
Vue
17 lines
395 B
Vue
<script setup lang="ts">
|
|
import DataTable from '~/components/pub/my-ui/data-table/data-table.vue'
|
|
import { defaultConfig, ambulatoryConfig } from './list.cfg'
|
|
|
|
const props = defineProps<{
|
|
data: any[]
|
|
classCode: string | undefined
|
|
}>()
|
|
</script>
|
|
|
|
<template>
|
|
<DataTable
|
|
v-bind="props.classCode === 'ambulatory' ? ambulatoryConfig : defaultConfig"
|
|
:rows="props.data"
|
|
/>
|
|
</template>
|