/** * @author linhd * @date 2021/8/30 16:00 * @description 国际化输入框 */ import React, { FunctionComponent, ReactNode } from 'react'; import { HelperTextDetailProps } from '../HelperText'; import { LabelTooltipProps } from '../Label'; import { TooltipProps } from '../Tooltip'; import './index.scss'; interface valueProps { [name: string]: string; } export interface InputLangProps extends HelperTextDetailProps { /** 样式class */ className?: string; /** style */ style?: React.CSSProperties; /** 大小 */ size?: 'small' | 'medium' | 'large'; /** 标题 */ label?: ReactNode; /** 帮组提示信息 */ labelTooltip?: LabelTooltipProps; /** 提示语 */ placeholder?: string; /** 提示语key */ placeholderKey?: string; /** 提示语value */ placeholderValue?: string; /** 是否禁用 */ disabled?: boolean; /** * 禁用提示 */ disabledTooltip?: TooltipProps; /** 是否必填 */ required?: boolean; /** 弹出框样式class */ popoverClassName?: string; /** 默认值 不受控 */ defaultValue?: string | valueProps; /** 值 */ value?: string | valueProps; /** 长度限制 */ limitLength?: number; /** 改变值 */ onChange?: (val: string | valueProps) => void; /** 语言列表 */ langList?: (string | { label: string; value: string; })[]; /** 默认语种 */ defaultLang?: string; /** 禁用增加 */ disabledAdd?: boolean; /** 禁用删除 */ disabledDelete?: boolean; /** 禁用key */ disabledKey?: boolean | string[]; /** 输出类型 */ typeOutput?: 'string' | 'object'; /** i18n标识 */ i18n?: boolean; } export declare const InputLang: FunctionComponent; export default InputLang;