Skip to content

Commit

Permalink
docs: loading文档补全
Browse files Browse the repository at this point in the history
  • Loading branch information
MrXiangXvFan committed Oct 5, 2024
1 parent 83a6ecb commit e57c193
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions packages/vantui/types/loading.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,34 @@
import { FunctionComponent } from 'react'
import { ViewProps } from '@tarojs/components'
export interface LoadingProps extends ViewProps {
/**
* @description 颜色
* @default #c8c9cc
*/
color?: string
/**
* @description 是否垂直排列图标和文字内容
* @default false
*/
vertical?: boolean
/**
* @description 类型,可选值为 spinner
* @default circular
*/
type?: 'spinner' | 'circular'
/**
* @description 加载图标大小,默认单位为px
* @default 30px
*/
size?: string | number
/**
* @description 文字大小,默认单位为px
* @default 14px
*/
textSize?: string | number
/**
* @description 加载文案
*/
children?: React.ReactNode
}

Expand Down

0 comments on commit e57c193

Please sign in to comment.