import * as React from 'react'; interface CitySelectionProps { /**是否可编辑 */ editable?: boolean; /**选择的内容 */ value?: string | object | Array; /**选择变化时的回调 */ onChange?: Function; /**根行政区编号 */ rootCantonId?: string | Array; /**选项key,使用enumeration进行全局设置 */ optionKey?: string; /**选项 */ options?: object; /**是否可以选择父级行政区 */ parentSelectable?: boolean; /**选择模式:单选,多选 */ mode?: 'single' | 'multiple'; /**占位文本 */ placeholder?: string; /**自定义样式 */ style?: object; /**自定义类名 */ className?: string; /**是否允许清空 */ allowClear?: boolean; /**动态加载选项的函数 */ loadData?: void; /**行政区编码位数,位数不足时在后面补0 */ useFullWidthCode?: number; /**不显示父级行政区名称 */ useShortName?: boolean; /**是否把每个选项的 label 包装到 value 中,会把 value 类型从 string 变为 { value: string, label: ReactNode } 的格式 */ labelInValue?: boolean; /**最大选择层级 */ maxLevel?: number; } interface CitySelectionState {} declare class CitySelection extends React.Component { state: CitySelectionState; componentDidMount(): void; componentDidUpdate(prevProps: CitySelectionProps): void; componentWillUnmount(): void; render: () => React.ReactElement; } export default CitySelection;