@@ -6,52 +6,66 @@ import { INotifierSettings, NotifierPanel } from "./setterss/NotifierPanel";
6
6
import { IStartSettings , StartPanel } from "./setterss/StartPanel" ;
7
7
8
8
export const materialUis : IMaterialUIs = {
9
+ //发起人物料UI
9
10
[ NodeType . approver ] : {
11
+ //节点内容区,只实现了空逻辑,具体过几天实现
10
12
viewContent : ( node : IWorkFlowNode < IApproverSettings > , { t } ) => {
11
13
return < ContentPlaceholder secondary text = { t ( "pleaseChooseApprover" ) } />
12
14
} ,
13
- settingsPanel : ApproverPanel ,
15
+ //属性面板
16
+ settersPanel : ApproverPanel ,
17
+ //校验,目前仅实现了空校验,其它校验过几天实现
14
18
validate : ( node : IWorkFlowNode < IApproverSettings > , { t } ) => {
15
19
if ( ! node . config ) {
16
20
return ( t ( "noSelectedApprover" ) )
17
21
}
18
22
return true
19
23
}
20
24
} ,
25
+ //办理人节点
21
26
[ NodeType . audit ] : {
27
+ //节点内容区
22
28
viewContent : ( node : IWorkFlowNode < IAuditSettings > , { t } ) => {
23
29
return < ContentPlaceholder secondary text = { t ( "pleaseChooseDealer" ) } />
24
30
} ,
25
- settingsPanel : AuditPanel ,
31
+ //属性面板
32
+ settersPanel : AuditPanel ,
33
+ //校验函数
26
34
validate : ( node : IWorkFlowNode < IApproverSettings > , { t } ) => {
27
35
if ( ! node . config ) {
28
36
return t ( "noSelectedDealer" )
29
37
}
30
38
return true
31
39
}
32
40
} ,
41
+ //条件分支节点的分支子节点
33
42
[ NodeType . branch ] : {
43
+ //节点内容区
34
44
viewContent : ( node : IWorkFlowNode < IConditionSettings > , { t } ) => {
35
45
return < ContentPlaceholder text = { t ( "pleaseSetCondition" ) } />
36
46
} ,
37
- settingsPanel : ConditionPanel ,
47
+ //属性面板
48
+ settersPanel : ConditionPanel ,
49
+ //校验函数
38
50
validate : ( node : IWorkFlowNode < IApproverSettings > , { t } ) => {
39
51
if ( ! node . config ) {
40
52
return t ( "noSetCondition" )
41
53
}
42
54
return true
43
55
}
44
56
} ,
57
+ //通知人节点
45
58
[ NodeType . notifier ] : {
46
59
viewContent : ( node : IWorkFlowNode < INotifierSettings > , { t } ) => {
47
60
return < ContentPlaceholder text = { t ( "pleaseChooseNotifier" ) } />
48
61
} ,
49
- settingsPanel : NotifierPanel ,
62
+ settersPanel : NotifierPanel ,
50
63
} ,
64
+ //发起人节点
51
65
[ NodeType . start ] : {
52
66
viewContent : ( node : IWorkFlowNode < IStartSettings > , { t } ) => {
53
67
return < ContentPlaceholder text = { t ( "allMember" ) } />
54
68
} ,
55
- settingsPanel : StartPanel ,
69
+ settersPanel : StartPanel ,
56
70
} ,
57
71
}
0 commit comments