Answer the question
In order to leave comments, you need to log in
How to pass props to mixin?
I'm using webpack and single file components, I want to extend a component from a plugin. I do it like this:
import BImgLaze from 'bootstrap-vue/src/components/image/img-lazy'
export default {
name: "b-img-lazy-ex",
extend: BImgLaze,
}
<b-img-lazy-ex :src="require('./assets/img/' + img.filename)" center fluid blank-color="#000"/>
Answer the question
In order to leave comments, you need to log in
If you need to use a mixin, then try this :
import BImgLaze from 'bootstrap-vue/src/components/image/img-lazy'
export default {
name: "b-img-lazy-ex",
mixins: [BImgLaze],
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question