Extend a base component to modify partial template

I need to modify a template from a 3rd party library component (Element UI). Let’s call it component A. I’m thinking about using extends such as
class B extends A {}
and rewrite the template with additional html elements.
However, I also need all the methods, data and props from base component (A) to be ready-to-use in B. How do I go about that?