mand-mobile/components/button/README.en-US.md

34 lines
883 B
Markdown
Raw Normal View History

2018-05-16 20:57:22 +08:00
---
title: Button
preview: https://didi.github.io/mand-mobile/examples/#/button
---
2018-05-28 19:54:35 +08:00
Button components for configuring different button styles
2018-05-16 20:57:22 +08:00
### Import
```javascript
import { Button } from 'mand-mobile'
Vue.component(Button.name, Button)
```
### Code Examples
<!-- DEMO -->
### API
#### Button Props
|Props | Description | Type | Default | Note |
|----|-----|------|------ |------|
|type|-|String|`default`|`default/primary/warning/disabled/link`|
|plain|-|Boolean|`false`|-|
|round|-|Boolean|`false`|-|
|icon|-|String|-|refer to `Icon` for optional values|
|inactive|-|Boolean|`false`|The button is not clickable which is inactive or disabled. The former is generally used for subjective factors such as invalid form validation, and the latter is used for objective factors such as no permission or no inventory.|
2018-05-16 20:57:22 +08:00
#### Button Events
##### @click(event)
Button click event