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

请问树型组件tree可以设置单选吗 #2136

Open
tashuo opened this issue Sep 9, 2024 · 0 comments
Open

请问树型组件tree可以设置单选吗 #2136

tashuo opened this issue Sep 9, 2024 · 0 comments

Comments

@tashuo
Copy link

tashuo commented Sep 9, 2024

  • Laravel Version: 10.4
  • PHP Version: 8.1
  • Dcat Admin Version: 2.2.3

Description:

目前场景是管理一个树型结构的表,树型结构使用了"kalnoy/nestedset",看了dcat的文档,支持单选的select好像不太能满足需求,因为要添加的节点无法确定层级,而tree组件好像是多选的,最终save底层处理时会将parent_id转为数组处理,导致异常,请问这种情况该怎么处理

Steps To Reproduce:

多谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant