amis icon indicating copy to clipboard operation
amis copied to clipboard

希望Options 的Item项能自定义

Open zimo888 opened this issue 6 years ago • 2 comments

是否关联于某个问题吗:

Select的Option 现在是普通的文本,希望能够自定义Item,可以Render Amis Json.

预期的解决方案:

比如可以Label 渲染json,且能高亮搜索, 点击 + 按钮,能够同时使用Amis的 ”多功能选择器“,弹出列表进行选择。

{
   "type":"select",
    "options":[
       {
         "label":{
              "type":"组件名称"  
           },
         "value":"0"    
       }
     ]
}

其他可接受方案:

请简单描述其他你可以接受的效果...

任何附加信息:

image

zimo888 avatar Nov 19 '20 15:11 zimo888

Duplicate of #1019

RickCole21 avatar Jan 29 '21 10:01 RickCole21

相关 pr https://github.com/baidu/amis/pull/1545 通过 menuTpl 支持 schema 或者直接就是 tpl 字符串。

2betop avatar Feb 04 '21 15:02 2betop