Component configuration

更新时间:
复制 MD 格式

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 /, and a relative path starts with . / or .. /.