customComponents.ts 412 B

1234567891011121314
  1. import type { App } from 'vue'
  2. import { GoSkeleton } from '@/components/GoSkeleton'
  3. import { GoLoading } from '@/components/GoLoading'
  4. import { SketchRule } from 'vue3-sketch-ruler'
  5. /**
  6. * 全局注册自定义组件
  7. * @param app
  8. */
  9. export function setupCustomComponents(app: App) {
  10. app.component('GoSkeleton', GoSkeleton)
  11. app.component('GoLoading', GoLoading)
  12. app.component('SketchRule', SketchRule)
  13. }