Overview of Vue 3 component props initialization
The initialization of component props in Vue 3 occurs in three primary stages:
- Normalization: Standardizing the
propsdeclared within the component and its inherited mixins/extends. - Assignment: Determining which passed attributes are actual
propsand which areattrs, then setting the instance'spropsproperty. - Validation: Verifying the passed props against the declared types (primarily in development mode).