Flowchart.js鎬庝箞鍒涘缓鍏锋湁瀛愭祦绋嬬殑鑺傜偣
瑕佸湪Flowchart.js涓垱寤哄叿鏈夊瓙娴佺▼鐨勮妭鐐癸紝鍙互閫氳繃灏嗚妭鐐圭殑"subprocess"灞炴€ц缃负true鏉ュ疄鐜般€備笅闈㈡槸涓€涓畝鍗曠殑绀轰緥浠g爜锛?/p>
var chart = new Flowchart({
chart: {
container: "#myChart"
},
node: {
HTMLclass: "nodeStyle"
},
nodes: {
Start: {
shape: "circle",
text: "Start",
subprocess: true,
HTMLclass: "startNodeStyle"
},
Process1: {
text: "Process 1"
},
Process2: {
text: "Process 2"
},
End: {
shape: "circle",
text: "End"
}
},
links: {
Start: ["Process1"],
Process1: ["Process2"],
Process2: ["End"]
}
});
鍦ㄤ笂闈㈢殑绀轰緥涓紝鎴戜滑鍒涘缓浜嗕竴涓叿鏈夊瓙娴佺▼鐨勮妭鐐?quot;Start"锛屽苟閫氳繃灏嗗叾"subprocess"灞炴€ц缃负true鏉ヨ〃绀鸿鑺傜偣鍏锋湁瀛愭祦绋嬨€傜劧鍚庯紝鎴戜滑瀹氫箟浜嗕竴浜涘叾浠栬妭鐐瑰拰杩炴帴瀹冧滑鐨勯摼鎺ャ€傚湪瀹為檯椤圭洰涓紝浣犲彲浠ユ牴鎹渶瑕佸畾涔夋洿澶氱殑鑺傜偣鍜岄摼鎺ワ紝浠ュ垱寤轰竴涓鏉傜殑娴佺▼鍥俱€?/p>
相关问答