baidu / amis

前端低代码框架,通过 JSON 配置就能生成各种页面。
https://baidu.github.io/amis/
Apache License 2.0
17.11k stars 2.48k forks source link

selectMode=“table”的select配合searchApi使用时,选完后select里有时显示value有时显示label #4030

Open Sybiil opened 2 years ago

Sybiil commented 2 years ago

描述问题:

{ "type": "select", "name": "poetry_id", "searchable": true, "selectMode": "table", "clearable": true, "label": "关联诗词", "required": true, "columns": [ { "name": "label", "label": "诗词" } ], "searchApi": "", "source": "" }

这样一个select,接口按照规范返回了options,里面每个对象包含label和value两个字段。但是我发现搜索然后点击一个选项后,有的时候select里显示的是label字段的内容,有的时候又显示的value字段的内容。已经F12确认过每次接口都有返回value和label。

如何复现(请务必完整填写下面内容):

  1. 你是如何使用 amis 的? 如上

  2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在 1.8.0

  3. 粘贴有问题的完整 amis schema 代码:

    如上
  4. 操作步骤 如上

z1106935565 commented 1 week ago

我的遇到这个BUG了,你找到解决方法了吗?