feat: 新增 antd 模式的代码生成示例

This commit is contained in:
puhui999
2025-04-25 18:22:56 +08:00
parent e519bff27c
commit db86dfc8c5
8 changed files with 373 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
<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: '',
},
);
</script>
<template>
<Card :body-style="bodyStyle" :title="title" class="mb-4">
<slot></slot>
</Card>
</template>

View File

@@ -0,0 +1 @@
export { default as ContentWrap } from './content-wrap.vue';