// 引入组件 import ImageShow from "@/components/subComponents/ImageShow.vue"; import PwInput from "@/components/subComponents/PwInput.vue"; // 创建个空对象 // 设置安装方法 ImageShow.install = function(Vue) { Vue.component("ImageShow", ImageShow); }; PwInput.install = function(Vue) { Vue.component("PwInput", PwInput); }; // 导出对象 export { ImageShow, PwInput };