mand-mobile/components/button
xuxiaoyan 9b365ddb74 site&example:add default title to examples & update docs 2018-06-21 11:34:49 +08:00
..
demo site&example:add default title to examples & update docs 2018-06-21 11:34:49 +08:00
test test: Improve unit test cases 2018-04-23 17:33:32 +08:00
README.en-US.md correct button 2018-05-28 19:54:35 +08:00
README.md feat(button): remove `.native` modifier on click event 2018-04-24 22:47:39 +08:00
index.vue style:update theme related stylus variables 2018-06-08 13:40:47 +08:00

README.en-US.md

title preview
Button https://didi.github.io/mand-mobile/examples/#/button

Button components for configuring different button styles

Import

import { Button } from 'mand-mobile'

Vue.component(Button.name, Button)

Code Examples

API

Button Props

Props Description Type Default Note
type button type String primary primary, ghost, ghost-primary, link
size button size String large large, small(only works if type is ghost/ghost-primary)
icon button icon String - refer to Icon for optional values
disabled disabled or not Boolean false -

Button Events

@click(event)

Button click event