feat(short-drama-agent-front): 优化身份管理与镜头素材布局
This commit is contained in:
1 parent
dd0bd79a35
commit
3d2c198e52
14 files changed
+1060
-629
No files matched your search
@@ -16,12 +16,21 @@ import type { GenerateIdentityImageInput, IdentityImage, IdentityViewType } from
|
||||
|
||||
/** 身份图生成配置;默认自动引用母版,不提供后端不存在的“忽略母版”开关。 */
|
||||
const props = defineProps<{
|
||||
/** 正式主体编号。 */
|
||||
subjectId: string
|
||||
/** 当前主体名称。 */
|
||||
subjectName: string
|
||||
/** 主体类型,决定允许生成的视角。 */
|
||||
module?: string
|
||||
/** 从失败记录重新生成时使用的原视角。 */
|
||||
initialViewType?: IdentityViewType
|
||||
/** 当前主体的身份图片,供选择母版参考。 */
|
||||
images: IdentityImage[]
|
||||
/** 当前操作是否禁止提交。 */
|
||||
disabled: boolean
|
||||
/** 可用模型及动态参数目录。 */
|
||||
catalog: GenerationModelCatalog
|
||||
/** 已保存的项目默认生成配置。 */
|
||||
profile: CreativeProfile
|
||||
}>()
|
||||
/** open 的当前界面状态与输入绑定。 */
|
||||
@@ -55,11 +64,16 @@ const valid = computed(
|
||||
Boolean(provider.value) &&
|
||||
(!referenceImageId.value || references.value.some(image => image.id === referenceImageId.value))
|
||||
)
|
||||
/** 监听界面目标变化并重置关联确认状态。 */
|
||||
/** 打开或切换重试目标时恢复原视角,并重新读取项目默认参数与费用确认。 */
|
||||
watch(
|
||||
() => [open.value, props.subjectId],
|
||||
() => [open.value, props.subjectId, props.initialViewType],
|
||||
() => {
|
||||
viewType.value = props.module === 'character' ? 'front' : 'primary'
|
||||
viewType.value =
|
||||
props.module === 'character'
|
||||
? props.initialViewType && props.initialViewType !== 'primary'
|
||||
? props.initialViewType
|
||||
: 'front'
|
||||
: 'primary'
|
||||
referenceImageId.value = ''
|
||||
prompt.value = ''
|
||||
const selected =
|
||||
|
||||
Reference in new issue
Block a user