alibaba / alibaba/x-render

升级到antd6后, 点击重复数据删除,确定框会偏移到别的位置

Open
#1,726 0 comments 0 reactions 1 assignee Claimed by @lhbxs View on GitHub
Dominant language
TypeScript
Stars
7.9k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

**1.依赖仓库的版本(Dependencies versions)**:

- react:"^18.3.1",
- form-render: "^2.5.2",
- table-render:-
- antd:"^6.2.2",

**2.问题描述(Bug description)**:
当我升级后点击重复添加的删除按钮, 这个弹出框会偏移到别的位置并且会闪烁一下又隐藏。
如下图

Image

**3.出现问题的 schema demo(Reproduction schema demo)**:
```js
参考官网这个
const schema ={
"type": "object",
"properties": {
"switch1": {
"title": "禁用输入框",
"type": "boolean",
"widget": "switch"
},
"input1": {
"title": "输入框",
"type": "string",
"disabled": "{{ formData.switch1 === true }}"
},
"list": {
"title": "List 场景",
"type": "array",
"widget": "CardList",
"defaultValue": [
{}
],
"items": {
"type": "object",
"widget": "card",
"title": "List.Item",
"properties": {
"switch1": {
"title": "隐藏输入框 2 ",
"type": "boolean",
"widget": "switch"
},
"input1": {
"title": "输入框 1",
"type": "string",
"description": "给输入框 赋值"
},
"input2": {
"title": "输入框 2",
"type": "string",
"defaultValue": "{{ rootValue.input1 }}",
"hidden": "{{ rootValue.switch1 }}"
}
}
}
}
}
}
```

**4.最小复现 demo(Reproduction demo)**:

form-render demo https://codesandbox.io/s/unruffled-flower-jl78h
table-render demo https://codesandbox.io/s/sweet-euler-bdoty
fr-generator demo https://codesandbox.io/s/s13sh

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.