amis icon indicating copy to clipboard operation
amis copied to clipboard

Matrix 矩阵表单项 disabled disableOn 均无法生效

Open KodyFeng opened this issue 5 years ago • 0 comments

描述问题:

Matrix 矩阵 无法禁用

截图或视频:

无

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

  1. 你是如何使用 amis 的? sdk、npm 或其他...

sdk1.1.6

  1. 粘贴有问题的完整 amis schema 代码:
 {
                "type": "page",
                "title": "decimal-test",
                "body": [
                    {
                        "type": "form",
                        "title": "表单",
                        "controls": [
                            {
                                "type": "text",
                                "label": "文本",
                                "name": "flag",
                                "mode": "horizontal",
                                "value:": 1
                            },
                            {
                                "type": "button",
                                "label": "Switch"
                            },
                            {
                                "type": "button",
                                "label": "Add"
                            },
                            {
                                "type": "button",
                                "label": "Delete"
                            },
                            {
                                "type": "matrix",
                                "name": "matrix",
                                "label": "矩阵开关",
                                "rowLabel": "行标题说明",
                                "columns": [
                                    {
                                        "label": "列1"
                                    },
                                    {
                                        "label": "列2"
                                    }
                                ],
                                "rows": [
                                    {
                                        "label": "行1"
                                    },
                                    {
                                        "label": "行2"
                                    }
                                ],
                                "disabled": true
                            }
                        ],
                        "api": {
                            "method": "post",
                            "url": "/test"
                        },
                        "disabled": true
                    }
                ]
            }
  1. 操作步骤 请简单描述一下复现的操作步骤...

KodyFeng avatar May 18 '21 06:05 KodyFeng