Carousel

更新时间:
复制 MD 格式

The carousel component displays images as a slideshow with customizable transition effects. This topic explains how to configure it.

Step 1: Add the component

  1. Create a mobile app. For more information, see Create a mobile app.

  2. In the mobile app editor, click the Component icon 组件 on the far left.

  3. (Optional) Add a column component to create the page layout. For more information, see Horizontal columns and vertical columns.

  4. In the search box above the component list, enter Carousel, find the component, and drag it to the canvas.

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

    After you add the component, a placeholder appears on the canvas with the message: No images configured. Please upload an image. On the right, the properties panel shows the default Carousel Settings: the mode is set to Horizontal Scrolling and the duration is 3000 ms. In the Carousel section below, you can upload images and configure their links.

Step 2: Configure the data source

  1. On the Style tab in the properties panel, click the 加号 icon next to Carousel to add an image. Repeat this step to add multiple images.

    Important

    You can add up to 10 images to the component.

    Each carousel item has two configuration fields: Image (where you can click Upload Image or Reset) and Link.

  2. Click Upload Image to upload a local image or select one from the image library.

  3. Click OK.

Step 3: Configure styles

  1. On the Style tab in the properties panel, configure the carousel mode, duration, and the link for each image.

    Important

    Enter a URL that starts with https:// or http://. Leave it empty if no link is needed.

  2. Adjust the component's width, height, and position on the page. For more information, see General styles.

  3. Preview and debug the component's data and appearance. For more information, see Preview and debug.