|
@@ -75,6 +75,13 @@ export class SGraphSelectContainer extends SObject {
|
|
if (this.itemList[i] == item) {
|
|
if (this.itemList[i] == item) {
|
|
this.itemList[i].selected = false;
|
|
this.itemList[i].selected = false;
|
|
this.itemList.splice(i, 1);
|
|
this.itemList.splice(i, 1);
|
|
|
|
+ this.$emit("listChange", this.itemList);
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ // 多选时,父级item需要一致
|
|
|
|
+ if (this.itemList.length) {
|
|
|
|
+ if (item.parent != this.itemList[0].parent) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
}
|