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

PropsDescriptionTypeDefaultNote
actionsbutton groupArray<ActionOptions>--

ActionOptions Props

属性说明类型默认值
text-String-
disabled-Booleanfalse
onClickclick handlerFunction(action: ActionOptions)-
type-Stringdisabled when the prop disabled is true, otherwise is primary
plain-Booleanfalse for the last one and true for the others
round-Booleanfalse
iconicon nameString-
iconSvguse svg iconBooleanfalse
inactive-Booleanfalse
loading-Booleanfalse

ActionBar Slots

default

left content

ActionBar Events

@click(event, action, index)

Button click event

PropsDescriptionType
actionobject corresponding to the clicked button in the actions listObject: ActionOptions
indexindex of object corresponding to the clicked button in the actions listNumber