Multi-view container
Introduction
The multi-view container component displays different content within a block based on data. You can use this component in a grid layout.

Configuration items
Category |
Configuration |
Example |
Description |
Content |
View configuration |
Add multiple views as needed. Each view includes configuration information such as a key, title, description, and a disabled setting. |
|
Interaction |
Hide |
Hides the component. For more information, see Common properties. |
|
Load |
Displays a loading animation. |
||
Style |
Height |
Component height. For more information, see Common properties. |
|
Padding |
Component padding. For more information, see Common properties. |
||
Margin |
Component margin. For more information, see Common properties. |
||
CSS style |
Overflow |
Sets the overflow effect (overflow). Options include `auto` (scroll), `hidden`, and `visible`. |
|
Background |
|
Background |
|
Background image |
|
Background image |
|
Background color |
Background color (background-color) |
||
Shadow |
|
Shadow (box-shadow) |
|
Border radius |
Sets the border radius (border-radius). |
||
Border |
Border |
||
Top border |
Top border (border-top) |
||
Bottom border |
Bottom border (border-bottom) |
||
Left border |
Left border (border-left) |
||
Right border |
Sets the right border (border-right). |
Properties and methods
Name |
Type |
Example |
Description |
isHover |
boolean |
|
Indicates whether the mouse pointer is inside the component. |
loading |
boolean |
|
Indicates whether the component is loading. A loading animation is displayed. |
mobiViews |
array |
|
The view configuration data for the component. |
mobiCurrentView |
string |
|
The data for the current view of the component. |
getMultipleViews |
func |
|
Gets the view data for the component. |
changeCurrentView |
func |
|
Changes the current view of the component. |
setLoading |
func |
|
Sets the loading state of the component. |
setMobiCurrentView |
func |
|
Sets the current view. |
clearLoading |
func |
|
Clears the component's loading data. |
clearMobiCurrentView |
func |
|
Clears the component's current view data. |
Event callbacks
Configuration |
Description |
Triggered when the component is clicked. |
|
Triggered when the mouse pointer moves over the component. |
|
Triggered when the mouse pointer moves out of the component. |


