@aliretail/react-materials-components
Version:
59 lines (58 loc) • 1.38 kB
TypeScript
import * as React from 'react';
import './index.scss';
export interface CardBaseProps {
className?: string;
style?: React.CSSProperties;
image: string;
title: string;
}
export interface WhaleResultProps {
/**
* className
*/
className?: string;
/**
* style
*/
style?: React.CSSProperties;
/**
* 错误等级,决定基础样式
*/
type: 'card' | 'page';
/**
* 预设错误类型,可通过下方属性覆盖
*/
status: 'SYS_404' | 'SYS_500' | 'SYS_403' | 'NO_MESSAGE' | 'NO_NETWORK' | 'DATA_EMPTY' | 'HELP_NOTICE' | 'SEARCH_ERROR' | 'IMAGE_ERROR' | 'PHONE_ERROR';
/**
* 显示的图片
*/
image?: string;
/**
* 标题, 可覆盖预设文案
*/
title?: string;
/**
* 描述,可覆盖预设文案,仅 type="page" 可用
*/
description?: string;
/**
* 操作按钮组,可覆盖预设文案,仅 type="page" 可用
*/
extra?: [];
/**
* 操作按钮组,仅 type="page" 可用
*/
actions?: React.ReactNode[];
/**
* 国际化
*/
i18nBundle?: Record<string, any>;
}
export declare class WhaleResult extends React.Component<WhaleResultProps> {
static defaultProps: {
type: string;
status: string;
};
render(): JSX.Element;
}
export default WhaleResult;