@aliretail/react-materials-components
Version:
42 lines (41 loc) • 1.08 kB
TypeScript
import { Component } from 'react';
import AreaSelect from './areaSelect';
import { IGetAreaByCodeListResultItem, TCodeList } from './model';
interface IOnOk {
(list: any): void;
}
declare type TProps = typeof AreaSelect.defaultProps & {
onOk: IOnOk;
onClose: () => void;
dialogVisible: boolean;
title: string;
appCode: string;
areaApi: string;
areaApiUrl: string;
initValues: Array<IGetAreaByCodeListResultItem>;
};
declare type TState = {
codeList: TCodeList;
};
declare class AreaSelectDialog extends Component<TProps, TState> {
static propTypes: {
dialogVisible: any;
onClose: any;
onOk: any;
title: any;
};
static defaultProps: {
dialogVisible: boolean;
onClose: () => void;
onOk: () => void;
title: string;
appCode: string;
areaApi: string;
areaApiUrl: string;
};
constructor(props: any);
dialogConfirm: () => void;
handleChange: (codeList: any) => void;
render(): JSX.Element;
}
export default AreaSelectDialog;