@xiaou66/picture-types 0.0.7 → 0.0.9
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/src/Flow.d.ts +2 -2
- package/dist/src/Storage.d.ts +0 -35
- package/dist/src/UITemplate.d.ts +2 -2
- package/package.json +1 -1
package/dist/src/Flow.d.ts
CHANGED
|
@@ -85,11 +85,11 @@ export interface IFlowContext {
|
|
|
85
85
|
export interface IFlowNodeActions<T> {
|
|
86
86
|
/**
|
|
87
87
|
* 执行节点核心逻辑
|
|
88
|
+
* @param ctx 流程上下文
|
|
88
89
|
* @param flow 流程项
|
|
89
90
|
* @param flowData 流程节点数据
|
|
90
|
-
* @param data 流程上下文
|
|
91
91
|
*/
|
|
92
|
-
onExecute?: (flow: IFlowItem, flowData: IFlowNode<T
|
|
92
|
+
onExecute?: (ctx: IFlowContext, flow: IFlowItem, flowData: IFlowNode<T>) => Promise<void>;
|
|
93
93
|
/**
|
|
94
94
|
* 保存数据后的钩子
|
|
95
95
|
* @param flow 流程项
|
package/dist/src/Storage.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AsyncComponentLoader, AsyncComponentOptions } from 'vue';
|
|
2
1
|
import { PluginInfo, PluginConfig } from './Plugin';
|
|
3
2
|
import { UITemplateConfig } from './UITemplate';
|
|
4
3
|
/**
|
|
@@ -75,40 +74,6 @@ export interface IDeleteFileParams<E = any> {
|
|
|
75
74
|
export interface UploadFileOptions {
|
|
76
75
|
onProgress?: (progress: number) => void;
|
|
77
76
|
}
|
|
78
|
-
/**
|
|
79
|
-
* 存储 UI 表单元素
|
|
80
|
-
*/
|
|
81
|
-
export interface StorageUIFormElement {
|
|
82
|
-
type: 'input' | 'input-format' | 'radio-group' | 'switch' | 'input-button' | 'select' | 'custom';
|
|
83
|
-
customComponent?: AsyncComponentLoader | AsyncComponentOptions;
|
|
84
|
-
formItem: {
|
|
85
|
-
rules?: Record<string, any>;
|
|
86
|
-
name: string;
|
|
87
|
-
label: string;
|
|
88
|
-
[key: string]: any;
|
|
89
|
-
};
|
|
90
|
-
/**
|
|
91
|
-
* 元素属性值
|
|
92
|
-
*/
|
|
93
|
-
elementProperty: Record<string, any>;
|
|
94
|
-
/**
|
|
95
|
-
* 元素事件
|
|
96
|
-
*/
|
|
97
|
-
elementEvent?: Record<string, any>;
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* 存储 UI 配置
|
|
101
|
-
*/
|
|
102
|
-
export interface StorageUIConfig {
|
|
103
|
-
/**
|
|
104
|
-
* 提示
|
|
105
|
-
*/
|
|
106
|
-
tips: string;
|
|
107
|
-
/**
|
|
108
|
-
* 表单
|
|
109
|
-
*/
|
|
110
|
-
forms: StorageUIFormElement[];
|
|
111
|
-
}
|
|
112
77
|
/**
|
|
113
78
|
* 存储插件信息
|
|
114
79
|
*/
|
package/dist/src/UITemplate.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AsyncComponentLoader, AsyncComponentOptions } from 'vue';
|
|
2
|
-
export type DynamicFormItemType = 'input' | 'input-format' | 'radio-group' | 'switch' | 'input-button' | 'select' | 'custom';
|
|
2
|
+
export type DynamicFormItemType = 'input' | 'input-format' | 'radio-group' | 'switch' | 'input-button' | 'select' | 'slider' | 'custom';
|
|
3
3
|
/**
|
|
4
4
|
* 动态表单项
|
|
5
5
|
*/
|
|
@@ -37,7 +37,7 @@ export interface UITemplateConfig {
|
|
|
37
37
|
/**
|
|
38
38
|
* 提示
|
|
39
39
|
*/
|
|
40
|
-
tips
|
|
40
|
+
tips?: string;
|
|
41
41
|
/**
|
|
42
42
|
* 表单
|
|
43
43
|
*/
|