diff --git a/apps/web-antdv-next/src/components/cron-tab/cron-tab.vue b/apps/web-antdv-next/src/components/cron-tab/cron-tab.vue index ad11e9d25..ab9366e30 100644 --- a/apps/web-antdv-next/src/components/cron-tab/cron-tab.vue +++ b/apps/web-antdv-next/src/components/cron-tab/cron-tab.vue @@ -16,7 +16,6 @@ import { RadioButton, RadioGroup, Select, - SelectOption, TabPane, Tabs, } from 'antdv-next'; @@ -419,22 +418,21 @@ function inputChange() { @input="inputChange" > @@ -498,14 +496,10 @@ function inputChange() { v-model:value="cronValue.second.appoint" mode="multiple" style="width: 100%" - > - - + :options=" + data.second.map((item) => ({ label: item, value: item })) + " + /> @@ -562,14 +556,10 @@ function inputChange() { v-model:value="cronValue.minute.appoint" mode="multiple" style="width: 100%" - > - - + :options=" + data.minute.map((item) => ({ label: item, value: item })) + " + /> @@ -626,14 +616,10 @@ function inputChange() { v-model:value="cronValue.hour.appoint" mode="multiple" style="width: 100%" - > - - + :options=" + data.hour.map((item) => ({ label: item, value: item })) + " + /> @@ -692,14 +678,10 @@ function inputChange() { v-model:value="cronValue.day.appoint" mode="multiple" style="width: 100%" - > - - + :options=" + data.day.map((item) => ({ label: item, value: item })) + " + /> @@ -756,14 +738,10 @@ function inputChange() { v-model:value="cronValue.month.appoint" mode="multiple" style="width: 100%" - > - - + :options=" + data.month.map((item) => ({ label: item, value: item })) + " + /> @@ -787,23 +765,15 @@ function inputChange() { - + - - + - - + + :options="data.week" + /> - + + :options=" + data.year.map((item) => ({ label: item, value: item })) + " + /> diff --git a/apps/web-antdv-next/src/views/ai/image/index/modules/common/index.vue b/apps/web-antdv-next/src/views/ai/image/index/modules/common/index.vue index 2ac784268..f614f2b9a 100644 --- a/apps/web-antdv-next/src/views/ai/image/index/modules/common/index.vue +++ b/apps/web-antdv-next/src/views/ai/image/index/modules/common/index.vue @@ -12,14 +12,7 @@ import { OtherPlatformEnum, } from '@vben/constants'; -import { - Button, - InputNumber, - Select, - SelectOption, - Space, - TextArea, -} from 'antdv-next'; +import { Button, InputNumber, Select, Space, TextArea } from 'antdv-next'; import { drawImage } from '#/api/ai/image'; @@ -154,15 +147,9 @@ defineExpose({ settingValues }); size="large" class="!w-80" @change="handlerPlatformChange" - > - - {{ item.name }} - - + :options="OtherPlatformEnum" + :field-names="{ label: 'name', value: 'key' }" + /> @@ -176,15 +163,9 @@ defineExpose({ settingValues }); placeholder="Select" size="large" class="!w-80" - > - - {{ item.name }} - - + :options="platformModels" + :field-names="{ label: 'name', value: 'id' }" + /> diff --git a/apps/web-antdv-next/src/views/ai/image/index/modules/midjourney/index.vue b/apps/web-antdv-next/src/views/ai/image/index/modules/midjourney/index.vue index 783b5f5a3..3544a991b 100644 --- a/apps/web-antdv-next/src/views/ai/image/index/modules/midjourney/index.vue +++ b/apps/web-antdv-next/src/views/ai/image/index/modules/midjourney/index.vue @@ -17,15 +17,7 @@ import { NijiVersionList, } from '@vben/constants'; -import { - Button, - Image, - message, - Select, - SelectOption, - Space, - TextArea, -} from 'antdv-next'; +import { Button, Image, message, Select, Space, TextArea } from 'antdv-next'; import { midjourneyImagine } from '#/api/ai/image'; import { ImageUpload } from '#/components/upload'; @@ -222,15 +214,8 @@ defineExpose({ settingValues }); class="!w-80" allow-clear placeholder="请选择版本" - > - - {{ item.label }} - - + :options="versionList" + /> diff --git a/apps/web-antdv-next/src/views/ai/image/index/modules/stable-diffusion/index.vue b/apps/web-antdv-next/src/views/ai/image/index/modules/stable-diffusion/index.vue index 451fc907e..32c4626a8 100644 --- a/apps/web-antdv-next/src/views/ai/image/index/modules/stable-diffusion/index.vue +++ b/apps/web-antdv-next/src/views/ai/image/index/modules/stable-diffusion/index.vue @@ -19,7 +19,6 @@ import { InputNumber, message, Select, - SelectOption, Space, TextArea, } from 'antdv-next'; @@ -169,15 +168,9 @@ defineExpose({ settingValues }); placeholder="Select" size="large" class="!w-80" - > - - {{ item.name }} - - + :options="StableDiffusionSamplers" + :field-names="{ label: 'name', value: 'key' }" + /> @@ -190,15 +183,9 @@ defineExpose({ settingValues }); placeholder="Select" size="large" class="!w-80" - > - - {{ item.name }} - - + :options="StableDiffusionClipGuidancePresets" + :field-names="{ label: 'name', value: 'key' }" + /> @@ -211,16 +198,9 @@ defineExpose({ settingValues }); placeholder="Select" size="large" class="!w-80" - > - - {{ item.name }} - - + :options="StableDiffusionStylePresets" + :field-names="{ label: 'name', value: 'key' }" + /> diff --git a/apps/web-antdv-next/src/views/ai/music/index/mode/desc.vue b/apps/web-antdv-next/src/views/ai/music/index/mode/desc.vue index a3bf14ca1..ad9f039ff 100644 --- a/apps/web-antdv-next/src/views/ai/music/index/mode/desc.vue +++ b/apps/web-antdv-next/src/views/ai/music/index/mode/desc.vue @@ -1,7 +1,7 @@