0.0.5 • Published 5 years ago

ac-pap-input-locale v0.0.5

Weekly downloads
7
License
MIT
Repository
github
Last release
5 years ago

ac-pap-input-locale

多语言 Input 组件 进入示例

$ ynpm install ac-pap-input-locale --save-dev

引入

import AcInputLocale from 'ac-pap-input-locale';

样式引入

import 'ac-pap-input-locale/dist/index.css';

##效果 进入示例

API

参数说明类型返回值是否必填
className容器样式string---
onOk点击确定的钩子函数funobject
onCancel点击取消的钩子函数funObject
locale当前语种string--否 当前语种为空时,默认显示系统语种,若系统语种也为空时,显示zh_CN
sysLocale系统语种string--
localeList语言列表object--
onChange输入框的change的钩子函数funobject
isTextarea是否textarea,默认falsebool--
modalLocale模态框中title、按钮的文字语态object--
inputIdinput的唯一值string--和 form相关联
formthis.props.formobject--和 inputId 相关联

设置form,启动表单校验。

开发调试

$ cd ac-pap-input-locale

$ ynpm install

$ npm run dev