Blame view

泰额版/Food Labeling Management Code/Yi.Vben5.Vue3/apps/web-antd/src/components/global/index.ts 528 Bytes
83ccb207   杨鑫   最新
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  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);
  }