Element-ui tree component, default-checked-keys, will check all the child nodes under the node, how to solve it?

The

cannot use the check-strictly attribute because the linkage still needs to be preserved.

An is the parent node B C D is the child node respectively. When Node B is checked, the data returned by the component is points An and B (associated)

when using this array to set the default selected state of the component"s default-checked-keys, all the B, C, D below An are selected

I would like to ask the big god how to deal with it, select only An and B


just pass key of the B node. Passing A means that it is checked. If A is checked, its child nodes must be all checked.

when you store a value, Filter is dropped if the status of the node is indeterminate , because it belongs to a node whose child elements are not all checked.


https://blog.csdn.net/jiangji.

Menu