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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e967ad-15d9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e967ad-15d9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?