Steps

Updated at:
Copy as MD

Use the Steps component to create a multi-step navigation bar that guides users through a process. You can assign a different task to each step to suit your use case.

Example

Completing a user registration form in multiple steps.

Step 1: Add the component

  1. Create a web application. For more information, see Create a web application.

  2. In the web application editor, click the component icon 组件 on the far left.

  3. Above the component list to the left of the canvas, enter Steps to find the component, and drag it to the canvas.

    For more information about adding components, see Add a component.

(Optional) Step 2: Configure the data source

If you want the steps to switch automatically based on a data source, follow the instructions in this section.

  1. In the style panel on the right, click data source and then click Configure Data Source.
  2. On the Configure Data Source page, select a data source type and complete the configuration.
    Available data types include API, static data, and application push.
  3. Click OK.

Step 3: Configure the style

  1. In the style panel on the right, configure the component's style options.
    Style Description
    Step Settings Select a step to display its content by default. You can add, edit, and delete steps. Drag the icon 调整 to reorder the steps.

    Select Allow Click to Switch to let users manually switch between steps during preview or at runtime.

    step style Configure the type, orientation, background color, label font size and color, and the styles for normal and selected steps.
  2. Adjust the component's position on the page. For more information about general component style settings, see Configure styles.

Step 4: Configure interactions

  1. Select the component's interaction tab to configure events and actions. For detailed instructions, see Configure interactions.
    This component supports the value change and click events. The component's value is the current step number. For example, the value for Step 2 is 2.
  2. Click Preview in the upper-right corner of the page to view or debug the component's data.

Best practice

Submitting device fault information in steps