mand-mobile/components/button
moyuboy ae1e1c277b feat(button): remove `.native` modifier on click event 2018-04-24 22:47:39 +08:00
..
demo Initial commit 2018-03-26 16:04:04 +08:00
test test: Improve unit test cases 2018-04-23 17:33:32 +08:00
README.md feat(button): remove `.native` modifier on click event 2018-04-24 22:47:39 +08:00
index.vue feat(button): remove `.native` modifier on click event 2018-04-24 22:47:39 +08:00

README.md

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

按钮组件,可配置多种不同的按钮样式

引入

import { Button } from 'mand-mobile'

Vue.component(Button.name, Button)

代码演示

API

Button Props

属性 说明 类型 默认值 备注
type 按钮类型 String primary primary, ghost, ghost-primary, link
size 按钮大小 String large large, small。仅在typeghost/ghost-primary时生效
icon 按钮图标 String - 可选值请参考组件Icon
disabled 是否禁用 Boolean false -

Button Events

@click(event)

按钮点击事件