vue3写法
import myComponent from './components/my-component';
const vueComInstance = Vue.createApp(myComponent, {myProps: value})
vueComInstance.mount('#idName');
vue2写法
import myComponent from './components/my-component';
const vueComInstance = new Vue(myComponent);
vueComInstance.myProps = value;
vueComInstance.$mount('#idName');