refactor: 破坏性重构,将枚举类由 utils 提取到 @vben/utils

This commit is contained in:
xingyu4j
2025-09-03 16:08:40 +08:00
parent 25468bece5
commit e6f76c097d
143 changed files with 477 additions and 1343 deletions

View File

@@ -1,23 +1,24 @@
<!-- dall3 -->
<script setup lang="ts">
import type { ImageModel, ImageSize } from '@vben/utils';
import type { AiImageApi } from '#/api/ai/image';
import type { AiModelModelApi } from '#/api/ai/model/model';
import type { ImageModel, ImageSize } from '#/utils';
import { ref } from 'vue';
import { confirm } from '@vben/common-ui';
import { Button, Image, message, Space, Textarea } from 'ant-design-vue';
import { drawImage } from '#/api/ai/image';
import {
AiPlatformEnum,
Dall3Models,
Dall3SizeList,
Dall3StyleList,
ImageHotWords,
} from '#/utils';
} from '@vben/utils';
import { Button, Image, message, Space, Textarea } from 'ant-design-vue';
import { drawImage } from '#/api/ai/image';
// 接收父组件传入的模型列表
const props = defineProps({