1.1.2 • Published 7 years ago

m-button v1.1.2

Weekly downloads
4
License
Apache-2.0
Repository
github
Last release
7 years ago

m-button


按钮用于开始一个即时操作。

何时使用

标记了一个(或封装一组)操作命令,响应用户点击行为,触发相应的业务逻辑。

API

  • 通过设置 Button 的属性来产生不同的按钮样式,推荐顺序为:type -> size -> disabled -> block

  • 按钮的属性说明如下:

属性说明类型默认值
type设置按钮类型,可选值为 primary secondary warn 或者不设Enum-
size设置按钮大小,可选值为 small large 或者不设Enum-
href设置按钮的链接,如果设置了该值,则返回一个<a>标签的domstring-
onClickclick 事件的 handlerFunctionfunction() {}
  • <Button>Hello world!</Button> 最终会被渲染为 <button>Hello world!</button>,并且除了上表中的属性,其它属性都会直接传到 <button></button>
1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

8 years ago