1.0.5 • Published 5 years ago
@aligov/mobile-c-button
Install
$ npm install @aligov/mobile-c-button --save
Usage
import Button from '@aligov/mobile-c-button';
API
Props
| name | type | default | describe |
|---|
| type | String | 'secondary' | 可选值:primary,secondary,light,warning |
| size | String | 'medium' | 可选值:large,medium,small |
| text | Bool | false | 是否为文本 |
| disabled | Bool | false | 是否为禁用态 |
| block | Bool | false | 是否独占一行 |
Function
| name | param | return | describe |
|---|
| onClick | Func | () => {} | 点击行为 |
Example
import { createElement, render } from 'rax';
import DriverUniversal from 'driver-universal';
import Button from '@aligov/mobile-c-button';
render(<Button type="primary"><Text>按钮</Text></Button>, document.body, { driver: DriverUniversal });