diff --git a/Packages/UITool/Runtime/ModuleCoreUI/ModuleUIPage.cs b/Packages/UITool/Runtime/ModuleCoreUI/ModuleUIPage.cs
index d7b73de..1e84706 100644
--- a/Packages/UITool/Runtime/ModuleCoreUI/ModuleUIPage.cs
+++ b/Packages/UITool/Runtime/ModuleCoreUI/ModuleUIPage.cs
@@ -7,14 +7,16 @@ namespace MuHua {
///
/// 页面模块
///
- public class ModuleUIPage : MonoBehaviour {
+ public abstract class ModuleUIPage : MonoBehaviour {
/// 绑定文档
public UIDocument document;
/// 根目录文档
public VisualElement root => document.rootVisualElement;
+ /// 绑定文档
+ public abstract VisualElement Element { get; }
/// 添加UI元素
- public void Add(VisualElement child) => root.Add(child);
+ public void Add(VisualElement child) => Element.Add(child);
/// 查询UI元素
- public T Q(string name = null, string className = null) where T : VisualElement => root.Q(name, className);
+ public T Q(string name = null, string className = null) where T : VisualElement => Element.Q(name, className);
}
}
\ No newline at end of file