level: level
sort: current level location
excuse me: add a parent node according to the currently selected node, become the added parent node at the current node location, and the current node becomes the child of the parent node?
level: level
sort: current level location
excuse me: add a parent node according to the currently selected node, become the added parent node at the current node location, and the current node becomes the child of the parent node?
just manipulate the data, and the view responds automatically. You use a custom slot to render the node data ( example ), it will pass the parameter node, data; according to the node.parent can get the parent node's node, and get the parent node's data node.parent.data.