@npmxiaowu/h-ui-plus
Version:
Vue3 中基于Element-plus二次封装基础组件文档
135 lines (134 loc) • 2.72 kB
TypeScript
/**
* 已办理节点
* @param {*} def
* @returns
*/
export function makeStartNode(def: any): {
shape: string;
data: {
type: string;
};
attrs: {
label: {
text: string;
fill: string;
};
body: {
rx: number;
ry: number;
stroke: string;
fill: string;
};
};
nodeDef: any;
};
/**
* 当前节点
* @param {*} def
* @returns
*/
export function makeEndNode(def: any): {
shape: string;
data: {
type: string;
};
attrs: {
label: {
text: string;
fill: string;
};
body: {
rx: number;
ry: number;
stroke: string;
fill: string;
};
};
nodeDef: any;
};
/**
* 未流转节点
* @param {*} def
* @returns
*/
export function makeGenNode(def: any): {
shape: string;
data: {
type: string;
};
attrs: {
label: {
text: string;
fill: string;
};
body: {
rx: number;
ry: number;
stroke: string;
fill: string;
};
};
nodeDef: any;
};
/**
* 节点数据
* @param {*} pk 服务ID
* @param {*} nodeCode 节点id
* @param {*} nodeName 节点名称
* @returns
*/
export function _nodeDef(nodeName: any, nodeType: any): {
adjProcessSelect: string;
serialFlow: number;
codeName: string;
name: any;
resources: {
processRelativeDepartment: never[];
role: never[];
specificDepartment: never[];
user: never[];
userRelativeDepartment: never[];
extensionOptControl: string;
}[];
flag: string;
type: any;
variables: never[];
formControl: never[];
fileControl: never[];
buttonControl: never[];
dataUpdate: never[];
carbonCopyData: {};
operations: never[];
key: string;
defaultSelectUsers: boolean;
description: string;
enabled: boolean;
selectSingleUser: boolean;
url: string;
autoTransfer: string;
isCompletedSendMsg: boolean;
operationCompleteCondition: string;
carbonCopy: {
assignRoleScope: never[];
assignNodesName: string;
assignNodesKey: string;
};
opinionType: string;
opinionName: string;
opinionRequired: string;
};
export function _edgeDef(edge: any): {
name: string;
description: string;
priority: string;
fromActivity: any;
toActivity: any;
fromNode: any;
toNode: any;
key: any;
condition: string;
variables: never[];
functionType: string;
isNewLine: boolean;
allowBack: string;
};