@logicflow/core 1.0.7-alpha.1 → 1.1.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/logic-flow.js +1 -1
- package/package.json +1 -1
- package/types/LogicFlow.d.ts +7 -4
- package/types/type/index.d.ts +1 -0
package/package.json
CHANGED
package/types/LogicFlow.d.ts
CHANGED
|
@@ -47,9 +47,14 @@ export default class LogicFlow {
|
|
|
47
47
|
*/
|
|
48
48
|
plugins: Extension[];
|
|
49
49
|
/**
|
|
50
|
-
* 全局配置的插件,所有的LogicFlow
|
|
50
|
+
* 全局配置的插件,所有的LogicFlow示例都会使用
|
|
51
51
|
*/
|
|
52
52
|
static extensions: Map<string, Extension>;
|
|
53
|
+
/**
|
|
54
|
+
* 插件扩展方法
|
|
55
|
+
* @example
|
|
56
|
+
*/
|
|
57
|
+
extension: Record<string, any>;
|
|
53
58
|
/**
|
|
54
59
|
* 自定义数据格式转换方法
|
|
55
60
|
* 当接入系统格式和logicflow格式不一直的时候,可以自定义此方法来转换数据格式
|
|
@@ -437,9 +442,7 @@ export default class LogicFlow {
|
|
|
437
442
|
static use(extension: Extension): void;
|
|
438
443
|
private installPlugins;
|
|
439
444
|
/**
|
|
440
|
-
*
|
|
441
|
-
* 注意,不建议插件用这种方式加载,此方式只会出发render方法,
|
|
442
|
-
* 可能不会实时出发cont
|
|
445
|
+
* 加载插件-内部方法
|
|
443
446
|
*/
|
|
444
447
|
private installPlugin;
|
|
445
448
|
/**
|
package/types/type/index.d.ts
CHANGED
|
@@ -287,6 +287,7 @@ export interface LogicFlowContractor {
|
|
|
287
287
|
new (option: Options.Definition): LogicFlow;
|
|
288
288
|
}
|
|
289
289
|
export interface ExtensionContractor {
|
|
290
|
+
pluginName: string;
|
|
290
291
|
new ({ lf: LogicFlow, LogicFlow: LogicFlowContractor, }: {
|
|
291
292
|
lf: any;
|
|
292
293
|
LogicFlow: any;
|