Skip to content

[Feature]: steedos-field组件支持在作为lookup字段时配置可搜索项 #495

@yinlianghui

Description

@yinlianghui

Summary 摘要

目前lookup字段可搜索项识别的是元数据中列表视图searchable_fields属性以及字段上的filterable属性,并没有考虑在使用amis画的表单中调用steedos-field配置的lookup字段的情况
需要对steedos-field组件做以下改进:

  • 增加新属性filterable_fields,用于配置此lookup字段弹出列表选择时的搜索项字段清单
  • 如果指定了filterable_fields属性,不识别本地存储中记录的可搜索项,也不把界面上配置的可搜索项保存到本地存储中
  • 如果指定了filterable_fields属性,则直接识别此数组内容作为可搜索项配置,不再识别列表视图searchable_fields属性以及字段上的filterable属性
    image

Why should this be worked on? 此需求的应用场景?

审批王自定义界面上调用steedos-field组件时无法指定可搜索项目

Metadata

Metadata

Assignees

Labels

new featureNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions