amis icon indicating copy to clipboard operation
amis copied to clipboard

CRUD查询条件中不能使用button-group

Open juqkai opened this issue 6 years ago • 1 comments

描述问题:

在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"
                        }
                    ]
                }
            ]
        }

截图或视频:

image

image

juqkai avatar Nov 26 '20 03:11 juqkai

看起来是有这个问题,你先手动配置一下吧:

actions:[
  {
    type: "submit",
    label: "提交",
    primary: true
  }
]

下个版本修复

RickCole21 avatar Nov 27 '20 09:11 RickCole21