Declare custom components in [component].json. If the custom component also depends on other components, you also need to declare them.
{
"component": true, // Mandatory. The value of the custom component must be true
"usingComponents": {
"other":"../other/index" // Components that the custom component depends on
}
}Parameter details
Field | Type | Mandatory | Description |
component | Boolean | Yes | Declares that the component is a custom component. |
usingComponents | Object | No | Declares the path of the components that the custom component depends on. An absolute path starts with |
该文章对您有帮助吗?