From a7de6121c6e3115e02706a8b851a2ba069fa8d6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E5=8B=A4=E6=B0=91?= Date: Wed, 4 Sep 2024 11:08:23 +0800 Subject: [PATCH] README.md --- README.md | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8b8153c..19fae4d 100644 --- a/README.md +++ b/README.md @@ -127,7 +127,7 @@ struct MyView { ``` ## 3.[网络请求](./src/main/ets/http/HttpHelper.ts) -> 使用室建议二次封装 +> 使用时建议二次封装 > > 参数定义 > ```typescript @@ -197,6 +197,29 @@ HttpHelper.get() reject(error) }) ``` +## 4.[自定义view](./src/main/ets/view) +### 2.1.[LoadingView](./src/main/ets/view/LoadingView.ets) + +> 封装了loading的根布局 + +```tsx +import { LoadingView } from '@szyx/sdk_base' + +@State isLoading: boolean = false + +build() { + Stack() { + LoadingView({ isLoading: this.isLoading }) { + Column() { + Text('正常布局') + } + .width('100%') + .height('100%') + } + } +} +``` + @@ -234,6 +257,5 @@ HttpHelper.get() -