import React, { Component } from 'react'; import { IProps } from './interface'; import './style.less'; /** * value的数据格式 * { * value: "你好", * i18n: [{ * language: "zh_cn", * value: "你好", * }, { * language: "en_us", * value: "hello", * }], * } */ /** * 用法和普通输入框一样 ^_^ */ /** * ex: * {getFieldDecorator('parameterName', { rules: [], initialValue: parameterName, })( )} * */ declare class InputLanguage extends Component { lock: boolean | undefined; input: any; state: { visible: boolean; value: string; i18n: any[]; }; static contextType: React.Context; componentDidMount(): void; componentWillReceiveProps(nextProps: any): void; /** * 优先从redux中取数据,如果没有则判断外界是否传入,使用外界的,否则则使用默认的 * @returns */ getLanguageInfo: () => any; cancel: () => void; ok: (values: any) => void; change: (e: any) => void; open: () => void; focus: () => void; suffixIconClick: () => void; render(): JSX.Element; } export default InputLanguage;