mand-mobile/components/action-bar
moyus 5db50ccf89 fix: style refactor 2018-09-14 16:03:24 +08:00
..
demo feat(action-bar): update 2.0 style & props 2018-08-14 11:45:57 +08:00
test test: Improve unit test cases 2018-04-23 17:33:32 +08:00
README.en-US.md correct actionbar 2018-05-28 19:44:33 +08:00
README.md correct actionbar 2018-05-28 19:44:33 +08:00
component.js Initial commit 2018-03-26 16:04:04 +08:00
index.vue fix: style refactor 2018-09-14 16:03:24 +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)

Code Examples

API

ActionBar Props

Props Description Type Default Note
actions button group Array<{text, disabled, onClick}> - text is button text,
disabledis whether to disable the button or not,
onClickis click event callback function with the same parameters as the click event
has-text whether to show text Boolean whether it containss slot text can be passed in slot

ActionBar Events

@click(event, action)

Button click event

Props Description Type
action object corresponding to the clicked button in the actions list Object: {text, disabled, ...}