Bottom sidebar with a number of texts or action buttons that can be used to present form information and submit buttons
Import
import { ActionBar } from 'mand-mobile'
Vue.component(ActionBar.name, ActionBar)
Instruction
ActionBar is fixed at the bottom of the page by position: fixed. In order to avoid the page content being occluded, you need to reserve a blank of not less than 100px at the bottom (the iPhone also needs to add constant(safe-area-inset-bottom)).
Code Examples
API
ActionBar Props
| Props |
Description |
Type |
Default |
Note |
| actions |
button group |
Array<ActionOptions> |
- |
- |
ActionOptions Props
| 属性 |
说明 |
类型 |
默认值 |
| text |
- |
String |
- |
| disabled |
- |
Boolean |
false |
| onClick |
click handler |
Function(action: ActionOptions) |
- |
| type 2.5.0+ |
- |
String |
disabled when the prop disabled is true, otherwise is primary |
| plain 2.5.0+ |
- |
Boolean |
false for the last one and true for the others |
| round 2.5.0+ |
- |
Boolean |
false |
| icon 2.5.0+ |
icon name |
String |
- |
| iconSvg 2.5.0+ |
use svg icon |
Boolean |
false |
| inactive 2.5.0+ |
- |
Boolean |
false |
| loading 2.5.0+ |
- |
Boolean |
false |
ActionBar Slots
default
left content
ActionBar Events
@click(event, action)
Button click event
| Props |
Description |
Type |
| action |
object corresponding to the clicked button in the actions list |
Object: ActionOptions |