Skip to content

Commit

Permalink
docs: skeleton文档补全
Browse files Browse the repository at this point in the history
  • Loading branch information
MrXiangXvFan committed Oct 5, 2024
1 parent 83a6ecb commit 53b9411
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions packages/vantui/types/skeleton.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,53 @@ import { FunctionComponent, ReactNode } from 'react'
import { ViewProps } from '@tarojs/components'

export interface SkeletonProps extends ViewProps {
/**
* @description 段落占位图行数
* @default 0
*/
row?: number | string
/**
* @description 是否显示标题占位图
*/
title?: boolean
/**
* @description 是否显示头像占位图
* @default false
*/
avatar?: boolean
/**
* @description 是否显示占位图,传false时会展示子组件内容
* @default true
*/
loading?: boolean
/**
* @description 是否开启动画
* @default true
*/
animate?: boolean
/**
* @description 头像占位图大小
* @default 32px
*/
avatarSize?: string | number
/**
* @description 头像占位图形状,可选值为square
* @default round
*/
avatarShape?: 'square' | 'round'
/**
* @description 标题占位图宽度
* @default 40%
*/
titleWidth?: string | number
/**
* @description 段落占位图宽度,可传数组来设置每一行的宽度
* @default 100%
*/
rowWidth?: string | string[]
/**
* @description
*/
children?: ReactNode
}

Expand Down

0 comments on commit 53b9411

Please sign in to comment.