Answer the question
In order to leave comments, you need to log in
How to correctly set the type and default value in functional components?
I want to set the default type and value in functional components ?
My attempt but doesn't seem to work:
export default {
functional: true,
name: "TariffItem",
props: [{
title: {
type: String,
default: ''
}
}],
}
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