https://v3.cn.vuejs.org/api/special-attributes.html#ref<!-- 当动态绑定时,我们可以将 ref 定义为回调函数,显式地传递元素或组件实例 --> <child-component :ref="(el) => child = el"></child-component>