fastlion-amis
Version:
一种MIS页面生成工具
49 lines (48 loc) • 1.64 kB
TypeScript
import React from 'react';
import { RendererProps } from '../../../../factory';
import { BaseSchema } from '../../../../Schema';
export interface LionCellImgSchema extends BaseSchema {
type: 'lion-cell-img';
title: string;
}
export interface FileValue {
value?: any;
src?: string;
[propName: string]: any;
}
export interface LionCellImgProps extends RendererProps, Omit<LionCellImgSchema, 'type' | 'className'> {
}
export interface LionCellImgState {
files: Array<FileValue>;
selectList: Array<number>;
_print_visible: boolean;
ctx: {
items: Array<any>;
rows: Array<any>;
selectedItems: Array<any>;
unSelectedItems: Array<any>;
ids: string;
primaryField?: string;
[key: string]: any;
};
visible: boolean;
}
export declare class LionCellImg extends React.Component<LionCellImgProps, LionCellImgState> {
static defaultProps: Partial<LionCellImgProps>;
baseURL: string;
files: Array<FileValue>;
constructor(props: LionCellImgProps);
initFiles(): FileValue[];
componentDidUpdate(prevProps: LionCellImgProps): void;
matchPdfImg: (str: string) => boolean;
handleLabelPrint: () => void;
handleDownloadMedia(): void;
handleSelect: (type: 'all' | 'invert' | 'clear') => void;
handleImageLoaded(el: any, index: number): void;
handleImageError(el: any, index: number): void;
handleCheckMedia(index: number): void;
handlePreviewMedia(index: number): void;
render(): JSX.Element;
}
export declare class LionCellImgRenderer extends LionCellImg {
}