Skip to content

Commit 6782bfb

Browse files
committed
feat(manual): adjust manual, use manual on lowcode-engine.cn
1 parent 6e09861 commit 6782bfb

4 files changed

Lines changed: 4 additions & 183 deletions

File tree

packages/plugin-manual/build.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
[
44
"@alilc/build-plugin-alt",
55
{
6-
"type": "plugin"
6+
"type": "plugin",
7+
"inject": true
78
}
89
],
910
[

packages/plugin-manual/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@alilc/lowcode-plugin-manual",
33
"author": "humphry.huang9@gmail.com",
4-
"version": "1.0.3",
4+
"version": "1.0.4",
55
"description": "低代码产品使用手册",
66
"main": "lib/index.js",
77
"module": "es/index.js",

packages/plugin-manual/src/index.tsx

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,8 @@
1-
import * as React from 'react';
21
import { ILowCodePluginContext } from '@alilc/lowcode-engine';
32
import { IconQuestion } from './icon';
4-
import { Dialog } from '@alifd/next';
5-
import { Documents } from './popup';
63

74
const PluginManual = (ctx: ILowCodePluginContext) => {
85
return {
9-
// 插件名,注册环境下唯一
10-
name: 'PluginManual',
11-
// 依赖的插件(插件名数组)
12-
dep: [],
13-
// 插件对外暴露的数据和方法
14-
exports() {
15-
return {};
16-
},
17-
// 插件的初始化函数,在引擎初始化之后会立刻调用
186
init() {
197
// 往引擎增加面板
208
ctx.skeleton.add({
@@ -26,17 +14,7 @@ const PluginManual = (ctx: ILowCodePluginContext) => {
2614
icon: IconQuestion,
2715
description: '如何使用',
2816
onClick() {
29-
Dialog.show({
30-
title: '低代码产品使用文档',
31-
content: (
32-
<Documents />
33-
),
34-
height: window.innerHeight - 100 + 'px',
35-
style: {
36-
width: window.innerWidth - 300,
37-
},
38-
footer: false,
39-
});
17+
window.open('https://lowcode-engine.cn/site/docs/demoUsage/intro', '_blank').focus();
4018
},
4119
},
4220
});

packages/plugin-manual/src/popup.tsx

Lines changed: 0 additions & 158 deletions
This file was deleted.

0 commit comments

Comments
 (0)