标签: vue.js
我有2个组件,一个组件是我主要组件的子组件。
例如:
<component-one> <template v-slot:slot-one> <component-two ref="example"></component-two> </template> </component-one>
但是,当我运行this.$refs时,看不到该组件的example引用。我尝试将其放入this.$nextTick(() => {});
this.$refs
example
this.$nextTick(() => {});