将页面委托改为属性,不能再awake阶段创建了,会导致生命周期问题。

This commit is contained in:
2026-06-04 15:03:32 +08:00
parent fa643371f4
commit 4ee70025c0
2 changed files with 30 additions and 12 deletions
+3 -1
View File
@@ -149,6 +149,8 @@ namespace XericUI.FlipPage
}
}
protected override Func<PageInfo> HowToCreatPageInfo => () => new PageComponentInfo();
#endregion
#region 类内类型
@@ -217,7 +219,7 @@ namespace XericUI.FlipPage
protected override void Awake()
{
// 使用默认的
HowToCreatPageInfo = () => new PageComponentInfo();
base.Awake();