Skip to content

Commit 5ff213a

Browse files
authored
Merge pull request #79 from codingapi/dev
Dev
2 parents 44dd5d3 + 3393127 commit 5ff213a

2 files changed

Lines changed: 28 additions & 3 deletions

File tree

designs/view-plugin/DESIGN.md

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,42 @@ ViewBindPlugin.getInstance().register('MyView',MyView)
2424

2525
* 表单渲染
2626
```
27-
export interface FormViewProps {
27+
28+
/**
29+
* 合并表单操作数据
30+
*/
31+
export interface FormData{
2832
/** 表单操控对象 */
2933
form: FormInstance;
34+
/** 待办数据 */
35+
data: FlowTodo;
36+
}
37+
38+
/**
39+
* 流程表单视图属性
40+
*/
41+
export interface FormViewProps {
42+
/** 流程合并 */
43+
mergeable:boolean;
44+
/** 合并表单操控对象 */
45+
formList?:FormData[];
46+
/** 表单操控对象 */
47+
form?: FormInstance;
48+
/** 待办数据 */
49+
data?: FlowTodo;
3050
/** 表单数据更新事件 */
3151
onValuesChange?: (values: any) => void;
52+
/** 当合并流程选中了流程记录的回掉 **/
53+
onMergeRecordIdsSelected?: (recordIds: number[]) => void;
3254
/** 表单元数据对象 */
3355
meta: FlowForm;
56+
/** 表单字段权限,为空时全部可写*/
57+
fieldPermissions: FieldPermission[];
3458
/** 是否预览模式 */
35-
review:boolean;
59+
review: boolean;
3660
}
3761
62+
3863
```
3964
表单选择的key对应流程节点设置的view名称,流程引擎对default进行了模型的渲染支持。
4065

flow-frontend

Submodule flow-frontend updated 19 files

0 commit comments

Comments
 (0)