Skip to content

[components] 记录详情页头只允许一个主按钮(INLINE_MAX=1),无法并排多主按钮 #2361

Description

@baozhoutao

概述

记录详情页头只渲染一个主按钮。同一对象注册多个 locations:['record_header'] 的 Action 时,只有「注册顺序里第一个 visible 的」占主按钮槽位,其余全部折叠进 ⋯「更多操作」溢出菜单。多操作型对象(如线索:转商机/分配/退回…)无法把常用操作都做成一眼可见的按钮。

定位

  • packages/components/src/renderers/layout/containers.tsx:859-862 —— 硬编码 INLINE_MAX=1(≥3 折叠进 ⋯;实测 2 个仍并排,原 issue 需此边界修正)。

期望

  • 记录详情页头支持渲染多个主按钮(并排);
  • 最好可控:哪些 Action 直接露出、哪些进 ⋯ 菜单,按 metadata 声明(如显式优先级 / variant)。

附带约束

visible CEL 不能引用 hidden:true 字段(payload 剥离致 fail-closed),进一步限制了用可见性规则「变相摆多个按钮」的绕法。见 #26


来源(项目 dogfood):steedos-labs/os-tianshun-mtc#40 · 相关 #26

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions