UNPKG

cjd-parkball

Version:

> 中后台业务组件库,中后台就像公园,进入需要买门票(登录),所以以 Parkball(公园球) 命名,公园内必定捕获!作为一个组件库,提供使用方法文档,方便开发者的调用

36 lines (29 loc) 842 B
--- category: 2 title: 不可用状态 title_en: Disabled --- zh-CN 添加 `disabled` 属性即可让按钮处于不可用状态,同时按钮样式也会改变。 en-US To mark a button as disabled, add the `disabled` property to the `Button`. ````jsx import { Button } from 'parkball'; ReactDOM.render( <div> <Button type="primary">Primary</Button> <Button type="primary" disabled>Primary(disabled)</Button> <br /> <Button>Default</Button> <Button disabled>Default(disabled)</Button> <br /> <Button type="dashed">Dashed</Button> <Button type="dashed" disabled>Dashed(disabled)</Button> <div style={{ padding: '8px 8px 0 8px', background: 'rgb(190, 200, 200)' }}> <Button ghost>Ghost</Button> <Button ghost disabled>Ghost(disabled)</Button> </div> </div>, mountNode ); ````