Skip to content

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

Description

@xyy7260

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)

参考官网这个
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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions