Skip to content

Bug: 示例项目中VbenTree树组件disabled不生效 #6201

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

Open
5 tasks done
yc0123450 opened this issue May 15, 2025 · 1 comment
Open
5 tasks done

Bug: 示例项目中VbenTree树组件disabled不生效 #6201

yc0123450 opened this issue May 15, 2025 · 1 comment

Comments

@yc0123450
Copy link

Version

Vben Admin V5

Describe the bug?

如下图,示例项目中,角色管理新增时,用到VbenTree组件,我现在有个查看需求,想让树组件不能点击选择,配置:disabled="true"无效。
Image

Image

Reproduction

请查看示例项目

System Info

OS: Windows 11 10.0.26100
 CPU: (16) x64 Intel(R) Core(TM) 5 220H
 Memory: 13.58 GB / 31.73 GB

Relevant log output

Validations

@Elm1992
Copy link
Contributor

Elm1992 commented May 16, 2025

把 disabled 写在 v-bind="slotProps" 后面就好了,slotProps 里也有个 disabled,给覆盖了。
Image

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

No branches or pull requests

2 participants