2022-10-11 20:29:08 +08:00

26 lines
514 B
Vue

<template>
<component :is="uiComponent.component" v-bind="uiProps">
<template #header>
<slot name="header"></slot>
</template>
<slot></slot>
</component>
</template>
<script setup lang="ts">
import { computed } from 'vue';
import { getConfig } from './config';
const props = defineProps<{
bodyStyle?: Record<string, any>;
shadow?: string;
header?: string;
}>();
const uiComponent = getConfig('components').card;
const uiProps = computed(() => uiComponent.props(props));
</script>