Set to disable disabled when vue element-ui tree node is selected

element tree monitors the value of the current node through the check-change method, whether it is selected, whether the child element is selected,
requirement: turn the current node into a disabled state [disabled]

when the current node is selected

clipboard.png

clipboard.png


problem solved, thank you for providing ideas
for a while, but did not respond. Hehe
1, add a value disabled:false
2 in the initialization data traversal, and modify the disabled of the current node to true

when the current node is selected.

clipboard.png

clipboard.png

clipboard.png

Menu