mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-05-08 19:49:24 +08:00
26 lines
514 B
Vue
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>
|