mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-30 20:35:22 +08:00
doc: 添加组件架构图
This commit is contained in:
@@ -193,6 +193,12 @@ export default defineConfig({
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
text: "开发",
|
||||
items: [
|
||||
{ text: "组件架构", link: "/develop/comp-arch" },
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
// 编辑链接
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 594 KiB |
@@ -0,0 +1,3 @@
|
||||
# 组件架构
|
||||
|
||||

|
||||
@@ -14,6 +14,8 @@
|
||||
|
||||
## 可扩展的组件
|
||||
|
||||

|
||||
|
||||
扩展一个组件的方法,新建一个类,继承于组件的基类,然后在类上使用对应的装饰器,再根据使用方式来配置使用该实现的组件。
|
||||
|
||||
大部分组件中包含了`ap: pkg.core.app.Application`对象,可以用这个对象来与整个程序的各个部分进行交互。
|
||||
|
||||
Reference in New Issue
Block a user