import type { App } from 'vue';

import { setupDirective } from '@/directive';
import { setUpRouter } from '@/router';
import { setupStore } from '@/store';

export default {
  install(app: App<Element>) {
    // 设置路由
    setUpRouter(app);
    // 设置状态管理
    setupStore(app);
    // 设置指令
    setupDirective(app);
  },
};
