Skip to content

[fields] lookup 记录选择器筛选面板:select 类型筛选项不带 options,下拉为空 #3336

Description

@baozhoutao

症状

lookup「浏览全部记录」记录选择器的筛选面板(Filters)中,由 typed picker columns 派生的 select 类型筛选项没有 options,下拉展开为空,无法筛选。

定位

  • packages/fields/src/widgets/LookupField.tsxfilterColumns useMemo:对 c.type === 'select' 的列 push { field, label, type: 'select' },不带 options;
  • packages/fields/src/widgets/RecordPickerDialog.tsxrenderFilterInput select 分支渲染 col.options?.map(...) —— undefined 时 SelectContent 为空。

期望

派生 select 筛选项时从引用对象 schema 的字段定义取 options(#3333 之后 LookupField 已持有 refObjectSchema,列渲染已走 fieldsMeta 富化,筛选面板可复用同一来源,并过 i18n option 翻译)。

备注

#3333(选择器 select 列不解析 label,已修列渲染)同族但不同面:那是表格单元格,这里是筛选面板输入控件。

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions