diff --git a/packages/vantui/types/loading.d.ts b/packages/vantui/types/loading.d.ts index 4525685d..27b178be 100644 --- a/packages/vantui/types/loading.d.ts +++ b/packages/vantui/types/loading.d.ts @@ -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 }