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

18 lines
293 B
Markdown
Raw Normal View History

2015-05-16 17:12:22 +08:00
# 失效
- description: 灰色的
---
2015-05-18 18:13:16 +08:00
````jsx
2015-05-18 17:33:42 +08:00
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
````