-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
give the vue dev tool the ablity to select the correspond component w… #469
Conversation
…hen inspect dom elment in the page.
} | ||
}) | ||
//sort ancestor | ||
instanceContainer.sort(function (m, n) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the sort for here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because when find the component containg the dom,there may be many.sort the component,and get the nearest component which is the selected one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Akryum's implement is more elegant .please make it publish fast,which can make many people benefit.
} | ||
}) | ||
//sort ancestor | ||
instanceContainer.sort(function (m, n) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because when find the component containg the dom,there may be many.sort the component,and get the nearest component which is the selected one.
do you mean #479 ? |
yes.we do the same thing.but his code is more elegant.for example the contextMenu,the vue, the exapnd of the selected component |
provide vue dev tool the ablity to select the the correspond component when select a page element by inspector.

when the page has lots of component,this function can let the develop find the correspond compoent more fastly.