Explorar el Código

导航栏红点

徐勤民 hace 6 meses
padre
commit
150568746b
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      src/main/ets/view/SafeView.ets

+ 6 - 0
src/main/ets/view/SafeView.ets

@@ -24,7 +24,13 @@ export struct SafeView {
   @Prop opacitys: number | Resource
   // 是否显示返回按钮
   @Prop hideBack: boolean
+  /**
+   * 是否显示左侧角标,存在onClickLeft时生效
+   */
   @Prop showBadgeLeft: boolean;
+  /**
+   * 是否显示右侧角标,存在onClickLeft时生效
+   */
   @Prop showBadgeRight: boolean;
   // 设置返回按钮事件,如果hideBack为true,该事件无效
   onBackEvent?: () => void = undefined