Detailed explanation of Vue ref ($refs) usage
ref acts on ordinary elements, use this.ref.name to get dom elements. ref acts on sub-components, use this.ref.name to get the component instance, you can use all methods of the component, use v-for and ref to get a set of data or dom node