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