README.md

这个提交包含在:
徐勤民 2024-09-04 11:08:23 +08:00
父节点 81b538e43e
当前提交 a7de6121c6

查看文件

@ -127,7 +127,7 @@ struct MyView {
``` ```
## 3.[网络请求](./src/main/ets/http/HttpHelper.ts) ## 3.[网络请求](./src/main/ets/http/HttpHelper.ts)
> 使用建议二次封装 > 使用建议二次封装
> >
> 参数定义 > 参数定义
> ```typescript > ```typescript
@ -197,6 +197,29 @@ HttpHelper.get()
reject(error) 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()