Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(site): 文档勘误,插件的cdn使用方式错误 #1864

Merged
merged 1 commit into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sites/docs/docs/tutorial/get-started.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ For example, the control panel plugin provides zooming and fit-to-canvas capabil
const { Control } = Extension;

// Global level installation of the control panel plugin:
Core.use(Control);
Core.default.use(Control);

// Instance level installation of the control panel plugin:
const lf = new Core.default({
Expand Down
5 changes: 2 additions & 3 deletions sites/docs/docs/tutorial/get-started.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,7 @@ LogicFlow初始化时支持不传画布宽高,这种情况下默认取的是co

### 3. 使用插件

LogicFlow
最初的目标就是提供一个扩展性强的流程绘制工具,用来满足各种业务需求。
LogicFlow最初的目标就是提供一个扩展性强的流程绘制工具,用来满足各种业务需求。

为了让LogicFlow的拓展性足够强,LogicFlow所有的非核心功能都使用插件的方式开发,并放到`@logicflow/extension`
包中。
Expand All @@ -205,7 +204,7 @@ LogicFlow
// Extension CDN会抛出一个包含所有插件的Extension变量,使用的插件需要从Extension中取用
const { Control } = Extension
//全局维度安装控制面板插件的写法:
Core.use(Control);
Core.default.use(Control);
//实例维度安装控制面板插件的写法:
const lf = new Core.default({
..., // 其他配置
Expand Down