amis
amis copied to clipboard
CRUD查询条件中不能使用button-group
描述问题:
在CRUD的filter中不能使用button-group,使用button-group之后,会导致【搜索】按钮无法显示,从而无法进行搜索。
"filter": {
"title": "过滤条件",
"controls": [
{
"type": "select",
"label": "状态",
"name": "status",
"value": "",
"options": [
{
"label": "全部",
"value": ""
},
{
"label": "Option B",
"value": "b"
}
]
},
{
"type": "button-group",
"label": "状态",
"name": "status",
"value": "",
"options": [
{
"label": "全部",
"value": ""
},
{
"label": "Option B",
"value": "b"
}
]
}
]
}
截图或视频:


看起来是有这个问题,你先手动配置一下吧:
actions:[
{
type: "submit",
label: "提交",
primary: true
}
]
下个版本修复