Skip to content

默认 UI 行为

当不指定 ui 时,系统采用以下默认值:

Property Type默认 UI Component说明
stringinput单行文本框
number / integernumber-input数字输入框
booleanswitch开关
object(无容器)子字段平铺
arrayarray-section数组面板,自动选择简单/复合模式
credential_idcredential-select凭证选择器
encrypted_stringencrypted-input密码输入框
file_refinput仅支持表达式输入,始终禁用 AI 覆盖能力
discriminated_unionselect (discriminator)选择器 + 变体面板
resource_locator模式选择器 + 输入框list 模式:可搜索下拉框;url/id 模式:文本输入框
resource_mapper手动字段行每个字段对应一个有类型的输入框;自动模式:JSON 编辑器

Array Section 自动模式选择

array 类型不指定 UI 或使用 array-section 时:

  • Simple 模式items 为基础类型(string / number / boolean)

    • 每行一个输入框 + 删除按钮
    • 底部有 "添加" 按钮
  • Compound 模式items 为 object

    • 每项渲染为一个可折叠面板
    • 面板标题显示序号
    • 每项有独立的删除按钮