BaseObject 及其子类的完整继承关系 ASCII 树

BaseObject 及其子类的完整继承关系 ASCII 树:

css 复制代码
BaseObject
├── AbstractBaseView<A, E>
│   └── DeclarativeBaseView<A, E>
│       ├── ViewContainer<A, E>
│       │   ├── ComposeView<A, E>
│       │   │   ├── Pager
│       │   │   ├── ButtonView
│       │   │   ├── SliderView
│       │   │   ├── SwitchView
│       │   │   ├── CheckBoxView
│       │   │   ├── DatePickerView
│       │   │   ├── ScrollPickerView
│       │   │   └── [其他ComposeView子类...]
│       │   ├── RefreshView
│       │   ├── MaskView
│       │   ├── TransitionView
│       │   ├── HoverView
│       │   ├── ScrollerContentView
│       │   ├── FooterRefreshView
│       │   ├── TabItemView
│       │   ├── LiquidGlassView
│       │   ├── GlassEffectContainerView
│       │   ├── GroupView<A, E>
│       │   ├── LayoutView<A, E>
│       │   ├── ModalView
│       │   └── SafeAreaView
│       ├── TextView
│       ├── ImageView
│       ├── InputView
│       ├── CanvasView
│       ├── ActivityIndicatorView
│       ├── VideoView
│       ├── APNGVView
│       ├── BlurView
│       ├── PAGView
│       ├── RichTextView
│       ├── TextAreaView
│       ├── iOSSlider
│       ├── iOSSegmentedControlView
│       ├── iOSSwitch
│       └── [其他DeclarativeBaseView子类...]
├── BaseEvent
│   ├── Event
│   │   ├── TextEvent
│   │   ├── ImageEvent
│   │   ├── InputEvent
│   │   ├── VideoEvent
│   │   ├── ScrollerEvent
│   │   ├── ListEvent
│   │   ├── ModalEvent
│   │   ├── RefreshEvent
│   │   ├── TransitionEvent
│   │   └── [其他Event子类...]
│   ├── ComposeEvent
│   │   ├── ButtonEvent
│   │   ├── SliderEvent
│   │   ├── SwitchEvent
│   │   ├── CheckBoxEvent
│   │   ├── DatePickerEvent
│   │   └── [其他ComposeEvent子类...]
│   ├── VisibilityEvent
│   └── FrameEvent
├── Props
│   └── Attr
│       ├── ContainerAttr
│       │   ├── ScrollerAttr
│       │   ├── ListAttr
│       │   ├── TabsAttr
│       │   ├── ModalAttr
│       │   ├── SafeAreaAttr
│       │   └── RefreshAttr
│       ├── ComposeAttr
│       │   ├── ButtonAttr
│       │   ├── SliderAttr
│       │   ├── SwitchAttr
│       │   ├── CheckBoxAttr
│       │   ├── DatePickerAttr
│       │   └── [其他ComposeAttr子类...]
│       ├── TextAttr
│       ├── ImageAttr
│       ├── InputAttr
│       ├── VideoAttr
│       ├── ActivityIndicatorAttr
│       ├── APNGAttr
│       ├── BlurAttr
│       ├── PAGViewAttr
│       ├── RichTextAttr
│       ├── TextAreaAttr
│       └── [其他Attr子类...]
├── ListItem (demo)
├── ListItemExample (demo)
├── GoodsData (demo)
├── GlobalData (demo)
├── WaterFallItem (demo)
└── [其他业务数据类...]

这个继承树展示了 KuiklyUI 框架的核心架构:

主要分支说明:

  1. 视图分支 (BaseObject → AbstractBaseView → DeclarativeBaseView)

    • 负责UI组件的显示和交互
    • ViewContainer 支持子视图管理
    • ComposeView 支持声明式UI构建
  2. 事件分支 (BaseObject → BaseEvent)

    • 负责事件处理和分发
    • Event 处理传统视图事件
    • ComposeEvent 处理组合视图事件
  3. 属性分支 (BaseObject → Props → Attr)

    • 负责组件属性管理
    • ContainerAttr 管理容器属性
    • ComposeAttr 管理组合组件属性
  4. 数据分支 (BaseObject → 业务数据类)

    • 各种业务数据模型
    • 主要在 demo 中使用

这种设计实现了清晰的职责分离和良好的扩展性。

相关推荐
怕浪猫2 小时前
机器人是当下薪酬最高却几乎没人学的技能:一份 6 个月从 0 到上手的学习路线
算法·架构·github
qetfw2 小时前
EVE-NG 导入 Debian 虚拟机:VMDK 转 QCOW2 与启动验证
linux·前端·debian·github
Jay-r4 小时前
开源 zh-doc-quality-gate:检查 Markdown / Word 的五类文档质量问题
人工智能·学习·开源·github·skill
艺杯羹5 小时前
零基础看懂 GitHub(Gitee 与 GitCode 通用):找资源、认界面、4 种获取方式与开源协议
git·gitee·开源·github·版本控制
阿策小和尚5 小时前
干掉 better-sqlite3,把 5 万星的 Ghost 6.81 压成 67MB 单包跑进 Dopame OS
人工智能·设计模式·github
m4Rk_1 天前
【论文阅读】Agent 记忆机制(151):DUNE——让源事实更新沿依赖图传播到派生记忆
论文阅读·人工智能·学习·开源·github
这里是北京1 天前
GitHub仓库推荐:Obsidian Skills,让AI把项目笔记组织成可追溯的知识图
笔记·github
赤生云电竞2 天前
网吧无盘系统上云:PXE 与云桌面混合部署实践 —— 基于iPXE、iSCSI与NVIDIA vGPU的架构选型
架构·github
爱嘿嘿的小黑2 天前
用 Google Antigravity 踩遍登录和环境坑后,我开源了个 30 秒只读体检脚本 + Agent Skill
人工智能·python·github