@nutui/nutui-react-taro
Version:
京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序
43 lines (42 loc) • 922 B
TypeScript
import { FunctionComponent } from 'react';
import { BasicComponent } from '../../utils/typings';
type avatarShape = 'round' | 'square';
export interface SkeletonProps extends BasicComponent {
/**
* 是否开启骨架屏动画
* @default false
*/
animated: boolean
/**
* 设置段落行数
* @default 1
*/
rows: number
/**
* 是否显示段落标题
* @default true
*/
title: boolean
/**
* 是否显示头像
* @default false
*/
avatar: boolean
/**
* 头像大小
* @default 50px
*/
avatarSize: string
/**
* 是否显示骨架屏(true不显示骨架屏,false显示骨架屏)
* @default true
*/
visible: boolean
/**
* 头像形状:正方形/圆形
* @default round
*/
avatarShape: avatarShape
}
export declare const Skeleton: FunctionComponent<Partial<SkeletonProps>>;
export {};