UNPKG

fastlion-amis

Version:

一种MIS页面生成工具

45 lines (44 loc) 1.53 kB
import { UploadFile, UploadFileStatus } from 'antd/lib/upload/interface'; import React from 'react'; import { RendererProps } from '../../../../../factory'; import { FormControlProps, FormBaseControl } from '../../../../Form/Item'; import { UploadProps } from 'antd/lib/Upload'; import './LionShowImg.scss'; interface IState { previewVisible: boolean; previewImage: string; previewTitle: string; showfileList: Array<UploadFile>; errorImage: UploadFile; type: string; imgHeight: string; } export interface LionShowImgSchema extends FormBaseControl { type: 'lion-show-img'; } export interface LionShowImgProps extends FormControlProps, Omit<LionShowImgSchema, 'type' | 'className' | 'descriptionClassName' | 'inputClassName'> { } export declare class LionShowImg extends React.Component<LionShowImgProps & UploadProps & RendererProps, IState> { state: { previewVisible: boolean; previewImage: string; previewTitle: string; errorImage: { url: string; uid: string; status: UploadFileStatus; name: string; }; showfileList: any; type: string; imgHeight: string; }; componentDidMount(): void; componentDidUpdate(prevProps: any, prevState: any): void; handleCancel: () => void; handlePreview: (file: any) => Promise<void>; render(): JSX.Element; } export declare class LionShowImgRenderer extends LionShowImg { } export {};