UNPKG

@aliretail/react-materials-components

Version:
50 lines (49 loc) 1.42 kB
import * as React from 'react'; import * as PropTypes from 'prop-types'; interface IPowerEditOwnerProps { onSuccess: ({ fileUrl: string }: { fileUrl: any; }) => void; uploadType: 'img' | 'video'; } export declare type TProps = typeof MaterialDialog.defaultProps & { value: any[]; code: string; imgLimitWidth: number; imgLimitHeight: number; materialCenterLinkage: { app: string; page: string; close: boolean; refresh: boolean; }; }; interface TState { visible: boolean; } declare class MaterialDialog extends React.Component<TProps & IPowerEditOwnerProps, TState> { static propTypes: { onSuccess: PropTypes.Requireable<(...args: any[]) => any>; value: PropTypes.Requireable<any[]>; uploadType: PropTypes.Requireable<string>; imgLimitWidth: PropTypes.Requireable<number>; imgLimitHeight: PropTypes.Requireable<number>; code: PropTypes.Requireable<string>; }; static defaultProps: { onSuccess: () => void; value: any[]; uploadType: string; imgLimitWidth: any; imgLimitHeight: any; code: string; multiSelect: boolean; }; state: TState; formatTab: (type: any) => string[]; openUploadLayer(): void; hide(): void; getToMaterialCenterConfig(): {}; render(): JSX.Element; } export default MaterialDialog;