ant-design/components/button/demo/disabled.md

19 lines
314 B
Markdown
Raw Normal View History

2015-05-16 17:12:22 +08:00
# 失效
- description: 灰色的
---
2015-05-18 17:33:42 +08:00
````js
/** @jsx React.DOM */
var Button = React.createClass({
render: function() {
return <button disabled>{this.props.children}</button>;
}
});
2015-05-18 17:45:08 +08:00
React.render(
<Button>失效的按钮</Button>
, document.getElementById('components-button-demo-disabled'));
2015-05-16 17:12:22 +08:00
````