test tree
This commit is contained in:
		
							parent
							
								
									fd3eb2e065
								
							
						
					
					
						commit
						02605d2e98
					
				@ -65,6 +65,9 @@ const _sfc_main$1 = defineComponent({
 | 
				
			|||||||
      if (!node.isDisabled) {
 | 
					      if (!node.isDisabled) {
 | 
				
			||||||
        emit("node-click", node);
 | 
					        emit("node-click", node);
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					      if (props.showCheckbox) {
 | 
				
			||||||
 | 
					        node.isChecked = !node.isChecked;
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    function handleRowClick(node) {
 | 
					    function handleRowClick(node) {
 | 
				
			||||||
      if (!props.showLine) {
 | 
					      if (!props.showLine) {
 | 
				
			||||||
 | 
				
			|||||||
@ -17662,6 +17662,9 @@ const _sfc_main$K = defineComponent({
 | 
				
			|||||||
      if (!node.isDisabled) {
 | 
					      if (!node.isDisabled) {
 | 
				
			||||||
        emit("node-click", node);
 | 
					        emit("node-click", node);
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					      if (props.showCheckbox) {
 | 
				
			||||||
 | 
					        node.isChecked = !node.isChecked;
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    function handleRowClick(node) {
 | 
					    function handleRowClick(node) {
 | 
				
			||||||
      if (!props.showLine) {
 | 
					      if (!props.showLine) {
 | 
				
			||||||
 | 
				
			|||||||
@ -101,6 +101,9 @@ function handleTitleClick(node: TreeData) {
 | 
				
			|||||||
  if (!node.isDisabled) {
 | 
					  if (!node.isDisabled) {
 | 
				
			||||||
    emit("node-click", node);
 | 
					    emit("node-click", node);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					  if(props.showCheckbox){
 | 
				
			||||||
 | 
					    node.isChecked = !node.isChecked
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function handleRowClick(node: TreeData) {
 | 
					function handleRowClick(node: TreeData) {
 | 
				
			||||||
 | 
				
			|||||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user