Can I use mixin with an external module in my vuejs project?

130 Views Asked by At

I have used mixin vue within my vue project and it worked pretty well. But, is there a way to use mixin with a external module? I would like to use a sepecfic component that is inside that module in order to reuse its behavirour. The component uses the sfc with and tags. I´m wondering if there is an way to do something like that:

import external_compoment from 'module/ExternalComponent.vue"

Then, I would like to do something like this inside my component:

export default {
  name: 'MyComponent',
  mixin:[external_component],

Is there an way to achieve that?

Thanks,

0

There are 0 best solutions below