amis
amis copied to clipboard
对话框关闭后,页面崩了
描述问题:
对话框关闭后,页面崩了。
截图或视频:

如何复现(请务必完整填写下面内容):
- 你是如何使用 amis 的?
sdk、npm或其他... sdk v1.1.1 - 粘贴有问题的完整
amis schema代码:
{
"type": "page",
"title": "dialog-from-table",
"body": [
{
"type": "crud",
"api": {
"method": "get",
"url": "https://www.fastmock.site/mock/17a94c18d53c6dca044e0d502ec1affb/amis-test/baidu-crud"
},
"columns": [
{
"name": "id",
"label": "ID",
"type": "text"
},
{
"name": "engine",
"label": "渲染引擎",
"type": "text"
},
{
"name": "grade",
"label": "grade",
"type": "text",
"placeholder": "-"
},
{
"name": "status",
"label": "渲染引擎",
"type": "text"
}
],
"messages": {
},
"headerToolbar": [
{
"type": "bulk-actions",
"align": "right"
},
{
"type": "button",
"label": "导入",
"tpl": "内容",
"align": "right",
"actionType": "dialog",
"dialog": {
"type": "dialog",
"title": "弹框标题",
"body": [
{
"type": "form",
"title": "表单",
"controls": [
{
"label": "",
"type": "grid",
"columns": [
{
"controls": [
]
},
{
"controls": [
]
},
{
"controls": [
]
},
{
"controls": [
]
},
{
"controls": [
{
"label": "",
"type": "file",
"name": "fileIds",
"mode": "inline",
"btnLabel": "请选择文件",
"fileField": "file",
"hideUploadButton": false,
"autoFill": {
"fileLength": "${template}",
"fileName": "${fileName}",
"table1": "${dataSegments|first|pick:rowMaps}",
"tableOpen": "1"
},
"reciever": {
"method": "post",
"url": "https://www.fastmock.site/mock/17a94c18d53c6dca044e0d502ec1affb/amis-test/upload-success",
"adaptor": "payload.status = payload.status === 200 ? 0 : payload.status;\r\nconsole.log(payload);\r\nreturn payload;"
},
"multiple": false,
"accept": "",
"autoUpload": true,
"delimiter": ",",
"joinValues": false,
"extractValue": true
}
]
}
]
},
{
"type": "table",
"name": "table1",
"label": "表格表单",
"columns": [
{
"label": "orderNo",
"name": "orderNo",
"quickEdit": {
"mode": "inline"
}
},
{
"label": "orderType",
"name": "orderType",
"quickEdit": {
"mode": "inline"
}
}
],
"visibleOn": "this.tableOpen > 0",
"addable": true,
"removable": true
}
],
"debug": false,
"reload": "",
"target": "",
"api": "get:https://www.fastmock.site/mock/17a94c18d53c6dca044e0d502ec1affb/amis-test/amis-form",
"name": "form2"
}
],
"closeOnEsc": false,
"showCloseButton": true,
"size": "xl"
}
},
{
"type": "pagination",
"align": "right"
}
],
"filter": {
"title": "查询条件",
"controls": [
{
"type": "text",
"name": "ID",
"label": "ID"
},
{
"type": "text",
"name": "engine",
"label": "渲染引擎"
},
{
"type": "text",
"name": "grade",
"label": "grade"
}
],
"mode": "inline"
},
"itemActions": [
],
"defaultParams": {
}
}
]
}
- 操作步骤 点击“导入” 上传文件后点击对话框的确认 即可复现
先试试 1.1.2-beta.2
我也遇到了,想找个qq群反馈都找不到:sdk1.1.1

我也遇到了,想找个qq群反馈都找不到:sdk1.1.1
群的话,issue页不是有吗 qq群651547026
这个问题新版本已经修复了,待 1.1.2