I am controlling a Tabview with a boolean variable isTabsEnabled
to toggle displaying of tabs. This prop is passed as child to the screens using it, this is the parent file,
export{
props:{
isTabsEnabled: true
}
}
ESLint throws the error vue/require-prop-type-constructor
, I tried using propsData
, this removes the warning message, but the functionality breaks.
Any suggestion on how can I avoid this warning?
You need to specify the prop type:
props: {
isTabsEnabled: {
type: Boolean,
default: true
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With