index.ts 528 Bytes
import type { App } from 'vue';

import {
  Alert as AAlert,
  Button as AButton,
  Empty as AEmpty,
  Select as ASelect,
} from 'ant-design-vue';

import { GhostButton } from './button';

/**
 * 全局组件注册(业务页大量使用 a-alert / a-select / a-empty,未启用按需 resolver 时需在此注册)
 */
export function setupGlobalComponent(app: App) {
  app.use(AButton);
  app.use(AAlert);
  app.use(AEmpty);
  app.use(ASelect);
  // 表格操作列专用按钮
  app.component('GhostButton', GhostButton);
}