Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NestedSelect 级联选择器子节点懒加载功能 #11744

Open
ok958726 opened this issue Mar 12, 2025 · 0 comments
Open

NestedSelect 级联选择器子节点懒加载功能 #11744

ok958726 opened this issue Mar 12, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@ok958726
Copy link

ok958726 commented Mar 12, 2025

是否关联于某个问题吗:

级联选择器可以设置动态数据,但是好像只能一次性获取完所有选项数据,没办法在选择父节点后再动态加载子节点。
当选项数据较大(例如多级别行政区数据),使用起来就不方便了。

预期的解决方案:

希望可以增加defer和deferApi设置,可以在选择父节点后,通过接口获取孩子节点选项。

其他可接受方案:

或者在链式下拉中增加多选

任何附加信息:

参考的json配置如下:

{
  "type": "page",
  "body": {
    "type": "page",
    "body": {
      "type": "form",
      "debug": true,
      "api": "/amis/api/mock2/form/saveForm",
      "body": [
        {
          "type": "nested-select",
          "name": "nestedSelect",
          "label": "级联选择器",
          "source": "/amis/api/mock2/form/getTreeOptions"
        }
      ]
    }
  }
}
@ok958726 ok958726 added the enhancement New feature or request label Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant