How to detect which component where the current element comes from?

wanna find current element belong which component when I click some element

Use the click’s event to access the clicked element.

Beyond that,

Please provide code related to your issue. Without it, it’s hard for us to help. You can refer to our guide on asking for help for more information. Thanks!