| 
						
						
							
								
							
						
						
					 | 
					@ -9,6 +9,8 @@ import { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					} from '@ant-design/icons'; | 
					 | 
					 | 
					} from '@ant-design/icons'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import XIcon from '../../../../components/xIcon'; | 
					 | 
					 | 
					import XIcon from '../../../../components/xIcon'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import shortcuts from '../../../../common/shortcuts'; | 
					 | 
					 | 
					import shortcuts from '../../../../common/shortcuts'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					import { Graph } from '@antv/x6'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					import { getSelectedNodes } from '../../../../utils/flowChartUtils'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					const nodeMenuConfig = [ | 
					 | 
					 | 
					const nodeMenuConfig = [ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  { | 
					 | 
					 | 
					  { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -49,14 +51,20 @@ const nodeMenuConfig = [ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    key: 'editCode', | 
					 | 
					 | 
					    key: 'editCode', | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    title: '编辑代码', | 
					 | 
					 | 
					    title: '编辑代码', | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    icon: <FormOutlined />, | 
					 | 
					 | 
					    icon: <FormOutlined />, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					    handler() { | 
					 | 
					 | 
					    disabled(flowChart: Graph) { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					      // TODO
 | 
					 | 
					 | 
					      return getSelectedNodes(flowChart).length !== 1; | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    }, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    handler(flowChart: Graph) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					      flowChart.trigger('settingBar:clickEditCode'); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    } | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  }, | 
					 | 
					 | 
					  }, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  { | 
					 | 
					 | 
					  { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    key: 'executeCode', | 
					 | 
					 | 
					    key: 'executeCode', | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    title: '执行代码', | 
					 | 
					 | 
					    title: '执行代码', | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    icon: <CodeOutlined />, | 
					 | 
					 | 
					    icon: <CodeOutlined />, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    disabled(flowChart: Graph) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					      return getSelectedNodes(flowChart).length !== 1; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    }, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    handler() { | 
					 | 
					 | 
					    handler() { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      // TODO
 | 
					 | 
					 | 
					      // TODO
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    } | 
					 | 
					 | 
					    } | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |