refactor: 生成模型配置取消折叠并统一内容边界
This commit is contained in:
1 parent
c8f26b27ee
commit
afbb762106
1 file changed
+12
-10
@@ -1,6 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed, onScopeDispose, ref, watch } from 'vue'
|
import { computed, onScopeDispose, ref, watch } from 'vue'
|
||||||
import { NAlert, NButton, NCollapse, NCollapseItem, NFormItem, NSelect, NSpin } from 'naive-ui'
|
import { NAlert, NButton, NFormItem, NSelect, NSpin } from 'naive-ui'
|
||||||
import { errorMessage } from '../../../lib/http'
|
import { errorMessage } from '../../../lib/http'
|
||||||
import { generationConfigApi } from '../api'
|
import { generationConfigApi } from '../api'
|
||||||
import type {
|
import type {
|
||||||
@@ -196,9 +196,9 @@ onScopeDispose(() => controller?.abort())
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<NCollapse class="production-tool-section creative-profile-settings" :default-expanded-names="['creative-profile']">
|
<section class="production-tool-section creative-profile-settings workspace-panel">
|
||||||
<NCollapseItem name="creative-profile" title="项目画布与生成模型">
|
<h3 class="text-sm font-semibold">项目画布与生成模型</h3>
|
||||||
<NSpin :show="loading">
|
<NSpin :show="loading">
|
||||||
<NAlert v-if="error" type="error" :show-icon="false" class="mb-3">{{ error }}</NAlert>
|
<NAlert v-if="error" type="error" :show-icon="false" class="mb-3">{{ error }}</NAlert>
|
||||||
<NAlert v-if="notice" type="success" :show-icon="false" class="mb-3">{{ notice }}</NAlert>
|
<NAlert v-if="notice" type="success" :show-icon="false" class="mb-3">{{ notice }}</NAlert>
|
||||||
<NAlert
|
<NAlert
|
||||||
@@ -206,7 +206,7 @@ onScopeDispose(() => controller?.abort())
|
|||||||
type="warning"
|
type="warning"
|
||||||
:show-icon="false"
|
:show-icon="false"
|
||||||
>
|
>
|
||||||
后端尚未启用完整的图片和视频模型,暂时无法保存项目生成配置。
|
当前没有可用的完整图片和视频模型,暂时无法保存项目生成配置。
|
||||||
</NAlert>
|
</NAlert>
|
||||||
<div v-if="profile" class="creative-profile-grid">
|
<div v-if="profile" class="creative-profile-grid">
|
||||||
<NFormItem label="作品宽高比">
|
<NFormItem label="作品宽高比">
|
||||||
@@ -259,9 +259,8 @@ onScopeDispose(() => controller?.abort())
|
|||||||
>
|
>
|
||||||
<span class="text-xs text-muted">切换模型时会按新模型重置生成参数。</span>
|
<span class="text-xs text-muted">切换模型时会按新模型重置生成参数。</span>
|
||||||
</div>
|
</div>
|
||||||
</NSpin>
|
</NSpin>
|
||||||
</NCollapseItem>
|
</section>
|
||||||
</NCollapse>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
@@ -270,7 +269,7 @@ onScopeDispose(() => controller?.abort())
|
|||||||
@apply grid grid-cols-[repeat(2,_minmax(0,_1fr))] items-start gap-x-5 gap-y-6;
|
@apply grid grid-cols-[repeat(2,_minmax(0,_1fr))] items-start gap-x-5 gap-y-6;
|
||||||
}
|
}
|
||||||
.model-section {
|
.model-section {
|
||||||
@apply min-w-0 p-4 bg-(--app-subtle);
|
@apply min-w-0 p-5 bg-(--app-subtle);
|
||||||
}
|
}
|
||||||
.model-section > :deep(.n-form-item) {
|
.model-section > :deep(.n-form-item) {
|
||||||
@apply mb-6;
|
@apply mb-6;
|
||||||
@@ -290,7 +289,10 @@ onScopeDispose(() => controller?.abort())
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
.creative-profile-settings {
|
.creative-profile-settings {
|
||||||
@apply mb-7;
|
@apply m-0;
|
||||||
|
}
|
||||||
|
.creative-profile-settings > h3 {
|
||||||
|
@apply mb-5;
|
||||||
}
|
}
|
||||||
.creative-profile-actions {
|
.creative-profile-actions {
|
||||||
@apply mt-5 pt-1;
|
@apply mt-5 pt-1;
|
||||||
|
|||||||
Reference in new issue
Block a user