Popover
When the mouse hovers, focus, or click on a component, a bubble-like card floating layer will pop up. You can manipulate the elements on the card.
Basic usage
Move the mouse in or click to pop up bubbles, which can operate on the elements on the floating layer, and carry complex content and operations.
Trigger
By setting trigger, you can specify different trigger methods.
Popup position
Popover supports 12 different positions. They are: upper left upper upper right lower left down lower right upper left left lower left upper right right lower right.
Sizes
Besides default size, tu-popover component provides three additional sizes for you to choose among different scenarios. Use attribute size to set additional sizes with mini, small, large.
Popover API
Popover Attributes
Name | Description | Type | Default |
---|---|---|---|
popup-visible / v-model | Whether the popover is visible | Boolean | - |
default-popup-visible | Whether the popover is visible by default (uncontrolled mode) | Boolean | false |
title | Title of Popover | String | - |
content | Content of Popover | String | - |
trigger | Trigger method | String | hover |
position | Position of Popover | String | top |
content-class | The class name of the popup content | ClassName | - |
content-style | The style of the popup content | CSSProperties | - |
arrow-class | The class name of the popup arrow | ClassName | - |
arrow-style | The style of the popup arrow | CSSProperties | - |
popup-container | Mount container for pop-up box | String HTMLElement null undefined | - |
Popover Events
Name | Description | Type |
---|---|---|
popup-visible-change | Triggered when the text bubble display status changes | Function |
Popover Slots
Name | Description | Type |
---|---|---|
title | Title | - |
content | Content | - |