ac-input-locale
v1.11.11
Published
InputLocale ui component for react
Maintainers
Readme
ac-input-locale
react ac-input-locale component for tinper-bee
some description...
依赖
- react >= 15.3.0
- react-dom >= 15.3.0
- prop-types >= 15.6.0
使用方法
$ ynpm install ac-input-locale --save-dev
引入
import AcInputLocale from 'ac-input-locale';
样式引入
import 'ac-input-locale/dist/index.css';
API
|参数|说明|类型|返回值|是否必填| |:--|:---:|:--:|---:|---:| |className|容器样式|string| --- | 否 | |disabled|是否可用|string| --- | 否 | |onOk|点击确定的钩子函数|fun|object | 否 | |onCancel|点击取消的钩子函数|fun|Object | 否 | |locale|当前语种|string | -- | 否 当前语种为空时,默认显示系统语种,若系统语种也为空时,显示zh_CN | |sysLocale|系统语种|string | -- | 否 | |localeList|语言列表|object| -- | 是 | |onChange|输入框的change的钩子函数|fun| object | 否 | |isTextarea|是否textarea,默认false|bool| -- | 否 | |modalLocale|模态框中title、按钮的文字语态|object| -- | 否 | |inputId|input的唯一值|string| -- | 和 form相关联 | |form|this.props.form| object | -- | 和 inputId 相关联 |
开发调试
$ npm install -g bee-tools
$ git clone https://github.com/tinper-bee/ac-input-locale
$ cd ac-input-locale
$ npm install
$ npm run dev