recently looked at how Vue Component implements inheritance. By browsing the official documentation, I see that Vue Component extensions can be implemented using mixins
and extends
.
but there is a problem with both methods, and the lifecycle function of the super component is executed. Examples are as follows:
super component created!
component created!
so how do you do that, when both super component and component have lifecycle, only component"s lifecycle function will execute?