@nutui/nutui-react-taro
Version:
京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序
42 lines (41 loc) • 1.05 kB
TypeScript
import { default as React, FunctionComponent, ReactNode } from 'react';
import { BasicComponent } from '../../utils/typings';
import { EmptyAction } from './types';
export interface EmptyProps extends BasicComponent {
/**
* 图片,支持传入图片 URL
* @default -
*/
image?: ReactNode
/**
* 图片大小,number 类型单位为 px
* @default -
*/
imageSize: number | string
/**
* 图片下方的标题
* @default -
*/
title: ReactNode
/**
* 图片下方的描述文字
* @default -
*/
description: ReactNode
/**
* 组件整体大小,适配于全屏或半屏
* @default base
*/
size: 'small' | 'base'
/**
* 默认图片错误类型
* @default empty
*/
status: 'empty' | 'error' | 'network'
/**
* 可用于处理操作的一组数据
* @default []
*/
actions: Array<EmptyAction>
}
export declare const Empty: FunctionComponent<Partial<EmptyProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'title'>>;