多语输入 InputLocale

何时使用

多语输入组件

如何使用

$ 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 相关联
showIcon 是否显示图标,默认true。注意"此属性为专属属性,不建议使用" bool --

注意事项

设置form,启动表单校验。

更新日志

暂无