Manage components

Updated at:

You can manage custom components. This includes editing components, switching component versions, adding new component versions, and unpublishing components.

Note

If a component is offline, you cannot edit it, add a new version, or switch its version. You must publish the component first.

Edit a component

To modify component information, follow these steps:

  1. Log on to the mPaaS console. In the navigation pane on the left, choose Smart Build > Component Management.

  2. In the component list, select the target component. To find the component, enter its name in the search box in the upper-right corner of the list.

  3. In the Operation column, click Edit. In the edit panel, modify the component information. You can only modify the component name, owner, and type.

  4. When you finish editing, click Confirm to save the changes.

Add a new component version

You can add a new component version to modify its resource file without affecting pages that use the current version.

Follow these steps:

  1. In the component list, select the target component. In the Operation column, click Add Version.

  2. In the Add Version panel, set the new version number and the component storage address. Then, click Confirm to save the version information.

Switch a component version

To switch a component to a different version, follow these steps:

  1. In the component list, select the target component. In the Operation column, click Switch Version.

  2. In the Switch Version panel, select the target version, and then click Confirm.

    Important

    After you switch the version, the component is not immediately updated on the page. The component is updated to the selected version only after you republish the page.

Unpublish or publish a component

By default, custom components are published after they are created. If you no longer need a custom component, you can unpublish it. Unpublished components do not appear in the component library of the page editor. To use an unpublished component again, you can publish it.

  • Unpublish: In the component list, select the target component. In the Operation column, click Unpublish, and then confirm the action.

  • Publish: In the component list, select an unpublished component. In the Operation column, click Publish.

View schema

In the component list, click View schema to view the JSON-formatted data that defines the component's elements.