The dynamic reference components are as follows:
If this is the case, the method undefined will appearthis.$refs.customcom.nodechange(data);
The right thing to do is to get the index of the ref that is currently invoked and call it again.this.$refs.customcom[index].nodechange(data);