Description: Once you define a global component, you don’t need to import it on the page or register it. You write component tags and pass parameters in the template
A. First create a file directory, such as Component, to summarize the global components you need to create Write the content and style you need in the global component c. Then introduce it in the top-level file, SRC /main.js D. Once the import is complete, define the plug-in with vue. use, pass in an object with the install method e. This method takes an entry and returns a vue F. The global component is then defined via vue.com Ponent, as shown belowCopy the code