If (this. EditedIndex===1) {
Enclosing isParentNode=true;
Enclosing the editable=false;
} else {
If (item. Pid===0) {
Enclosing isParentNode=true;
} else {
Enclosing isParentNode=false;
Enclosing the editable=false;
}
}
CodePudding user response:
Enclosing isParentNode=this. EditedIndex===1 | | item. The pid===0? true : false;Enclosing the editable=this. EditedIndex===1 | | item. The pid!==0? False: enclosing the editable.
CodePudding user response:
IsParentNode=(enclosing editedIndex!=1 & amp; & The item pid!=0)? False: trueCodePudding user response: