From e57c193fbf986d0c1f0c81d4b1a561e667813887 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=A5=E8=BE=B9=E9=A1=B5=E5=AD=97?= <1096032096@qq.com> Date: Sat, 5 Oct 2024 13:36:29 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20loading=E6=96=87=E6=A1=A3=E8=A1=A5?= =?UTF-8?q?=E5=85=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/vantui/types/loading.d.ts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/packages/vantui/types/loading.d.ts b/packages/vantui/types/loading.d.ts index 4525685dc..27b178bee 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 }