review:代码生成优化

This commit is contained in:
YunaiV
2025-04-19 10:18:54 +08:00
parent eea46a1920
commit 7622e9a666
4 changed files with 15 additions and 9 deletions

View File

@@ -1,4 +1,10 @@
<script lang="ts" setup>
// TODO @puhui999bug 同一个预览,点击多次,第二次不展示;
// TODO @puhui999体验优化左边的树默认展开所有节点这样体验好点哈
// TODO @puhui999展示代码时前两行是空的可能要看下
// TODO @puhui999要不预览代码默认全屏
// TODO @芋艿待定vben2.0 有 CodeEditor不确定官方后续会不会迁移
import type { InfraCodegenApi } from '#/api/infra/codegen';
import { useVbenModal } from '@vben/common-ui';
@@ -224,7 +230,6 @@ const [Modal, modalApi] = useVbenModal({
</div>
</Tabs.TabPane>
<template #rightExtra>
<!-- TODO @芋艿貌似别的模块也可以通过 :icon="h(Copy)" -->
<Button type="primary" ghost @click="copyCode" :icon="h(Copy)"> 复制代码 </Button>
</template>
</Tabs>