UNPKG

fastlion-amis

Version:

一种MIS页面生成工具

551 lines 113 kB
/// <reference types="hoist-non-react-statics" /> import React from 'react'; import { FormControlProps, FormBaseControl } from './Item'; import { ThemeProps } from '../../theme'; import { Option } from './Options'; import { LocaleProps } from '../../locale'; /** * City 城市选择框。 * 文档:https://baidu.gitee.io/amis/docs/components/form/city */ export interface InputCityControlSchema extends FormBaseControl { /** * 指定为城市选择框。 */ type: 'input-city'; /** * 开启后只会存城市的 code 信息 */ extractValue?: boolean; /** * 是否将各个信息拼接成字符串。 */ joinValues?: boolean; /** * 拼接的符号是啥? */ delimiter?: string; /** * 允许选择城市? */ allowCity?: boolean; /** * 允许选择地区? */ allowDistrict?: boolean; /** * 允许选择街道? */ allowStreet?: boolean; /** * 是否显示搜索框 */ searchable?: boolean; } export interface CityPickerProps extends Omit<InputCityControlSchema, 'type' | 'className'>, LocaleProps, ThemeProps { value: any; onChange: (value: any) => void; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; useMobileUI?: boolean; } export interface CityPickerState { code: number; province: string; provinceCode: number; city: string; cityCode: number; district: string; districtCode: number; street: string; db?: { province: Array<string>; city: { [propName: number]: Array<number>; }; district: { [propName: number]: { [propName: number]: Array<number>; } | Array<number>; }; [propName: string]: any; }; } export declare class CityPicker extends React.Component<CityPickerProps, CityPickerState> { static defaultProps: { joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }; state: CityPickerState; componentDidMount(): void; componentDidUpdate(prevProps: CityPickerProps): void; loadDb(callback?: () => void): void; handleProvinceChange(option: Option): void; handleCityChange(option: Option): void; handleDistrictChange(option: Option, otherStates?: Partial<CityPickerState>): void; handleStreetChange(e: React.ChangeEvent<HTMLInputElement>): void; handleStreetEnd(): void; syncIn(props?: Readonly<CityPickerProps> & Readonly<{ children?: React.ReactNode; }>): void; syncOut(): void; render(): JSX.Element; } declare const ThemedCity: { new (props: (Omit<Pick<Omit<CityPickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "label" | "desc" | "className" | "theme" | "value" | "hidden" | "description" | "disabled" | "name" | "placeholder" | "onChange" | "mode" | "readOnly" | "required" | "size" | "visible" | "useMobileUI" | "inline" | "horizontal" | "inputClassName" | "$ref" | "disabledOn" | "hiddenOn" | "visibleOn" | "clearValueOnHidden" | "validateApi" | "validateOnChange" | "remark" | "labelClassName" | "labelRemark" | "hint" | "submitOnChange" | "descriptionClassName" | "validationErrors" | "validations" | "searchable"> & Partial<Pick<Omit<CityPickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial<Pick<{ joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../../theme").ThemeOutterProps) | Readonly<Omit<Pick<Omit<CityPickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "label" | "desc" | "className" | "theme" | "value" | "hidden" | "description" | "disabled" | "name" | "placeholder" | "onChange" | "mode" | "readOnly" | "required" | "size" | "visible" | "useMobileUI" | "inline" | "horizontal" | "inputClassName" | "$ref" | "disabledOn" | "hiddenOn" | "visibleOn" | "clearValueOnHidden" | "validateApi" | "validateOnChange" | "remark" | "labelClassName" | "labelRemark" | "hint" | "submitOnChange" | "descriptionClassName" | "validationErrors" | "validations" | "searchable"> & Partial<Pick<Omit<CityPickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial<Pick<{ joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../../theme").ThemeOutterProps>): { render(): JSX.Element; context: any; setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<CityPickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "label" | "desc" | "className" | "theme" | "value" | "hidden" | "description" | "disabled" | "name" | "placeholder" | "onChange" | "mode" | "readOnly" | "required" | "size" | "visible" | "useMobileUI" | "inline" | "horizontal" | "inputClassName" | "$ref" | "disabledOn" | "hiddenOn" | "visibleOn" | "clearValueOnHidden" | "validateApi" | "validateOnChange" | "remark" | "labelClassName" | "labelRemark" | "hint" | "submitOnChange" | "descriptionClassName" | "validationErrors" | "validations" | "searchable"> & Partial<Pick<Omit<CityPickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial<Pick<{ joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../../theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly<Omit<Pick<Omit<CityPickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "label" | "desc" | "className" | "theme" | "value" | "hidden" | "description" | "disabled" | "name" | "placeholder" | "onChange" | "mode" | "readOnly" | "required" | "size" | "visible" | "useMobileUI" | "inline" | "horizontal" | "inputClassName" | "$ref" | "disabledOn" | "hiddenOn" | "visibleOn" | "clearValueOnHidden" | "validateApi" | "validateOnChange" | "remark" | "labelClassName" | "labelRemark" | "hint" | "submitOnChange" | "descriptionClassName" | "validationErrors" | "validations" | "searchable"> & Partial<Pick<Omit<CityPickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial<Pick<{ joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../../theme").ThemeOutterProps> & Readonly<{ children?: React.ReactNode; }>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<CityPickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "label" | "desc" | "className" | "theme" | "value" | "hidden" | "description" | "disabled" | "name" | "placeholder" | "onChange" | "mode" | "readOnly" | "required" | "size" | "visible" | "useMobileUI" | "inline" | "horizontal" | "inputClassName" | "$ref" | "disabledOn" | "hiddenOn" | "visibleOn" | "clearValueOnHidden" | "validateApi" | "validateOnChange" | "remark" | "labelClassName" | "labelRemark" | "hint" | "submitOnChange" | "descriptionClassName" | "validationErrors" | "validations" | "searchable"> & Partial<Pick<Omit<CityPickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial<Pick<{ joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<CityPickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "label" | "desc" | "className" | "theme" | "value" | "hidden" | "description" | "disabled" | "name" | "placeholder" | "onChange" | "mode" | "readOnly" | "required" | "size" | "visible" | "useMobileUI" | "inline" | "horizontal" | "inputClassName" | "$ref" | "disabledOn" | "hiddenOn" | "visibleOn" | "clearValueOnHidden" | "validateApi" | "validateOnChange" | "remark" | "labelClassName" | "labelRemark" | "hint" | "submitOnChange" | "descriptionClassName" | "validationErrors" | "validations" | "searchable"> & Partial<Pick<Omit<CityPickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial<Pick<{ joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../../theme").ThemeOutterProps>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<CityPickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "label" | "desc" | "className" | "theme" | "value" | "hidden" | "description" | "disabled" | "name" | "placeholder" | "onChange" | "mode" | "readOnly" | "required" | "size" | "visible" | "useMobileUI" | "inline" | "horizontal" | "inputClassName" | "$ref" | "disabledOn" | "hiddenOn" | "visibleOn" | "clearValueOnHidden" | "validateApi" | "validateOnChange" | "remark" | "labelClassName" | "labelRemark" | "hint" | "submitOnChange" | "descriptionClassName" | "validationErrors" | "validations" | "searchable"> & Partial<Pick<Omit<CityPickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial<Pick<{ joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../../theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<CityPickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "label" | "desc" | "className" | "theme" | "value" | "hidden" | "description" | "disabled" | "name" | "placeholder" | "onChange" | "mode" | "readOnly" | "required" | "size" | "visible" | "useMobileUI" | "inline" | "horizontal" | "inputClassName" | "$ref" | "disabledOn" | "hiddenOn" | "visibleOn" | "clearValueOnHidden" | "validateApi" | "validateOnChange" | "remark" | "labelClassName" | "labelRemark" | "hint" | "submitOnChange" | "descriptionClassName" | "validationErrors" | "validations" | "searchable"> & Partial<Pick<Omit<CityPickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial<Pick<{ joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../../theme").ThemeOutterProps>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<CityPickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "label" | "desc" | "className" | "theme" | "value" | "hidden" | "description" | "disabled" | "name" | "placeholder" | "onChange" | "mode" | "readOnly" | "required" | "size" | "visible" | "useMobileUI" | "inline" | "horizontal" | "inputClassName" | "$ref" | "disabledOn" | "hiddenOn" | "visibleOn" | "clearValueOnHidden" | "validateApi" | "validateOnChange" | "remark" | "labelClassName" | "labelRemark" | "hint" | "submitOnChange" | "descriptionClassName" | "validationErrors" | "validations" | "searchable"> & Partial<Pick<Omit<CityPickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial<Pick<{ joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../../theme").ThemeOutterProps>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<CityPickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "label" | "desc" | "className" | "theme" | "value" | "hidden" | "description" | "disabled" | "name" | "placeholder" | "onChange" | "mode" | "readOnly" | "required" | "size" | "visible" | "useMobileUI" | "inline" | "horizontal" | "inputClassName" | "$ref" | "disabledOn" | "hiddenOn" | "visibleOn" | "clearValueOnHidden" | "validateApi" | "validateOnChange" | "remark" | "labelClassName" | "labelRemark" | "hint" | "submitOnChange" | "descriptionClassName" | "validationErrors" | "validations" | "searchable"> & Partial<Pick<Omit<CityPickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial<Pick<{ joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<CityPickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "label" | "desc" | "className" | "theme" | "value" | "hidden" | "description" | "disabled" | "name" | "placeholder" | "onChange" | "mode" | "readOnly" | "required" | "size" | "visible" | "useMobileUI" | "inline" | "horizontal" | "inputClassName" | "$ref" | "disabledOn" | "hiddenOn" | "visibleOn" | "clearValueOnHidden" | "validateApi" | "validateOnChange" | "remark" | "labelClassName" | "labelRemark" | "hint" | "submitOnChange" | "descriptionClassName" | "validationErrors" | "validations" | "searchable"> & Partial<Pick<Omit<CityPickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial<Pick<{ joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void; }; new (props: Omit<Pick<Omit<CityPickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "label" | "desc" | "className" | "theme" | "value" | "hidden" | "description" | "disabled" | "name" | "placeholder" | "onChange" | "mode" | "readOnly" | "required" | "size" | "visible" | "useMobileUI" | "inline" | "horizontal" | "inputClassName" | "$ref" | "disabledOn" | "hiddenOn" | "visibleOn" | "clearValueOnHidden" | "validateApi" | "validateOnChange" | "remark" | "labelClassName" | "labelRemark" | "hint" | "submitOnChange" | "descriptionClassName" | "validationErrors" | "validations" | "searchable"> & Partial<Pick<Omit<CityPickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial<Pick<{ joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../../theme").ThemeOutterProps, context: any): { render(): JSX.Element; context: any; setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<CityPickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "label" | "desc" | "className" | "theme" | "value" | "hidden" | "description" | "disabled" | "name" | "placeholder" | "onChange" | "mode" | "readOnly" | "required" | "size" | "visible" | "useMobileUI" | "inline" | "horizontal" | "inputClassName" | "$ref" | "disabledOn" | "hiddenOn" | "visibleOn" | "clearValueOnHidden" | "validateApi" | "validateOnChange" | "remark" | "labelClassName" | "labelRemark" | "hint" | "submitOnChange" | "descriptionClassName" | "validationErrors" | "validations" | "searchable"> & Partial<Pick<Omit<CityPickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial<Pick<{ joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../../theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly<Omit<Pick<Omit<CityPickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "label" | "desc" | "className" | "theme" | "value" | "hidden" | "description" | "disabled" | "name" | "placeholder" | "onChange" | "mode" | "readOnly" | "required" | "size" | "visible" | "useMobileUI" | "inline" | "horizontal" | "inputClassName" | "$ref" | "disabledOn" | "hiddenOn" | "visibleOn" | "clearValueOnHidden" | "validateApi" | "validateOnChange" | "remark" | "labelClassName" | "labelRemark" | "hint" | "submitOnChange" | "descriptionClassName" | "validationErrors" | "validations" | "searchable"> & Partial<Pick<Omit<CityPickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial<Pick<{ joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../../theme").ThemeOutterProps> & Readonly<{ children?: React.ReactNode; }>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<CityPickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "label" | "desc" | "className" | "theme" | "value" | "hidden" | "description" | "disabled" | "name" | "placeholder" | "onChange" | "mode" | "readOnly" | "required" | "size" | "visible" | "useMobileUI" | "inline" | "horizontal" | "inputClassName" | "$ref" | "disabledOn" | "hiddenOn" | "visibleOn" | "clearValueOnHidden" | "validateApi" | "validateOnChange" | "remark" | "labelClassName" | "labelRemark" | "hint" | "submitOnChange" | "descriptionClassName" | "validationErrors" | "validations" | "searchable"> & Partial<Pick<Omit<CityPickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial<Pick<{ joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<CityPickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "label" | "desc" | "className" | "theme" | "value" | "hidden" | "description" | "disabled" | "name" | "placeholder" | "onChange" | "mode" | "readOnly" | "required" | "size" | "visible" | "useMobileUI" | "inline" | "horizontal" | "inputClassName" | "$ref" | "disabledOn" | "hiddenOn" | "visibleOn" | "clearValueOnHidden" | "validateApi" | "validateOnChange" | "remark" | "labelClassName" | "labelRemark" | "hint" | "submitOnChange" | "descriptionClassName" | "validationErrors" | "validations" | "searchable"> & Partial<Pick<Omit<CityPickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial<Pick<{ joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../../theme").ThemeOutterProps>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<CityPickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "label" | "desc" | "className" | "theme" | "value" | "hidden" | "description" | "disabled" | "name" | "placeholder" | "onChange" | "mode" | "readOnly" | "required" | "size" | "visible" | "useMobileUI" | "inline" | "horizontal" | "inputClassName" | "$ref" | "disabledOn" | "hiddenOn" | "visibleOn" | "clearValueOnHidden" | "validateApi" | "validateOnChange" | "remark" | "labelClassName" | "labelRemark" | "hint" | "submitOnChange" | "descriptionClassName" | "validationErrors" | "validations" | "searchable"> & Partial<Pick<Omit<CityPickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial<Pick<{ joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../../theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<CityPickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "label" | "desc" | "className" | "theme" | "value" | "hidden" | "description" | "disabled" | "name" | "placeholder" | "onChange" | "mode" | "readOnly" | "required" | "size" | "visible" | "useMobileUI" | "inline" | "horizontal" | "inputClassName" | "$ref" | "disabledOn" | "hiddenOn" | "visibleOn" | "clearValueOnHidden" | "validateApi" | "validateOnChange" | "remark" | "labelClassName" | "labelRemark" | "hint" | "submitOnChange" | "descriptionClassName" | "validationErrors" | "validations" | "searchable"> & Partial<Pick<Omit<CityPickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial<Pick<{ joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../../theme").ThemeOutterProps>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<CityPickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "label" | "desc" | "className" | "theme" | "value" | "hidden" | "description" | "disabled" | "name" | "placeholder" | "onChange" | "mode" | "readOnly" | "required" | "size" | "visible" | "useMobileUI" | "inline" | "horizontal" | "inputClassName" | "$ref" | "disabledOn" | "hiddenOn" | "visibleOn" | "clearValueOnHidden" | "validateApi" | "validateOnChange" | "remark" | "labelClassName" | "labelRemark" | "hint" | "submitOnChange" | "descriptionClassName" | "validationErrors" | "validations" | "searchable"> & Partial<Pick<Omit<CityPickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial<Pick<{ joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../../theme").ThemeOutterProps>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<CityPickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "label" | "desc" | "className" | "theme" | "value" | "hidden" | "description" | "disabled" | "name" | "placeholder" | "onChange" | "mode" | "readOnly" | "required" | "size" | "visible" | "useMobileUI" | "inline" | "horizontal" | "inputClassName" | "$ref" | "disabledOn" | "hiddenOn" | "visibleOn" | "clearValueOnHidden" | "validateApi" | "validateOnChange" | "remark" | "labelClassName" | "labelRemark" | "hint" | "submitOnChange" | "descriptionClassName" | "validationErrors" | "validations" | "searchable"> & Partial<Pick<Omit<CityPickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial<Pick<{ joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<CityPickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "label" | "desc" | "className" | "theme" | "value" | "hidden" | "description" | "disabled" | "name" | "placeholder" | "onChange" | "mode" | "readOnly" | "required" | "size" | "visible" | "useMobileUI" | "inline" | "horizontal" | "inputClassName" | "$ref" | "disabledOn" | "hiddenOn" | "visibleOn" | "clearValueOnHidden" | "validateApi" | "validateOnChange" | "remark" | "labelClassName" | "labelRemark" | "hint" | "submitOnChange" | "descriptionClassName" | "validationErrors" | "validations" | "searchable"> & Partial<Pick<Omit<CityPickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial<Pick<{ joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void; }; displayName: string; contextType: React.Context<string>; ComposedComponent: React.ComponentType<{ new (props: (Pick<Omit<CityPickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "label" | "desc" | "className" | "theme" | "value" | "hidden" | "description" | "disabled" | "name" | "placeholder" | "onChange" | "mode" | "readOnly" | "required" | "size" | "visible" | "useMobileUI" | "inline" | "horizontal" | "inputClassName" | "$ref" | "disabledOn" | "hiddenOn" | "visibleOn" | "clearValueOnHidden" | "validateApi" | "validateOnChange" | "remark" | "labelClassName" | "labelRemark" | "hint" | "submitOnChange" | "descriptionClassName" | "validationErrors" | "validations" | "searchable"> & Partial<Pick<Omit<CityPickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial<Pick<{ joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }) | Readonly<Pick<Omit<CityPickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "label" | "desc" | "className" | "theme" | "value" | "hidden" | "description" | "disabled" | "name" | "placeholder" | "onChange" | "mode" | "readOnly" | "required" | "size" | "visible" | "useMobileUI" | "inline" | "horizontal" | "inputClassName" | "$ref" | "disabledOn" | "hiddenOn" | "visibleOn" | "clearValueOnHidden" | "validateApi" | "validateOnChange" | "remark" | "labelClassName" | "labelRemark" | "hint" | "submitOnChange" | "descriptionClassName" | "validationErrors" | "validations" | "searchable"> & Partial<Pick<Omit<CityPickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial<Pick<{ joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>): { render(): JSX.Element; context: any; setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<CityPickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "label" | "desc" | "className" | "theme" | "value" | "hidden" | "description" | "disabled" | "name" | "placeholder" | "onChange" | "mode" | "readOnly" | "required" | "size" | "visible" | "useMobileUI" | "inline" | "horizontal" | "inputClassName" | "$ref" | "disabledOn" | "hiddenOn" | "visibleOn" | "clearValueOnHidden" | "validateApi" | "validateOnChange" | "remark" | "labelClassName" | "labelRemark" | "hint" | "submitOnChange" | "descriptionClassName" | "validationErrors" | "validations" | "searchable"> & Partial<Pick<Omit<CityPickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial<Pick<{ joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly<Pick<Omit<CityPickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "label" | "desc" | "className" | "theme" | "value" | "hidden" | "description" | "disabled" | "name" | "placeholder" | "onChange" | "mode" | "readOnly" | "required" | "size" | "visible" | "useMobileUI" | "inline" | "horizontal" | "inputClassName" | "$ref" | "disabledOn" | "hiddenOn" | "visibleOn" | "clearValueOnHidden" | "validateApi" | "validateOnChange" | "remark" | "labelClassName" | "labelRemark" | "hint" | "submitOnChange" | "descriptionClassName" | "validationErrors" | "validations" | "searchable"> & Partial<Pick<Omit<CityPickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial<Pick<{ joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }> & Readonly<{ children?: React.ReactNode; }>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<CityPickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "label" | "desc" | "className" | "theme" | "value" | "hidden" | "description" | "disabled" | "name" | "placeholder" | "onChange" | "mode" | "readOnly" | "required" | "size" | "visible" | "useMobileUI" | "inline" | "horizontal" | "inputClassName" | "$ref" | "disabledOn" | "hiddenOn" | "visibleOn" | "clearValueOnHidden" | "validateApi" | "validateOnChange" | "remark" | "labelClassName" | "labelRemark" | "hint" | "submitOnChange" | "descriptionClassName" | "validationErrors" | "validations" | "searchable"> & Partial<Pick<Omit<CityPickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial<Pick<{ joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<CityPickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "label" | "desc" | "className" | "theme" | "value" | "hidden" | "description" | "disabled" | "name" | "placeholder" | "onChange" | "mode" | "readOnly" | "required" | "size" | "visible" | "useMobileUI" | "inline" | "horizontal" | "inputClassName" | "$ref" | "disabledOn" | "hiddenOn" | "visibleOn" | "clearValueOnHidden" | "validateApi" | "validateOnChange" | "remark" | "labelClassName" | "labelRemark" | "hint" | "submitOnChange" | "descriptionClassName" | "validationErrors" | "validations" | "searchable"> & Partial<Pick<Omit<CityPickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial<Pick<{ joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly<Pick<Omit<CityPickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "label" | "desc" | "className" | "theme" | "value" | "hidden" | "description" | "disabled" | "name" | "placeholder" | "onChange" | "mode" | "readOnly" | "required" | "size" | "visible" | "useMobileUI" | "inline" | "horizontal" | "inputClassName" | "$ref" | "disabledOn" | "hiddenOn" | "visibleOn" | "clearValueOnHidden" | "validateApi" | "validateOnChange" | "remark" | "labelClassName" | "labelRemark" | "hint" | "submitOnChange" | "descriptionClassName" | "validationErrors" | "validations" | "searchable"> & Partial<Pick<Omit<CityPickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial<Pick<{ joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CityPickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "label" | "desc" | "className" | "theme" | "value" | "hidden" | "description" | "disabled" | "name" | "placeholder" | "onChange" | "mode" | "readOnly" | "required" | "size" | "visible" | "useMobileUI" | "inline" | "horizontal" | "inputClassName" | "$ref" | "disabledOn" | "hiddenOn" | "visibleOn" | "clearValueOnHidden" | "validateApi" | "validateOnChange" | "remark" | "labelClassName" | "labelRemark" | "hint" | "submitOnChange" | "descriptionClassName" | "validationErrors" | "validations" | "searchable"> & Partial<Pick<Omit<CityPickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial<Pick<{ joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<CityPickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "label" | "desc" | "className" | "theme" | "value" | "hidden" | "description" | "disabled" | "name" | "placeholder" | "onChange" | "mode" | "readOnly" | "required" | "size" | "visible" | "useMobileUI" | "inline" | "horizontal" | "inputClassName" | "$ref" | "disabledOn" | "hiddenOn" | "visibleOn" | "clearValueOnHidden" | "validateApi" | "validateOnChange" | "remark" | "labelClassName" | "labelRemark" | "hint" | "submitOnChange" | "descriptionClassName" | "validationErrors" | "validations" | "searchable"> & Partial<Pick<Omit<CityPickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial<Pick<{ joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly<Pick<Omit<CityPickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "label" | "desc" | "className" | "theme" | "value" | "hidden" | "description" | "disabled" | "name" | "placeholder" | "onChange" | "mode" | "readOnly" | "required" | "size" | "visible" | "useMobileUI" | "inline" | "horizontal" | "inputClassName" | "$ref" | "disabledOn" | "hiddenOn" | "visibleOn" | "clearValueOnHidden" | "validateApi" | "validateOnChange" | "remark" | "labelClassName" | "labelRemark" | "hint" | "submitOnChange" | "descriptionClassName" | "validationErrors" | "validations" | "searchable"> & Partial<Pick<Omit<CityPickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial<Pick<{ joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<CityPickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "label" | "desc" | "className" | "theme" | "value" | "hidden" | "description" | "disabled" | "name" | "placeholder" | "onChange" | "mode" | "readOnly" | "required" | "size" | "visible" | "useMobileUI" | "inline" | "horizontal" | "inputClassName" | "$ref" | "disabledOn" | "hiddenOn" | "visibleOn" | "clearValueOnHidden" | "validateApi" | "validateOnChange" | "remark" | "labelClassName" | "labelRemark" | "hint" | "submitOnChange" | "descriptionClassName" | "validationErrors" | "validations" | "searchable"> & Partial<Pick<Omit<CityPickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial<Pick<{ joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextState: Readonly<{}>, nextContext: any): void; }; new (props: Pick<Omit<CityPickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "label" | "desc" | "className" | "theme" | "value" | "hidden" | "description" | "disabled" | "name" | "placeholder" | "onChange" | "mode" | "readOnly" | "required" | "size" | "visible" | "useMobileUI" | "inline" | "horizontal" | "inputClassName" | "$ref" | "disabledOn" | "hiddenOn" | "visibleOn" | "clearValueOnHidden" | "validateApi" | "validateOnChange" | "remark" | "labelClassName" | "labelRemark" | "hint" | "submitOnChange" | "descriptionClassName" | "validationErrors" | "validations" | "searchable"> & Partial<Pick<Omit<CityPickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial<Pick<{ joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, context: any): { render(): JSX.Element; context: any; setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<CityPickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "label" | "desc" | "className" | "theme" | "value" | "hidden" | "description" | "disabled" | "name" | "placeholder" | "onChange" | "mode" | "readOnly" | "required" | "size" | "visible" | "useMobileUI" | "inline" | "horizontal" | "inputClassName" | "$ref" | "disabledOn" | "hiddenOn" | "visibleOn" | "clearValueOnHidden" | "validateApi" | "validateOnChange" | "remark" | "labelClassName" | "labelRemark" | "hint" | "submitOnChange" | "descriptionClassName" | "validationErrors" | "validations" | "searchable"> & Partial<Pick<Omit<CityPickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial<Pick<{ joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly<Pick<Omit<CityPickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "label" | "desc" | "className" | "theme" | "value" | "hidden" | "description" | "disabled" | "name" | "placeholder" | "onChange" | "mode" | "readOnly" | "required" | "size" | "visible" | "useMobileUI" | "inline" | "horizontal" | "inputClassName" | "$ref" | "disabledOn" | "hiddenOn" | "visibleOn" | "clearValueOnHidden" | "validateApi" | "validateOnChange" | "remark" | "labelClassName" | "labelRemark" | "hint" | "submitOnChange" | "descriptionClassName" | "validationErrors" | "validations" | "searchable"> & Partial<Pick<Omit<CityPickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial<Pick<{ joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }> & Readonly<{ children?: React.ReactNode; }>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<CityPickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "label" | "desc" | "className" | "theme" | "value" | "hidden" | "description" | "disabled" | "name" | "placeholder" | "onChange" | "mode" | "readOnly" | "required" | "size" | "visible" | "useMobileUI" | "inline" | "horizontal" | "inputClassName" | "$ref" | "disabledOn" | "hiddenOn" | "visibleOn" | "clearValueOnHidden" | "validateApi" | "validateOnChange" | "remark" | "labelClassName" | "labelRemark" | "hint" | "submitOnChange" | "descriptionClassName" | "validationErrors" | "validations" | "searchable"> & Partial<Pick<Omit<CityPickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "extractValue" | "allowCity" | "allowDistrict" | "allowStreet">> & Partial<Pick<{ joinValues: boolean; extractValue: boolean; delimiter: string; allowCity: boolean; allowDistrict: boolean; allowStreet: boolean; }, never>> & { locale?: string | und