Skip to content

【RecordPicker 优先开发合并】高优功能实现:lookup_filters、cell 格式化、FilterUI 集成、ObjectGrid 复用 #1087

@hotlong

Description

@hotlong

为全面完成 Issue #1072『LookupField/Reference 字段下拉弹窗的企业级 Record Picker 方案升级』,需优先合并以下高优功能,提升实际可用性和架构完整度:

1. lookup_filters 实际消费

  • 让 RecordPickerDialog/LookupField 能读取 schema 上配置的 lookup_filters,并动态注入到弹窗查询参数中,实现 UI 与业务筛选协议解耦。
  • 支持组合筛选,兼容 FilterUI。

2. Cell Type Formatter(字段格式化渲染)

  • 在 RecordPickerDialog 内支持 currency/date/select/boolean 字段类型格式化。
  • 按 schema 的 LookupColumnDef.type,调用对应 renderer,包括 badge、���币、枚举等。

3. FilterUI filter bar 集成

  • 弹窗内集成 FilterUI 作为 filter bar,支持多字段组合筛选。
  • filter bar 可根据 lookup_filters 或 objectSchema 智能生成。

4. ObjectGrid 表格能力复用

  • 使 RecordPickerDialog 内嵌 ObjectGrid 实现与主表格一致的列宽调整、排序、分页、空态适配。
  • 避免弹窗自实现表格,提升一致性。

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions