# 不可用 - order: 2 点击按钮切换可用状态。 --- ````jsx import { InputNumber, Button } from 'antd'; const Test = React.createClass({ getInitialState() { return { disabled: true }; }, toggle() { this.setState({ disabled: !this.state.disabled }); }, render() { return
; } }); ReactDOM.render(, document.getElementById('components-input-number-demo-disabled')); ````