import { App } from 'vue' import PowerSwitch from './src/powerSwitch.vue' // 定义 install 方法, App 作为参数 PowerSwitch.install = (app: App): void => { app.component(PowerSwitch.name, PowerSwitch) } export default PowerSwitch