refactor: 生成弹窗操作按钮移入固定底部区域
This commit is contained in:
1 parent
a7e19045bb
commit
e7fb0dc652
1 file changed
+6
-4
@@ -22,6 +22,7 @@ const props = defineProps<{
|
||||
}>()
|
||||
const open = defineModel<boolean>('open', { default: false })
|
||||
const emit = defineEmits<{ generate: [input: GenerateIdentityImageInput] }>()
|
||||
const formRef = ref<InstanceType<typeof AppForm> | null>(null)
|
||||
const viewType = ref<IdentityViewType>('primary')
|
||||
const referenceImageId = ref('')
|
||||
const prompt = ref('')
|
||||
@@ -89,6 +90,7 @@ const rules = {
|
||||
<template>
|
||||
<AppDialog v-model:open="open" title="生成身份参考图" :description="subjectName">
|
||||
<AppForm
|
||||
ref="formRef"
|
||||
:model="formModel"
|
||||
:rules="rules"
|
||||
:disabled="disabled"
|
||||
@@ -166,12 +168,12 @@ const rules = {
|
||||
class="flex items-start gap-2 text-xs leading-6"
|
||||
>我已确认后台没有同项目任务,了解本次会调用模型并可能产生费用。</NCheckbox
|
||||
>
|
||||
<div class="dialog-footer">
|
||||
</AppForm>
|
||||
<template #footer>
|
||||
<NButton @click="open = false">取消</NButton
|
||||
><NButton :disabled="disabled || !valid || !acknowledged" type="primary" attr-type="submit">
|
||||
><NButton :disabled="disabled || !valid || !acknowledged" type="primary" @click="formRef?.validate(submit)">
|
||||
确认生成身份图
|
||||
</NButton>
|
||||
</div>
|
||||
</AppForm>
|
||||
</template>
|
||||
</AppDialog>
|
||||
</template>
|
||||
Reference in new issue
Block a user