2025-04-25 23:29:46 +08:00
|
|
|
|
<!--
|
|
|
|
|
|
参考自 https://github.com/yudaocode/yudao-ui-admin-vue3/blob/master/src/components/ContentWrap/src/ContentWrap.vue
|
|
|
|
|
|
保证和 yudao-ui-admin-vue3 功能的一致性
|
|
|
|
|
|
-->
|
2025-04-25 18:22:56 +08:00
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
|
import type { CSSProperties } from 'vue';
|
|
|
|
|
|
|
|
|
|
|
|
import { Card } from 'ant-design-vue';
|
|
|
|
|
|
|
|
|
|
|
|
defineOptions({ name: 'ContentWrap' });
|
|
|
|
|
|
|
|
|
|
|
|
withDefaults(
|
|
|
|
|
|
defineProps<{
|
|
|
|
|
|
bodyStyle?: CSSProperties;
|
|
|
|
|
|
title?: string;
|
|
|
|
|
|
}>(),
|
|
|
|
|
|
{
|
|
|
|
|
|
bodyStyle: () => ({ padding: '10px' }),
|
|
|
|
|
|
title: '',
|
|
|
|
|
|
},
|
|
|
|
|
|
);
|
2025-04-25 23:29:46 +08:00
|
|
|
|
// TODO @puhui999:这个功能,和 vue3 貌似没对全哇?
|
2025-04-25 18:22:56 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
|
<Card :body-style="bodyStyle" :title="title" class="mb-4">
|
|
|
|
|
|
<slot></slot>
|
|
|
|
|
|
</Card>
|
|
|
|
|
|
</template>
|