doc: 添加组件架构图

This commit is contained in:
Junyan Qin
2024-12-23 11:32:24 +08:00
parent 7aaa83ba0b
commit 5992561274
4 changed files with 11 additions and 0 deletions
+6
View File
@@ -193,6 +193,12 @@ export default defineConfig({
},
],
},
{
text: "开发",
items: [
{ text: "组件架构", link: "/develop/comp-arch" },
],
},
],
// 编辑链接
Binary file not shown.

After

Width:  |  Height:  |  Size: 594 KiB

+3
View File
@@ -0,0 +1,3 @@
# 组件架构
![组件架构图](/assets/image/develop_comp_arch_1.png)
+2
View File
@@ -14,6 +14,8 @@
## 可扩展的组件
![组件扩展图](/assets/image/develop_comp_arch_1.png)
扩展一个组件的方法,新建一个类,继承于组件的基类,然后在类上使用对应的装饰器,再根据使用方式来配置使用该实现的组件。
大部分组件中包含了`ap: pkg.core.app.Application`对象,可以用这个对象来与整个程序的各个部分进行交互。