File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 [
44 " @alilc/build-plugin-alt" ,
55 {
6- "type" : " plugin"
6+ "type" : " plugin" ,
7+ "inject" : true
78 }
89 ],
910 [
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 1- import * as React from 'react' ;
21import { ILowCodePluginContext } from '@alilc/lowcode-engine' ;
32import { IconQuestion } from './icon' ;
4- import { Dialog } from '@alifd/next' ;
5- import { Documents } from './popup' ;
63
74const 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 } ) ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments