@gct-paas/schema 0.1.4-dev.9 → 0.1.5-dev.1
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/index.esm.min.js +1 -0
- package/es/constants/design.d.ts +26 -0
- package/es/constants/design.mjs +30 -0
- package/es/constants/index.d.ts +24 -1
- package/es/constants/index.mjs +410 -18
- package/es/index.d.ts +1 -1
- package/es/index.mjs +13 -19
- package/es/interface/design/i-design-container-node.d.ts +13 -0
- package/es/interface/design/i-design-data.d.ts +44 -0
- package/es/interface/design/i-design-editor-data.d.ts +20 -0
- package/es/interface/design/i-design-editor-node.d.ts +15 -0
- package/es/interface/design/i-design-node-data.d.ts +19 -0
- package/es/interface/design/i-design-node.d.ts +80 -0
- package/es/interface/design/i-design-page-node-data.d.ts +15 -0
- package/es/interface/design/i-design-tree-item.d.ts +26 -0
- package/es/interface/design/i-drag-data-item.d.ts +46 -0
- package/es/interface/design/index.d.ts +9 -0
- package/es/interface/designer.d.ts +1 -1
- package/es/interface/index.d.ts +2 -0
- package/es/interface/modal/i-modal-body.d.ts +1 -1
- package/es/interface/relationship-diagram-config/i-relationship-diagram-node.d.ts +82 -0
- package/es/interface/relationship-diagram-config/i-rule-config.d.ts +135 -0
- package/es/interface/relationship-diagram-config/index.d.ts +2 -0
- package/es/interface/schema/widget-props/i-card-list-props.d.ts +79 -0
- package/es/interface/schema/widget-props/i-form-container-props.d.ts +19 -5
- package/es/interface/schema/widget-props/i-form-input-props.d.ts +1 -1
- package/es/interface/schema/widget-props/i-search-widget-props.d.ts +6 -0
- package/es/interface/schema/widget-props/i-table-props.d.ts +6 -6
- package/es/interface/schema/widget-props/index.d.ts +1 -0
- package/es/interface/schema/widget-types.d.ts +36 -7
- package/es/interface/widget/i-common.d.ts +2 -1
- package/es/interface/widget/i-editors.d.ts +3 -2
- package/es/interface/widget/i-props.d.ts +13 -32
- package/es/interface/widget/i-schemas.d.ts +2 -0
- package/es/interface/widget/i-styles.d.ts +1 -0
- package/es/interface/widget/index.d.ts +3 -1
- package/es/utils/field-editor-override-registry/field-editor-override-registry.d.ts +36 -0
- package/es/utils/field-editor-override-registry/field-editor-override-registry.mjs +29 -0
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.mjs +6 -0
- package/es/utils/schema/index.d.ts +4 -1
- package/es/utils/schema/index.mjs +75 -39
- package/es/utils/schema/search.d.ts +9 -0
- package/es/utils/schema/search.mjs +146 -0
- package/es/utils/schema/utils.d.ts +21 -0
- package/es/utils/schema/utils.mjs +182 -0
- package/es/utils/schema-style/index.mjs +203 -127
- package/es/utils/widget-info/widget-info.mjs +132 -57
- package/package.json +12 -13
- package/dist/index.esm.min.mjs +0 -898
- package/dist/index.min.cjs +0 -1
- package/dist/index.system.min.js +0 -1
- package/es/schema/common-config/base-button-config.d.ts +0 -3
- package/es/schema/common-config/base-button-config.mjs +0 -84
- package/es/schema/common-config/button-editor-config.d.ts +0 -4
- package/es/schema/common-config/button-editor-config.mjs +0 -206
- package/es/schema/common-config/button-props-func.d.ts +0 -5
- package/es/schema/common-config/button-props-func.mjs +0 -11
- package/es/schema/common-config/common-field-editor-config.d.ts +0 -10
- package/es/schema/common-config/common-field-editor-config.mjs +0 -61
- package/es/schema/common-config/common-style.d.ts +0 -3
- package/es/schema/common-config/common-style.mjs +0 -85
- package/es/schema/common-config/display-editor-config.d.ts +0 -3
- package/es/schema/common-config/display-editor-config.mjs +0 -89
- package/es/schema/common-config/permission-editor-config.d.ts +0 -2
- package/es/schema/common-config/permission-editor-config.mjs +0 -23
- package/es/schema/index.d.ts +0 -9
- package/es/schema/modal/modal-body.d.ts +0 -2
- package/es/schema/modal/modal-body.mjs +0 -9
- package/es/schema/modal/modal-footer.d.ts +0 -2
- package/es/schema/modal/modal-footer.mjs +0 -9
- package/es/schema/modal/modal.d.ts +0 -8
- package/es/schema/modal/modal.mjs +0 -182
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IDesignEditorData } from './i-design-editor-data';
|
|
2
|
+
import { IDesignNode } from './i-design-node';
|
|
3
|
+
/**
|
|
4
|
+
* 设计编辑器节点接口
|
|
5
|
+
*
|
|
6
|
+
* @author chitanda
|
|
7
|
+
* @date 2025-07-07 15:07:25
|
|
8
|
+
* @export
|
|
9
|
+
* @interface IDesignEditorNode
|
|
10
|
+
* @extends {IDesignNode<T>}
|
|
11
|
+
* @template T
|
|
12
|
+
*/
|
|
13
|
+
export interface IDesignEditorNode<T extends IDesignEditorData = IDesignEditorData> extends IDesignNode<T> {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 设计节点数据
|
|
3
|
+
*
|
|
4
|
+
* @author zhanghanrui
|
|
5
|
+
* @date 2024-07-09 16:07:29
|
|
6
|
+
* @export
|
|
7
|
+
* @interface IDesignNodeData
|
|
8
|
+
*/
|
|
9
|
+
export interface IDesignNodeData {
|
|
10
|
+
[key: string | symbol]: any;
|
|
11
|
+
/**
|
|
12
|
+
* 设计节点名称
|
|
13
|
+
*
|
|
14
|
+
* @author zhanghanrui
|
|
15
|
+
* @date 2024-07-12 11:07:05
|
|
16
|
+
* @type {string}
|
|
17
|
+
*/
|
|
18
|
+
name?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { IDesignNodeData } from './i-design-node-data';
|
|
2
|
+
/**
|
|
3
|
+
* 设计节点
|
|
4
|
+
*
|
|
5
|
+
* @author zhanghanrui
|
|
6
|
+
* @date 2024-07-09 16:07:21
|
|
7
|
+
* @export
|
|
8
|
+
* @interface IDesignNode
|
|
9
|
+
* @template T
|
|
10
|
+
*/
|
|
11
|
+
export interface IDesignNode<T extends IDesignNodeData = IDesignNodeData> {
|
|
12
|
+
/**
|
|
13
|
+
* 节点唯一标识
|
|
14
|
+
*
|
|
15
|
+
* @author zhanghanrui
|
|
16
|
+
* @date 2024-07-05 13:07:46
|
|
17
|
+
* @type {string}
|
|
18
|
+
*/
|
|
19
|
+
id: string;
|
|
20
|
+
/**
|
|
21
|
+
* 排序值
|
|
22
|
+
* 2024年8月23日15:10:19 - 改版后 order 不再使用
|
|
23
|
+
*
|
|
24
|
+
* @deprecated
|
|
25
|
+
* @author zhanghanrui
|
|
26
|
+
* @date 2024-07-12 14:07:40
|
|
27
|
+
* @type {number}
|
|
28
|
+
*/
|
|
29
|
+
order?: number;
|
|
30
|
+
/**
|
|
31
|
+
* 名称
|
|
32
|
+
*
|
|
33
|
+
* @author zhanghanrui
|
|
34
|
+
* @date 2024-07-05 15:07:37
|
|
35
|
+
* @type {string}
|
|
36
|
+
*/
|
|
37
|
+
label: string;
|
|
38
|
+
/**
|
|
39
|
+
* 节点类型
|
|
40
|
+
*
|
|
41
|
+
* @author zhanghanrui
|
|
42
|
+
* @date 2024-07-05 13:07:46
|
|
43
|
+
* @type {string}
|
|
44
|
+
*/
|
|
45
|
+
type: string;
|
|
46
|
+
/**
|
|
47
|
+
* 数据更新时间戳
|
|
48
|
+
*
|
|
49
|
+
* @author zhanghanrui
|
|
50
|
+
* @date 2024-07-05 17:07:02
|
|
51
|
+
* @type {number}
|
|
52
|
+
*/
|
|
53
|
+
updateDate: number;
|
|
54
|
+
/**
|
|
55
|
+
* 设计项的数据
|
|
56
|
+
*
|
|
57
|
+
* @author zhanghanrui
|
|
58
|
+
* @date 2024-07-09 16:07:47
|
|
59
|
+
* @type {T}
|
|
60
|
+
*/
|
|
61
|
+
data: T;
|
|
62
|
+
/**
|
|
63
|
+
* 父节点标识
|
|
64
|
+
* 2024年8月23日15:10:19 - 改版后 parentId 不再使用
|
|
65
|
+
*
|
|
66
|
+
* @deprecated
|
|
67
|
+
* @author zhanghanrui
|
|
68
|
+
* @date 2024-07-05 13:07:38
|
|
69
|
+
* @type {string}
|
|
70
|
+
*/
|
|
71
|
+
parentId?: string;
|
|
72
|
+
/**
|
|
73
|
+
* 克隆
|
|
74
|
+
*
|
|
75
|
+
* @author zhanghanrui
|
|
76
|
+
* @date 2024-07-12 13:07:44
|
|
77
|
+
* @return {*} {IDesignNode}
|
|
78
|
+
*/
|
|
79
|
+
clone(): IDesignNode;
|
|
80
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IDesignNodeData } from './i-design-node-data';
|
|
2
|
+
/**
|
|
3
|
+
* 设计界面节点
|
|
4
|
+
*
|
|
5
|
+
* @author zhanghanrui
|
|
6
|
+
* @date 2024-07-24 10:07:27
|
|
7
|
+
* @export
|
|
8
|
+
* @interface IDesignPageNode
|
|
9
|
+
* @extends {IDesignNode}
|
|
10
|
+
*/
|
|
11
|
+
export interface IDesignPageNodeData extends IDesignNodeData {
|
|
12
|
+
background: string;
|
|
13
|
+
padding: string;
|
|
14
|
+
headerBgColor?: boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 设计树项
|
|
3
|
+
*
|
|
4
|
+
* @author zhanghanrui
|
|
5
|
+
* @date 2024-08-20 10:08:36
|
|
6
|
+
* @export
|
|
7
|
+
* @interface IDesignTreeItem
|
|
8
|
+
*/
|
|
9
|
+
export interface IDesignTreeItem {
|
|
10
|
+
/**
|
|
11
|
+
* 标识
|
|
12
|
+
*
|
|
13
|
+
* @author zhanghanrui
|
|
14
|
+
* @date 2024-08-20 10:08:48
|
|
15
|
+
* @type {string}
|
|
16
|
+
*/
|
|
17
|
+
id: string;
|
|
18
|
+
/**
|
|
19
|
+
* 子项
|
|
20
|
+
*
|
|
21
|
+
* @author zhanghanrui
|
|
22
|
+
* @date 2024-08-20 10:08:56
|
|
23
|
+
* @type {IDesignTreeItem[]}
|
|
24
|
+
*/
|
|
25
|
+
children?: IDesignTreeItem[];
|
|
26
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { IDesignNode } from './i-design-node';
|
|
2
|
+
/**
|
|
3
|
+
* 拖拽数据项
|
|
4
|
+
*
|
|
5
|
+
* @export
|
|
6
|
+
* @interface IDragDataItem
|
|
7
|
+
* @template O
|
|
8
|
+
*/
|
|
9
|
+
export interface IDragDataItem<O extends IDesignNode = IDesignNode> {
|
|
10
|
+
/**
|
|
11
|
+
* 当前数据标识,如果是新数据则主键为空
|
|
12
|
+
*
|
|
13
|
+
* @type {string}
|
|
14
|
+
*/
|
|
15
|
+
id: string;
|
|
16
|
+
/**
|
|
17
|
+
* 拖拽分组实例标识
|
|
18
|
+
*
|
|
19
|
+
* @type {string}
|
|
20
|
+
*/
|
|
21
|
+
group: string;
|
|
22
|
+
/**
|
|
23
|
+
* 拖拽项原位置索引
|
|
24
|
+
*
|
|
25
|
+
* @type {number}
|
|
26
|
+
*/
|
|
27
|
+
index: number;
|
|
28
|
+
/**
|
|
29
|
+
* 当前拖拽数据
|
|
30
|
+
*
|
|
31
|
+
* @type {O}
|
|
32
|
+
*/
|
|
33
|
+
data: O;
|
|
34
|
+
/**
|
|
35
|
+
* 数据模式
|
|
36
|
+
*
|
|
37
|
+
* @type {('create' | 'move')} 新建 | 移动
|
|
38
|
+
*/
|
|
39
|
+
mode: 'create' | 'move';
|
|
40
|
+
/**
|
|
41
|
+
* 包含自身 + 所有子的类型,目前主要用于拖拽限制
|
|
42
|
+
*
|
|
43
|
+
* @type {string[]}
|
|
44
|
+
*/
|
|
45
|
+
types: string[];
|
|
46
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type { IDesignContainerNode } from './i-design-container-node';
|
|
2
|
+
export type { IDesignPageNodeData } from './i-design-page-node-data';
|
|
3
|
+
export type { IDesignData } from './i-design-data';
|
|
4
|
+
export type { IDesignEditorData } from './i-design-editor-data';
|
|
5
|
+
export type { IDesignEditorNode } from './i-design-editor-node';
|
|
6
|
+
export type { IDesignNodeData } from './i-design-node-data';
|
|
7
|
+
export type { IDesignNode } from './i-design-node';
|
|
8
|
+
export type { IDesignTreeItem } from './i-design-tree-item';
|
|
9
|
+
export type { IDragDataItem } from './i-drag-data-item';
|
|
@@ -19,13 +19,13 @@ export interface PageJson {
|
|
|
19
19
|
pageMounted?: LowCodeWidget.JsEvent | LowCodeWidget.InnerEvents[];
|
|
20
20
|
/**页面离开事件 */
|
|
21
21
|
pageDestroyed?: LowCodeWidget.JsEvent | LowCodeWidget.InnerEvents[];
|
|
22
|
+
pageActivated?: LowCodeWidget.JsEvent | LowCodeWidget.InnerEvents[];
|
|
22
23
|
};
|
|
23
24
|
widgets: LowCodeWidget.BasicSchema[];
|
|
24
25
|
js: string;
|
|
25
26
|
css: string;
|
|
26
27
|
modals: LowCodeModal.Modal[];
|
|
27
28
|
timestamp?: number;
|
|
28
|
-
newDesigner?: boolean;
|
|
29
29
|
/**全局页面事件 */
|
|
30
30
|
globalEvents: IPageGlobalEvents;
|
|
31
31
|
permissions: Record<string, string | null>;
|
package/es/interface/index.d.ts
CHANGED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 节点
|
|
3
|
+
*
|
|
4
|
+
* @author zhanghanrui
|
|
5
|
+
* @date 2024-06-25 10:06:53
|
|
6
|
+
* @export
|
|
7
|
+
* @interface IRelationshipDiagramNode
|
|
8
|
+
*/
|
|
9
|
+
export interface IRelationshipDiagramNode {
|
|
10
|
+
/**
|
|
11
|
+
* 节点唯一标识
|
|
12
|
+
*
|
|
13
|
+
* @author zhanghanrui
|
|
14
|
+
* @date 2024-06-25 13:06:35
|
|
15
|
+
* @type {string}
|
|
16
|
+
*/
|
|
17
|
+
id: string;
|
|
18
|
+
/**
|
|
19
|
+
* 字段唯一标识
|
|
20
|
+
*
|
|
21
|
+
* @author zhanghanrui
|
|
22
|
+
* @date 2024-07-05 10:07:11
|
|
23
|
+
* @type {string | null}
|
|
24
|
+
*/
|
|
25
|
+
id_: string | null;
|
|
26
|
+
/**
|
|
27
|
+
* 节点类型
|
|
28
|
+
*
|
|
29
|
+
* @author zhanghanrui
|
|
30
|
+
* @date 2024-06-25 13:06:44
|
|
31
|
+
* @type {string}
|
|
32
|
+
*/
|
|
33
|
+
type: string;
|
|
34
|
+
/**
|
|
35
|
+
* 当前模型标识
|
|
36
|
+
*
|
|
37
|
+
* @author zhanghanrui
|
|
38
|
+
* @date 2024-06-26 16:06:15
|
|
39
|
+
* @type {string | null}
|
|
40
|
+
*/
|
|
41
|
+
modelKey: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* 模型类型
|
|
44
|
+
*
|
|
45
|
+
* @author zhanghanrui
|
|
46
|
+
* @date 2024-06-26 16:06:30
|
|
47
|
+
* @type {string | null}
|
|
48
|
+
*/
|
|
49
|
+
modelCategory: string | null;
|
|
50
|
+
/**
|
|
51
|
+
* 属性key
|
|
52
|
+
*
|
|
53
|
+
* @author zhanghanrui
|
|
54
|
+
* @date 2024-06-26 16:06:46
|
|
55
|
+
* @type {string | null}
|
|
56
|
+
*/
|
|
57
|
+
value: string | null;
|
|
58
|
+
/**
|
|
59
|
+
* 属性文本
|
|
60
|
+
*
|
|
61
|
+
* @author zhanghanrui
|
|
62
|
+
* @date 2024-06-26 16:06:56
|
|
63
|
+
* @type {string | null}
|
|
64
|
+
*/
|
|
65
|
+
label: string | null;
|
|
66
|
+
/**
|
|
67
|
+
* 是否为反向节点
|
|
68
|
+
*
|
|
69
|
+
* @author zhanghanrui
|
|
70
|
+
* @date 2024-06-28 15:06:46
|
|
71
|
+
* @type {boolean}
|
|
72
|
+
*/
|
|
73
|
+
reverse?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* 禁止选择属性
|
|
76
|
+
*
|
|
77
|
+
* @author zhanghanrui
|
|
78
|
+
* @date 2024-06-28 13:06:52
|
|
79
|
+
* @type {boolean}
|
|
80
|
+
*/
|
|
81
|
+
noSelectField?: boolean;
|
|
82
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { IRelationshipDiagramNode } from './i-relationship-diagram-node';
|
|
2
|
+
/**
|
|
3
|
+
* 设计 json
|
|
4
|
+
*
|
|
5
|
+
* @author zhanghanrui
|
|
6
|
+
* @date 2024-06-29 17:06:51
|
|
7
|
+
* @export
|
|
8
|
+
* @interface IDesignJson
|
|
9
|
+
*/
|
|
10
|
+
export interface IDesignJson {
|
|
11
|
+
/**
|
|
12
|
+
* 前置信息
|
|
13
|
+
*
|
|
14
|
+
* @author zhanghanrui
|
|
15
|
+
* @date 2024-06-29 17:06:58
|
|
16
|
+
* @type {IData}
|
|
17
|
+
*/
|
|
18
|
+
before?: IData;
|
|
19
|
+
/**
|
|
20
|
+
* 节点信息
|
|
21
|
+
*
|
|
22
|
+
* @author zhanghanrui
|
|
23
|
+
* @date 2024-06-29 17:06:10
|
|
24
|
+
* @type {IRelationshipDiagramNode[]}
|
|
25
|
+
*/
|
|
26
|
+
nodes: IRelationshipDiagramNode[];
|
|
27
|
+
/**
|
|
28
|
+
* 后置信息
|
|
29
|
+
*
|
|
30
|
+
* @author zhanghanrui
|
|
31
|
+
* @date 2024-06-29 17:06:08
|
|
32
|
+
* @type {IData}
|
|
33
|
+
*/
|
|
34
|
+
after?: IData;
|
|
35
|
+
}
|
|
36
|
+
export interface INodeData {
|
|
37
|
+
/**
|
|
38
|
+
* 模型标识
|
|
39
|
+
*
|
|
40
|
+
* @author zhanghanrui
|
|
41
|
+
* @date 2024-06-29 17:06:38
|
|
42
|
+
* @type {string}
|
|
43
|
+
*/
|
|
44
|
+
modelKey: string;
|
|
45
|
+
/**
|
|
46
|
+
* 模型类型
|
|
47
|
+
*
|
|
48
|
+
* @author zhanghanrui
|
|
49
|
+
* @date 2024-06-29 17:06:06
|
|
50
|
+
* @type {string}
|
|
51
|
+
*/
|
|
52
|
+
modelCategory: string;
|
|
53
|
+
/**
|
|
54
|
+
* 属性标识
|
|
55
|
+
*
|
|
56
|
+
* @author zhanghanrui
|
|
57
|
+
* @date 2024-06-29 17:06:42
|
|
58
|
+
* @type {string}
|
|
59
|
+
*/
|
|
60
|
+
fieldKey: string;
|
|
61
|
+
/**
|
|
62
|
+
* 节点方向
|
|
63
|
+
*
|
|
64
|
+
* @author zhanghanrui
|
|
65
|
+
* @date 2024-06-29 17:06:47
|
|
66
|
+
* @type {('forward' | 'backward' | '')}
|
|
67
|
+
*/
|
|
68
|
+
direction: 'forward' | 'backward' | '';
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* 数据联动 ruleConfig 配置清单
|
|
72
|
+
*
|
|
73
|
+
* @author zhanghanrui
|
|
74
|
+
* @date 2024-06-29 17:06:29
|
|
75
|
+
* @export
|
|
76
|
+
* @interface IRuleConfig
|
|
77
|
+
*/
|
|
78
|
+
export interface IRuleConfig {
|
|
79
|
+
/**
|
|
80
|
+
* 设计 json 配置
|
|
81
|
+
*
|
|
82
|
+
* @author zhanghanrui
|
|
83
|
+
* @date 2024-06-29 17:06:31
|
|
84
|
+
* @type {IDesignJson}
|
|
85
|
+
*/
|
|
86
|
+
designJson: IDesignJson;
|
|
87
|
+
/**
|
|
88
|
+
* 是否强依赖
|
|
89
|
+
*
|
|
90
|
+
* @author zhanghanrui
|
|
91
|
+
* @date 2024-09-02 15:09:15
|
|
92
|
+
* @type {boolean}
|
|
93
|
+
*/
|
|
94
|
+
strongDependence: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* 主查字段名称
|
|
97
|
+
*
|
|
98
|
+
* @author zhanghanrui
|
|
99
|
+
* @date 2024-06-29 19:06:48
|
|
100
|
+
* @type {string}
|
|
101
|
+
*/
|
|
102
|
+
modelKey: string;
|
|
103
|
+
/**
|
|
104
|
+
* 属性标识(不是所有场景都有)
|
|
105
|
+
*
|
|
106
|
+
* @author zhanghanrui
|
|
107
|
+
* @date 2024-07-05 11:07:25
|
|
108
|
+
* @type {string}
|
|
109
|
+
*/
|
|
110
|
+
fieldId?: string;
|
|
111
|
+
/**
|
|
112
|
+
* 属性标识(不是所有场景都有)
|
|
113
|
+
*
|
|
114
|
+
* @author zhanghanrui
|
|
115
|
+
* @date 2024-06-29 17:06:47
|
|
116
|
+
* @type {string}
|
|
117
|
+
*/
|
|
118
|
+
fieldKey?: string;
|
|
119
|
+
/**
|
|
120
|
+
* 属性名称
|
|
121
|
+
*
|
|
122
|
+
* @author zhanghanrui
|
|
123
|
+
* @date 2024-06-29 19:06:24
|
|
124
|
+
* @type {string}
|
|
125
|
+
*/
|
|
126
|
+
fieldLabel?: string;
|
|
127
|
+
/**
|
|
128
|
+
* 给后台使用的 nodes 清单
|
|
129
|
+
*
|
|
130
|
+
* @author zhanghanrui
|
|
131
|
+
* @date 2024-06-29 17:06:41
|
|
132
|
+
* @type {INodeData[]}
|
|
133
|
+
*/
|
|
134
|
+
nodes: INodeData[];
|
|
135
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { LowCodeWidget } from '../../widget';
|
|
2
|
+
import { ButtonTypeGroup, operateSysEnums, sortTypeEnum } from '@gct-paas/core';
|
|
3
|
+
/** 卡片列表属性 */
|
|
4
|
+
export interface CardListProps extends LowCodeWidget.WidgetProps {
|
|
5
|
+
title: string;
|
|
6
|
+
model: string;
|
|
7
|
+
/**关联搜索 */
|
|
8
|
+
refSearch: string;
|
|
9
|
+
/**显示标题 */
|
|
10
|
+
showTitle: boolean;
|
|
11
|
+
/**支持拖拽 */
|
|
12
|
+
draggable: boolean;
|
|
13
|
+
/**排序字段 */
|
|
14
|
+
collation: {
|
|
15
|
+
collationField: string;
|
|
16
|
+
collationSort: sortTypeEnum;
|
|
17
|
+
}[];
|
|
18
|
+
datafilter: {
|
|
19
|
+
key: string;
|
|
20
|
+
value: string;
|
|
21
|
+
}[] | {
|
|
22
|
+
dataRule: string;
|
|
23
|
+
dataRuleConfig: string;
|
|
24
|
+
};
|
|
25
|
+
/**可见按钮数量 */
|
|
26
|
+
visibleButtons: number;
|
|
27
|
+
/**是否可以数据选择 */
|
|
28
|
+
rowSelection: boolean;
|
|
29
|
+
/**数据选择类型 */
|
|
30
|
+
rowSelectionType: string;
|
|
31
|
+
/**初始化加载 */
|
|
32
|
+
initLoad: boolean;
|
|
33
|
+
/**自定义数据源 */
|
|
34
|
+
customdataSource: boolean;
|
|
35
|
+
/**数据源配置 */
|
|
36
|
+
datasourceConfig: LowCodeWidget.JsEvent | null;
|
|
37
|
+
/** 布局方式 */
|
|
38
|
+
layout: {
|
|
39
|
+
label: 'top' | 'left';
|
|
40
|
+
inputBg: boolean;
|
|
41
|
+
inputAlign: 'left' | 'right';
|
|
42
|
+
};
|
|
43
|
+
/**名称支持宽度配置*/
|
|
44
|
+
hasLabelWidth?: boolean;
|
|
45
|
+
/**名称显示类型*/
|
|
46
|
+
labelType?: string;
|
|
47
|
+
/**名称显示宽度*/
|
|
48
|
+
labelWidth?: string | number;
|
|
49
|
+
/**名称显示样式*/
|
|
50
|
+
overLabelDisplay?: string;
|
|
51
|
+
}
|
|
52
|
+
/** 卡片列表头部左侧属性 */
|
|
53
|
+
export type CardHeaderLeftProps = LowCodeWidget.WidgetProps;
|
|
54
|
+
/** 卡片列表头部右侧属性 */
|
|
55
|
+
export type CardHeaderRightProps = LowCodeWidget.WidgetProps;
|
|
56
|
+
/** 卡片列表内容属性 */
|
|
57
|
+
export type CardContentProps = LowCodeWidget.WidgetProps;
|
|
58
|
+
/** 卡片列表操作按钮属性 */
|
|
59
|
+
export interface CardOpeBtnProps extends LowCodeWidget.WidgetProps {
|
|
60
|
+
/**标题 */
|
|
61
|
+
title: string;
|
|
62
|
+
/**二次确认 */
|
|
63
|
+
confirm: boolean;
|
|
64
|
+
confirmText: string;
|
|
65
|
+
/**内置事件 */
|
|
66
|
+
innerEvent: boolean;
|
|
67
|
+
/**系统事件类型 */
|
|
68
|
+
sysMethedType?: operateSysEnums;
|
|
69
|
+
linkPage: string;
|
|
70
|
+
/**事件名称 */
|
|
71
|
+
eventName: string;
|
|
72
|
+
icon: string;
|
|
73
|
+
iconColor: string;
|
|
74
|
+
size: string;
|
|
75
|
+
disabled: boolean;
|
|
76
|
+
btnType: ButtonTypeGroup;
|
|
77
|
+
type: string;
|
|
78
|
+
danger: boolean;
|
|
79
|
+
}
|
|
@@ -4,7 +4,7 @@ import { SearchWidgets } from './i-search-widget-props';
|
|
|
4
4
|
/** 表单容器属性 */
|
|
5
5
|
export interface FormProps extends LowCodeWidget.WidgetProps {
|
|
6
6
|
model?: string;
|
|
7
|
-
layout: 'horizontal' | 'vertical';
|
|
7
|
+
layout: 'horizontal' | 'vertical' | IObject;
|
|
8
8
|
/** 自定义字段集合 */
|
|
9
9
|
customFieldList?: IObject[];
|
|
10
10
|
/** 父模型字段选择 */
|
|
@@ -30,7 +30,7 @@ export interface FormProcessProps extends FormProps {
|
|
|
30
30
|
/** 描述列表属性 */
|
|
31
31
|
export interface DescriptionsProps extends LowCodeWidget.WidgetProps {
|
|
32
32
|
model?: string;
|
|
33
|
-
layout: 'horizontal' | 'vertical';
|
|
33
|
+
layout: 'horizontal' | 'vertical' | IObject;
|
|
34
34
|
column: number;
|
|
35
35
|
refSearch?: string;
|
|
36
36
|
/** 名称支持宽度配置 */
|
|
@@ -46,18 +46,32 @@ export interface DescriptionsProps extends LowCodeWidget.WidgetProps {
|
|
|
46
46
|
export interface SearchProps extends LowCodeWidget.WidgetProps {
|
|
47
47
|
model?: string;
|
|
48
48
|
/** 查询字段配置信息 */
|
|
49
|
-
fieldWidgets
|
|
49
|
+
fieldWidgets?: SearchWidgets[];
|
|
50
50
|
/** 最多显示个数 */
|
|
51
|
-
maxLength
|
|
51
|
+
maxLength?: number;
|
|
52
52
|
/** 单行显示个数 */
|
|
53
53
|
rowLength: number;
|
|
54
54
|
/** 对齐方式 */
|
|
55
|
-
alignment
|
|
55
|
+
alignment?: Exclude<AGLINE_ENUMS, AGLINE_ENUMS.BETWEEN>;
|
|
56
56
|
/** 自定义搜索规则 */
|
|
57
57
|
exp: string;
|
|
58
58
|
/** 自定义搜索条件 */
|
|
59
59
|
customHeader: boolean;
|
|
60
60
|
}
|
|
61
|
+
/** 快速搜索组件属性 */
|
|
62
|
+
export interface QuickSearchProps extends LowCodeWidget.WidgetProps {
|
|
63
|
+
model?: string;
|
|
64
|
+
/**查询字段配置信息 */
|
|
65
|
+
searchField: [];
|
|
66
|
+
scan: false;
|
|
67
|
+
placeholder: string;
|
|
68
|
+
/**自定义搜索规则 */
|
|
69
|
+
exp: string;
|
|
70
|
+
/**自定义搜索条件 */
|
|
71
|
+
customHeader: boolean;
|
|
72
|
+
/**获取焦点 */
|
|
73
|
+
getFocus: boolean;
|
|
74
|
+
}
|
|
61
75
|
/** 审批历史组件属性 */
|
|
62
76
|
export interface ApprovalHistoryProps extends LowCodeWidget.WidgetProps {
|
|
63
77
|
refForm?: string;
|
|
@@ -120,6 +120,12 @@ export interface SearchBizProcess extends LowCodeWidget.SearchSchema {
|
|
|
120
120
|
showSearch: boolean;
|
|
121
121
|
searchField: string[];
|
|
122
122
|
refModelType?: EntityModelTypeEnum;
|
|
123
|
+
customMenu: boolean;
|
|
124
|
+
customMenuFilter: string[] | number[] | boolean[];
|
|
125
|
+
customMenuOptions: {
|
|
126
|
+
key: string;
|
|
127
|
+
value: string;
|
|
128
|
+
}[];
|
|
123
129
|
} & LowCodeWidget.SearchSchema['props'];
|
|
124
130
|
}
|
|
125
131
|
/** 所有搜索组件类型联合 */
|
|
@@ -7,7 +7,7 @@ export interface DataTableProps extends LowCodeWidget.WidgetProps {
|
|
|
7
7
|
/** 关联搜索 */
|
|
8
8
|
refSearch: string;
|
|
9
9
|
/** 自定义搜索规则 */
|
|
10
|
-
exp
|
|
10
|
+
exp?: string;
|
|
11
11
|
showPagination?: boolean;
|
|
12
12
|
pageSize: number;
|
|
13
13
|
/** 表头排序功能,默认关闭 */
|
|
@@ -43,13 +43,13 @@ export interface DataTableProps extends LowCodeWidget.WidgetProps {
|
|
|
43
43
|
/** 斑马线 */
|
|
44
44
|
stripe: boolean;
|
|
45
45
|
/** 编辑方式 */
|
|
46
|
-
editMethods
|
|
46
|
+
editMethods?: TableEditingMethodEnum;
|
|
47
47
|
/** 表格序号 */
|
|
48
48
|
serialNumber: boolean;
|
|
49
49
|
/** 按钮可见数量 */
|
|
50
|
-
visibleButtons
|
|
50
|
+
visibleButtons?: number;
|
|
51
51
|
/** 数据源类型(实时数据、默认数据) */
|
|
52
|
-
datasourceType
|
|
52
|
+
datasourceType?: DatasourceTypeEnum;
|
|
53
53
|
/** 数据源配置 */
|
|
54
54
|
datasourceConfig: LowCodeWidget.JsEvent | null;
|
|
55
55
|
/** 自定义数据源 */
|
|
@@ -60,10 +60,10 @@ export interface DataTableProps extends LowCodeWidget.WidgetProps {
|
|
|
60
60
|
productionScheduling?: boolean;
|
|
61
61
|
/** 排产试算排序字段信息 */
|
|
62
62
|
productionSchedulingSort?: IData[];
|
|
63
|
-
gridType
|
|
63
|
+
gridType?: TableTypeEnum;
|
|
64
64
|
subModelField?: string;
|
|
65
65
|
/** 多级表头 */
|
|
66
|
-
levelHeaderGrouping?:
|
|
66
|
+
levelHeaderGrouping?: IObject[];
|
|
67
67
|
/** 多级表头开关 */
|
|
68
68
|
multiLevelHeader?: boolean;
|
|
69
69
|
}
|