<commit_before># 不可用

- order: 0

点击按钮切换可用状态。

---

````jsx
var InputNumber = antd.InputNumber;

var Test = React.createClass({
  getInitialState() {
    return {
      disabled: false
    };
  },
  toggle() {
    this.setState({
      disabled: !this.state.disabled
    });
  },
  render() {
    return <div>
      <InputNumber min={1} max={10} disabled={this.state.disabled} defaultValue={3} />
      <div style={{marginTop: 20}}><commit_msg>modify input number default disable in demo<commit_after># 不可用

- order: 0

点击按钮切换可用状态。

---

````jsx
var InputNumber = antd.InputNumber;

var Test = React.createClass({
  getInitialState() {
    return {
      disabled: true
    };
  },
  toggle() {
    this.setState({
      disabled: !this.state.disabled
    });
  },
  render() {
    return <div>
      <InputNumber min={1} max={10} disabled={this.state.disabled} defaultValue={3} />
      <div style={{marginTop: 20}}>
{'fraction_non_alphanumeric': 0.16357688113413305, 'fraction_numerical': 0.015267175572519083, 'mean_word_length': 2.9063829787234043, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5887054', 'n_tokens_mistral': 337, 'n_tokens_neox': 344, 'n_words': 67}