徐勤民 6 months ago
parent
commit
21960cd2b4
1 changed files with 27 additions and 0 deletions
  1. 27 0
      README.md

+ 27 - 0
README.md

@@ -284,6 +284,33 @@ build() {
 }
 ```
 
+### 4.2.[SafeView](./src/main/ets/view/SafeView.ets)
+
+> 基础布局
+
+```tsx
+import { SafeView } from '@szyx/sdk_base'
+
+@State isLoading: boolean = false
+
+build() {
+    SafeView({
+      isLoading: this.isLoading,
+      titleText: '注册',
+      onClickLeft:{img:$r("app.media.base_back"),
+        onClick:()=>{}
+      },
+      onClickRight:{
+        text:'添加',
+        color:'#ff1d9999',
+        onClick:()=>{}
+      }
+    }){
+    // 自己的布局
+    }
+}
+```
+
 ## 5.[Windows](./src/main/ets/utils/WindowHelper.ets)
 
 ### 5.1.弹出自定义窗口