Edit a component package

更新时间:
复制 MD 格式

This topic describes how to add published custom components to a component package.

Prerequisites

You have created a component package. For more information, see Create a component package.

Add custom components

  1. On the App Development page, in the Development Tools section, click Component Development.

  2. On the Component Development > Public Component Packages page, find the component package that you want to edit and click Edit in the actions column.
    The page lists all component packages with columns for their cover, name, review status, last updated time, description, and actions. The actions column contains Edit, Publish, and Delete buttons.
  3. On the Edit Component Package page, click Add Component in the upper-right corner.
    The Edit Component Package page opens. The left pane displays component package information, including its cover, name, English name, version, and description. The right pane contains the component list. In the upper-right corner, the Edit Information, Add Component, and Publish buttons are displayed in order.
  4. In the Add Component dialog box, select the custom components to add, and then click Add.
    Note
    • You can only add published custom components.
    • You can only add the latest version of a custom component. Historical versions are not supported.
    After you add the custom components, you are returned to the Edit Component Package page. You can find the added custom components in the component list.

    You can preview a custom component, view its documentation, or remove it from the component package.

    Note After you make any changes to a component package, such as changing the cover image, adding a component, or removing a component, you must publish the component package. The changes take effect only after the new version is published and approved.
    The component list displays the name, version, and description of each component in a table.

Edit component package information

  1. On the Edit Component Package page, click Edit Information in the upper-right corner.
    The upper-right corner contains the Edit Information, Add Component, and Publish buttons.
  2. In the Edit Basic Information dialog box, modify the settings, and then click OK.
    Note If a component package has been published, you cannot modify its Chinese or English name.
    The dialog box contains the following fields: Chinese name, English name, Component package cover (supports JPG, JPEG, and PNG formats; file size up to 1 MB; recommended dimensions 1160×720), and Description (up to 100 characters).
  3. Optional: If the component package contains custom components, you can remove them.
    In the component list, find the component that you want to remove, click Remove in its actions column, and then click OK.

View historical versions

You can view the details of previously published versions of a component package.

  1. On the Component Development > Public Component Packages page, find the desired component package and click Historical Versions in the actions column.
    You can view the historical versions of the component package. The page lists these versions in a table with columns for Version, Publishing time, and Version update description. The actions column contains a View button.
  2. Find the desired version and click View in its actions column.
  3. The View Component Package page displays the contents of the selected version.
    The left pane displays the component package information, including its cover, name, English name, version, and description. The right pane lists the components in this version. The actions column for each component contains Preview and Documentation buttons.

Next steps

Publish and use a component package