-
The
- onPoperShow function uses ref to get the loaded component PopTipTransfer, to call the method through the acquired subcomponent. It didn"t work out.
- subcomponent PopTipTransfer ref is named pop
render: (h, params) => {
return h("div", [
h(PopTipTransfer, {
ref: "pop",
props: {
visible: this.poptipTransferVisible
},
on: {
onPopperShow: (value) => {
this.$nextTick(() => {
console.log(this.$refs);
});
},
}
})
})
log is as follows, which only contains the components that I defined in the template template, but cannot be obtained by the pop component: