alibaba / x-render

🚴‍♀️ 阿里 - 很易用的中后台「表单 / 表格 / 图表」解决方案
https://xrender.fun
7.06k stars 1k forks source link

Error: Minified React error #185 #800

Closed zzhzero closed 2 years ago

zzhzero commented 2 years ago

5月25日之前构建的版本正常 5月25日之后构建的版本点击渲染好的表单会报185并且页面崩溃 目前只能在package.json中将form-render版本固定在1.10.0以下 渲染的json如下:

{
    "type": "object",
    "order": [
        "XxxxName",
        "XxxxVersion",
        "XxxxAaaaGroup",
        "XxxxInfo"
    ],
    "properties": {
        "XxxxInfo": {
            "url": "/xxx/aaaa/${1}/${2}/${3}",
            "type": "array",
            "title": "xxxx",
            "hidden": "{{!formData.XxxxName||!formData.XxxxVersion||!formData.XxxxAaaaGroup}}",
            "widget": "listAsyncInput",
            "required": true,
            "customItems": {
                "type": "object",
                "properties": {
                    "key": {
                        "type": "string",
                        "title": "键",
                        "required": true
                    },
                    "value": {
                        "type": "string",
                        "title": "值",
                        "widget": "inputVariableComplete",
                        "required": true
                    }
                }
            },
            "dependencies": [
                "XxxxName",
                "XxxxVersion",
                "XxxxAaaaGroup"
            ]
        },
        "XxxxName": {
            "url": "/xxx/Xxxx",
            "type": "string",
            "title": "Xxxx名称",
            "widget": "selectAsync",
            "required": true
        },
        "XxxxVersion": {
            "url": "/xxx/Xxxx/${1}/versions",
            "type": "string",
            "title": "Xxxx版本",
            "hidden": "{{!formData.XxxxName}}",
            "widget": "selectAsync",
            "required": true,
            "dependencies": [
                "XxxxName"
            ]
        },
        "XxxxAaaaGroup": {
            "url": "/xxx/aaaa/${1}/${2}/",
            "type": "string",
            "title": "Aaaa组名",
            "hidden": "{{!formData.XxxxName||!formData.XxxxVersion}}",
            "widget": "selectAsync",
            "required": true,
            "dependencies": [
                "XxxxName",
                "XxxxVersion"
            ]
        }
    }
}

image

siyi98 commented 2 years ago

能给个demo仓库吗,还是第一次遇见这样的问题

siyi98 commented 2 years ago

form-render@1.11.3 已修复