ultra-design
Version:
38 lines (37 loc) • 1.14 kB
TypeScript
import React from 'react';
export interface LoadingProps {
/**
*
* @description.zh-CN loading 提示文字
* @description.en-US loading tip text
*/
message?: React.ReactNode;
/**
*
* @description.zh-CN 是否显示遮罩,传入字符串可自定义遮罩背景色
* @description.en-US show mask, pass string type of value for custom mask background-color
*/
mask?: boolean | string;
/**
* @description.zh-CN 是否填充整个父元素
* @description.en-US fill full parent
*/
fill?: boolean;
/**
* @description.zh-CN 是否全屏显示
* @description.en-US need fullscrenn
*/
fullScreen?: boolean;
/**
* @description.zh-CN 自定义 loading 图标
* @description.en-US custom loading icon
*/
icon?: React.ReactNode;
}
declare type LoadingNativeProps = LoadingProps & React.HTMLAttributes<any>;
export declare const defaultProps: {
icon: JSX.Element;
};
export declare type MergedLoadingrProps = typeof defaultProps & LoadingProps;
declare const _default: React.FC<LoadingNativeProps>;
export default _default;