## OPVolumeInput 组件

·API

| 参数      | 说明          | 类型              | 默认值   |
| --------- | ------------- | ----------------- | -------- |
| value     | 体积值        | valueProps        | -        |
| autoFocus | 自动获取焦点  | boolean           | true     |
| state     | 输入框状态    | 'error','success' | -        |
| unit      | 单位          | string            | cm       |
| current   | 当前输入对象  | currentEnum       | 'length' |
| locale    | 国际化文案    | localeProps       | -        |
| onChange  | onChange 函数 | Function          | ()=>void |
| onEnter   | onEnter 函数  | Function          | ()=>void |

```
interface volumeInputProps {
  value: valueProps;
  autoFocus: boolean;
  state: stateEnum;
  unit: string;
  current: currentEnum;
  locale: localeProps;
  onChange: Fn;
  onEnter: Fn;
}
```

```jsx
import React, { useState } from 'react';
import ReactDOM from 'react-dom';
import { OPVolumeInput } from '../src/view';

ReactDOM.render(
  <div>
    <OPVolumeInput
      onEnter={(value) => {
        console.log(value);
      }}
    />
  </div>,
  mountNode,
);
```
