mand-mobile/components/action-bar
hangzou 7c3d50216a
feat(chore): ui,color upgrade (#755)
* feat: update ui

* fix(icon): fix refresh icon
2021-08-06 14:34:26 +08:00
..
demo feat(action-bar & result-page): add props for buttons configration (#550) 2019-09-04 15:08:47 +08:00
test fix(button): change default slot wrapper from p to div (#542) 2019-09-04 15:08:08 +08:00
README.en-US.md doc: supplement version information of some docs 2019-09-04 18:24:25 +08:00
README.md doc: supplement version information of some docs 2019-09-04 18:24:25 +08:00
component.js Initial commit 2018-03-26 16:04:04 +08:00
index.vue feat(chore): ui,color upgrade (#755) 2021-08-06 14:34:26 +08:00

README.en-US.md

title preview
ActionBar https://didi.github.io/mand-mobile/examples/#/action-bar

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