ActionBar
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-next'
Vue.createApp().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 | - | String | disabledwhen the propdisabledis true, otherwise isprimary | 
| plain | - | Boolean | falsefor the last one andtruefor the others | 
| round | - | Boolean | false | 
| icon | icon name | String | - | 
| iconSvg | use svg icon | Boolean | false | 
| inactive | - | Boolean | false | 
| loading | - | Boolean | false | 
ActionBar Slots
default
left content
ActionBar Events
@click(event, action, index)
Button click event
| Props | Description | Type | 
|---|---|---|
| action | object corresponding to the clicked button in the actions list | Object: ActionOptions | 
| index | index of object corresponding to the clicked button in the actions list | Number | 
 Mand Mobile
 Mand Mobile