UNPKG

@aliretail/react-materials-components

Version:
52 lines (51 loc) 1.51 kB
import React from 'react'; import { IGetAreaByCodeListResultItem, ITableValue, TCodeList } from './model'; declare type TProps = typeof ServiceArea.defaultProps & { readOnly: boolean; onChange?: { (value: TCodeList): void; }; appCode: string; areaApi: string; existApi: string; tableApi: string; areaApiUrl: string; existApiUrl: string; tableApiUrl: string; extFetchListParams: Record<string, any>; value: TCodeList; }; declare type TState = { dataSource: ITableValue[]; dialogVisible: boolean; currentSelectedRegionCode: TCodeList; initValues: IGetAreaByCodeListResultItem[]; isAreaChange: boolean; }; declare class ServiceArea extends React.Component<TProps, TState> { static propTypes: { handleChange: any; }; static defaultProps: { readOnly: boolean; appCode: string; areaApi: string; tableApi: string; existApi: string; areaApiUrl: string; existApiUrl: string; tableApiUrl: string; extFetchListParams: {}; }; constructor(props: any); UNSAFE_componentWillReceiveProps(nextProps: any): void; getExist: () => void; selectArea: () => void; dialogClose: () => void; interResultList: (currentSelectedRegionCode: TCodeList, props?: any) => void; unique: (arr: any) => any[]; dialogConfirm: (codes: any) => void; renderValue: (value: any) => any; render(): JSX.Element; } export default ServiceArea;