- 删除 params/ 动态控件,恢复 paintingProportion/Quantity 独立组件 - 模型参数 UI 双向绑定:proportion/resolution/quantity/customSize 同步到 paramValues - 模型选择器适配 API tags 数组和 display_name,新增 displayNameMap 映射 - 模型配置对齐 RunningHub 文档,精简即梦/通义万相多余参数 - 模型列表缓存改为 30s TTL + pendingRequests 并发去重 - sessionId 改为从登录态获取,禁止随机生成 - Select 下拉菜单增加 max-height 防止溢出 - 更新 CLAUDE.md 架构文档
52 lines
1.0 KiB
JavaScript
52 lines
1.0 KiB
JavaScript
// Flux 2 Dev — 文生图
|
|
export default {
|
|
name: 'Flux 2',
|
|
tag: '文生图',
|
|
inputType: 'text',
|
|
params: [
|
|
{
|
|
name: 'prompt',
|
|
label: '提示词',
|
|
type: 'string',
|
|
required: true,
|
|
ui: 'textarea',
|
|
},
|
|
{
|
|
name: 'aspectRatio',
|
|
label: '比例',
|
|
type: 'select',
|
|
default: '1:1',
|
|
options: ['1:1', '3:4', '4:3', '9:16', '16:9', '2:3', '3:2', 'custom'],
|
|
ui: 'proportion',
|
|
},
|
|
{
|
|
name: 'customWidth',
|
|
label: '宽度',
|
|
type: 'number',
|
|
default: 1024,
|
|
min: 256,
|
|
max: 1536,
|
|
ui: 'number',
|
|
showWhen: { aspectRatio: 'custom' },
|
|
},
|
|
{
|
|
name: 'customHight',
|
|
label: '高度',
|
|
type: 'number',
|
|
default: 1024,
|
|
min: 256,
|
|
max: 1536,
|
|
ui: 'number',
|
|
showWhen: { aspectRatio: 'custom' },
|
|
},
|
|
{
|
|
name: 'outputFormat',
|
|
label: '输出格式',
|
|
type: 'string',
|
|
default: 'png',
|
|
options: ['png', 'jpeg', 'webp(lossless)', 'webp(lossy)'],
|
|
ui: 'hidden',
|
|
},
|
|
],
|
|
}
|