selectChange(selection, row) {
      // If there is row in the selection, it means it is selected, otherwise it is unselected
      if (selection.find(val => { return crud.getDataId(val) === crud.getDataId(row) })) {
        if (row.children) {
          row.children.forEach(val => {
            crud.getTable().toggleRowSelection(val, true)
            selection.push(val)
            if (val.children) {
              crud.selectChange(selection, val)
            }
          })
        }
      } else {
        crud.toggleRowSelection(selection, row)
      }
    }
/**
     * Used for multi-selection and single-selection packaging of tree form
     * @param selection
     * @param row
     */
Used for multi-selection and single-selection packaging of tree form
@param selection
@param row
Used for multi - selection and single - selection packaging of tree form @param selection @param row
selectChange(selection, row) {
      if (selection.find(val => { return crud.getDataId(val) === crud.getDataId(row) })) {
        if (row.children) {
          row.children.forEach(val => {
            crud.getTable().toggleRowSelection(val, true)
            selection.push(val)
            if (val.children) {
              crud.selectChange(selection, val)
            }
          })
        }
      } else {
        crud.toggleRowSelection(selection, row)
      }
    }
selectChange ( selection , row ) { if ( selection . find ( val => { return crud . getDataId ( val ) === crud . getDataId ( row ) } ) ) { if ( row . children ) { row . children . forEach ( val => { crud . getTable ( ) . toggleRowSelection ( val , true ) selection . push ( val ) if ( val . children ) { crud . selectChange ( selection , val ) } } ) } } else { crud . toggleRowSelection ( selection , row ) } }
Used for multi-selection and single-selection packaging of tree form
 @param selection
 @param row
Used for multi - selection and single - selection packaging of tree form @param selection @param row
// If there is row in the selection, it means it is selected, otherwise it is unselected