@npmxiaowu/h-ui-plus
Version:
Vue3 中基于Element-plus二次封装基础组件文档
636 lines (635 loc) • 23.3 kB
TypeScript
export default _sfc_main;
declare namespace _sfc_main {
namespace props {
namespace resourceId {
export const type: StringConstructor;
const _default: string;
export { _default as default };
}
namespace resourceYear {
const type_1: NumberConstructor;
export { type_1 as type };
const _default_1: string;
export { _default_1 as default };
}
namespace operateControlParams {
const type_2: ObjectConstructor;
export { type_2 as type };
const _default_2: {};
export { _default_2 as default };
}
}
const emits: string[];
function setup(__props: any, { expose: __expose, emit: __emit }: {
expose: any;
emit: any;
}): {
props: any;
emits: any;
dataList: import("vue").Ref<any, any>;
defaultProps: import("vue").Ref<{
children: string;
label: string;
isLeaf: string;
}, {
children: string;
label: string;
isLeaf: string;
} | {
children: string;
label: string;
isLeaf: string;
}>;
treeData: import("vue").Ref<never[], never[]>;
graph: import("vue").Ref<any, any>;
stencil: import("vue").Ref<any, any>;
nowRouter: import("vue").Ref<string, string>;
procData: import("vue").Ref<{}, {}>;
modifyDetailDialogRef: import("vue").Ref<any, any>;
opinionDialogRef: import("vue").Ref<any, any>;
sendReadDialogRef: import("vue").Ref<any, any>;
ajustFlowDialogRef: import("vue").Ref<any, any>;
processId: import("vue").Ref<string, string>;
treeRef: import("vue").Ref<any, any>;
showCancleBtn: import("vue").ComputedRef<any>;
showWithdrawBtn: import("vue").ComputedRef<any>;
showSendToReadBtn: import("vue").ComputedRef<any>;
showAjustFlowBtn: import("vue").ComputedRef<any>;
getProcessTraceTreeApi: () => Promise<void>;
getProcessTraceDetailApi: () => Promise<void>;
getProcessDiagramApi: () => Promise<void>;
handleNodeClick: (data: any, node: any, component: any) => void;
initData: () => void;
loadStencil: () => void;
initStencil: () => void;
initGraph: () => void;
openOpinionDialog: (row: any) => void;
openModifyDetailDialog: (row: any) => void;
openSendReadDialog: () => void;
openAjustFlowDialog: () => void;
cancleProcess: () => void;
withdrawProcess: () => void;
closeDialog: () => void;
onMounted: (hook: any, target?: import("vue").ComponentInternalInstance | null | undefined) => void;
ref: typeof ref;
nextTick: typeof nextTick;
computed: typeof import("@vue/reactivity").computed;
readonly Graph: typeof Graph;
readonly Shape: typeof Shape;
readonly Addon: typeof Addon;
readonly Node: typeof Node;
readonly Edge: typeof Edge;
readonly registAttrs: {
grid: boolean;
panning: boolean;
mousewheel: {
enabled: boolean;
zoomAtMousePosition: boolean;
modifiers: string;
minScale: number;
maxScale: number;
};
routers: {
defaultRouter: {
name: string;
};
selfLoopRouter: {
name: string;
args: {
padding: number;
};
};
guaixianRouter: {
name: string;
};
zhengguanxiRouter: {
name: string;
args: {
offset: string;
};
};
xieguanxiRouter: {
name: string;
args: {
offset: number;
};
};
zhinengRouter: {
name: string;
args: {
startDirections: string[];
endDirections: string[];
};
};
ditieRouter: {
name: string;
args: {
startDirections: string[];
endDirections: string[];
};
};
rightSdieRouter: {
name: string;
args: {
side: string;
padding: number;
};
};
leftSideRouter: {
name: string;
args: {
side: string;
padding: number;
};
};
};
connector: {
name: string;
args: {
radius: number;
};
};
anchor: string;
allowBlank: boolean;
allowLoop: boolean;
highlighting: {
magnetAdsorbed: {
name: string;
args: {
attrs: {
fill: string;
stroke: string;
};
};
};
};
resizing: boolean;
rotating: boolean;
selecting: {
enabled: boolean;
showNodeSelectionBox: boolean;
showEdgeSelectionBox: boolean;
};
snapline: boolean;
keyboard: boolean;
clipboard: boolean;
history: boolean;
curNodeAttrs: {
body: {
strokeWidth: number;
stroke: string;
fill: string;
};
text: {
fontSize: number;
fill: string;
};
};
addedNodeAttrs: {
body: {
strokeWidth: number;
fill: string;
};
text: {
fontSize: number;
fill: string;
};
};
nodeSelectedAttrs: {
body: {
strokeWidth: number;
stroke: string;
};
};
norNodeBody: {
body: {
strokeWidth: number;
stroke: string;
fill: string;
};
};
edge: {
attrs: {
line: {
stroke: string;
strokeWidth: number;
strokeDasharray: number;
targetMarker: {
name: string;
width: number;
height: number;
};
};
};
zIndex: number;
vertices: never[];
tools: {
name: string;
addable: boolean;
args: {
attrs: {
fill: string;
};
};
};
};
edgeAttrs: {
selected: {
line: {
strokeWidth: number;
stroke: string;
strokeDasharray: number;
targetMarker: {
name: string;
width: number;
height: number;
};
};
};
connected: {
line: {
strokeWidth: number;
stroke: string;
strokeDasharray: number;
targetMarker: {
name: string;
width: number;
height: number;
};
};
};
strokeSelected: {
line: {
strokeWidth: number;
stroke: string;
strokeDasharray: number;
targetMarker: {
name: string;
width: number;
height: number;
};
};
};
strokeUnselected: {
line: {
strokeWidth: number;
stroke: string;
strokeDasharray: number;
targetMarker: {
name: string;
width: number;
height: number;
};
};
};
};
tools: {
name: string;
args: {
attrs: {
fill: string;
width: number;
height: number;
x: number;
y: number;
rx: number;
ry: number;
stroke: string;
'stroke-width': number;
};
addable: boolean;
removable: boolean;
};
};
tools2: {
name: string;
args: {
addable: boolean;
removable: boolean;
removeRedundancies: boolean;
attrs: {
fill: string;
};
};
};
ports: {
groups: {
top: {
attrs: {
circle: {
r: number;
magnet: boolean;
stroke: string;
strokeWidth: number;
fill: string;
style: {
visibility: string;
};
};
};
position: {
name: string;
};
};
};
items: {
group: string;
id: string;
args: {
x: string;
y: string;
};
attrs: {
circle: {
r: number;
magnet: boolean;
stroke: string;
strokeWidth: number;
fill: string;
style: {
visibility: string;
};
};
};
}[];
};
stencil: {
rect: {
inherit: string;
width: number;
height: number;
attrs: {
body: {
strokeWidth: number;
stroke: string;
fill: string;
};
text: {
fill: string;
};
};
};
text: {
inherit: string;
width: number;
height: number;
attrs: {
body: {
rx: number;
ry: number;
fill: string;
stroke: string;
};
};
};
textdark: {
inherit: string;
width: number;
height: number;
attrs: {
body: {
rx: number;
ry: number;
fill: string;
stroke: string;
'background-color': string;
};
};
};
polygon: {
inherit: string;
width: number;
height: number;
attrs: {
body: {
strokeWidth: number;
stroke: string;
fill: string;
};
text: {
fontSize: number;
fill: string;
};
};
};
};
nodeBodyAttrs: {
genTextAttr: {
body: {
stroke: string;
fill: string;
};
text: {
fill: string;
};
};
genTextDarkAttr: {
body: {
stroke: string;
fill: string;
};
text: {
fill: string;
};
};
startAttr: {
body: {
stroke: string;
fill: string;
};
};
endAttr: {
body: {
stroke: string;
fill: string;
};
};
selfEndAttr: {
body: {
stroke: string;
fill: string;
};
};
polygonAttr: {
body: {
stroke: string;
fill: string;
};
};
genNodeAttr: {
body: {
stroke: string;
fill: string;
};
};
};
};
readonly _nodeDef: typeof _nodeDef;
readonly _edgeDef: typeof _edgeDef;
readonly makeStartNode: typeof makeStartNode;
readonly makeEndNode: typeof makeEndNode;
readonly makeGenNode: typeof makeGenNode;
modifyDetailDialog: {
emits: string[];
setup(__props: any, { expose: __expose, emit: __emit }: {
expose: any;
emit: any;
}): {
emit: any;
activeName: import("vue").Ref<never[], never[]>;
visible: import("vue").Ref<boolean, boolean>;
dataList: import("vue").Ref<{
id: number;
creatorUserName: string;
createTime: string;
result: {
description: string;
oldValue: string;
newValue: string;
}[];
}[], {
id: number;
creatorUserName: string;
createTime: string;
result: {
description: string;
oldValue: string;
newValue: string;
}[];
}[] | {
id: number;
creatorUserName: string;
createTime: string;
result: {
description: string;
oldValue: string;
newValue: string;
}[];
}[]>;
init: (activityId: any) => void;
getData: (activityId: any) => void;
handleCancel: () => void;
ref: typeof ref;
readonly getCurrentOpinion: any;
};
};
opinionDailog: {
emits: string[];
setup(__props: any, { expose: __expose, emit: __emit }: {
expose: any;
emit: any;
}): {
emit: any;
visible: import("vue").Ref<boolean, boolean>;
dataList: import("vue").Ref<never[], never[]>;
init: (activityId: any) => void;
getData: (activityId: any) => void;
handleCancel: () => void;
ref: typeof ref;
readonly getCurrentOpinion: any;
};
};
sendReadDialog: {
props: {
processId: {
type: StringConstructor;
default: string;
};
resourceId: {
type: StringConstructor;
default: string;
};
};
setup(__props: any, { expose: __expose }: {
expose: any;
}): {
props: any;
visible: import("vue").Ref<boolean, boolean>;
activeName: import("vue").Ref<string, string>;
sendDataList: import("vue").Ref<never[], never[]>;
sendOptionsDataList: import("vue").Ref<never[], never[]>;
loading: import("vue").Ref<boolean, boolean>;
init: () => void;
getData: () => Promise<void>;
handleRefresh: () => void;
handleClose: () => void;
ref: typeof ref;
readonly Refresh: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
readonly Close: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
readonly getReadList: any;
readonly getReadOpinionList: any;
};
};
ajustFlowDialog: {
props: {
processId: {
type: StringConstructor;
default: string;
};
resourceId: {
type: StringConstructor;
default: string;
};
resourceYear: {
type: NumberConstructor;
default: string;
};
importParams: {
type: ObjectConstructor;
default: {};
};
};
setup(__props: any, { expose: __expose }: {
expose: any;
}): {
props: any;
visible: import("vue").Ref<boolean, boolean>;
selectedNodeValue: import("vue").Ref<string, string>;
nodeDataList: import("vue").Ref<never[], never[]>;
opinionData: import("vue").Ref<string, string>;
toUserName: import("vue").Ref<string, string>;
dialogShow: import("vue").Ref<boolean, boolean>;
Updatev: import("vue").Ref<boolean, boolean>;
inputv: import("vue").Ref<string, string>;
switchv: import("vue").Ref<boolean, boolean>;
userTreeDataList: import("vue").Ref<never[], never[]>;
userSelectedDataList: import("vue").Ref<never[], never[]>;
selectType: import("vue").Ref<string, string>;
defaultExpandAll: import("vue").Ref<boolean, boolean>;
init: () => void;
resetFormData: () => void;
getNodeData: () => Promise<void>;
getIconColor: (item: any) => "green" | "red" | "blue";
handleNodeChange: () => void;
openUserDialog: () => Promise<void>;
confirmCallback: (data: any) => Promise<void>;
filterUsers: (data: any) => any[];
handleConfirm: () => void;
handleCancel: () => void;
readonly List: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
readonly getProcessNodeList: any;
readonly getNodeResource: any;
readonly moveTo: any;
ref: typeof ref;
readonly ElMessage: import("element-plus/es/utils/index.js").SFCInstallWithContext<import("element-plus").Message>;
};
};
readonly getProcessTraceTree: any;
readonly getProcessTraceDetail: any;
readonly getProcessDiagram: any;
readonly withdrawProcessApi: any;
readonly cancleProcessApi: any;
};
}
import { ref } from "@vue/runtime-core";
import { nextTick } from "@vue/runtime-core";
import { Graph } from "@antv/x6/lib/graph/graph.js";
import { Shape } from "@antv/x6";
import { Addon } from "@antv/x6";
import { Node } from "@antv/x6/lib/model/node.js";
import { Edge } from "@antv/x6/lib/model/edge.js";
import { _nodeDef } from "../flow/config/fieldSetting.js";
import { _edgeDef } from "../flow/config/fieldSetting.js";
import { makeStartNode } from "../flow/config/fieldSetting.js";
import { makeEndNode } from "../flow/config/fieldSetting.js";
import { makeGenNode } from "../flow/config/fieldSetting.js";