Under what circumstances is the default value of default for VUE props used?

if this is the question, please give me an example. no, no, no.


my component provides 30 configurable items prop,. Do these 30 configuration items prop need to be manually set by other developers?
is given the default value, of course.


for example, you write a component. For example, a very simple requirement such as a header component. Should a header have its own color and style? You may have set this component as high as 44px and the color as white when you wrote it. But a good component should have a high degree of configurability and default values, at this time you are bound to expose the color color and high height. At this point, people who use your components can configure them without modifying the source code. So do you need a default color at this time? Otherwise, you have to configure every header you write, isn't that troublesome?

Menu