- is as follows:
suppose that the scopeDfaultValue value passed to the this.selectScopes child component is the value of the first object of the this.selectScopes, when the child component triggers the event selectItemChange to be passed to the parent component, and in selectItemChange, the array this.selectScopes is replaced, then will the parent component pass to the child component value be affected?
Please explain why in detail. Thank you very much!
h("PopTipTransfer", {
props: {
scopeDefaultValue: this.selectScopes[0].value **
},
on: {
selectItemChange: (itemValue) => {
for (let item of this.itemTypes) {
if (itemValue === item.value) {
this.selectScopes = item.scopes;
}
}
},
}
}