Answer the question
In order to leave comments, you need to log in
Vue and TypeScript - how to set both default value and type check in @Props?
Type checking in runtime (type = string):
@Prop(String) title!: string
Default
value @Prop({ default: 'fit text-h5' }) title!: string
And how to set the default value at the same time?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question