Skip to content

Commit

Permalink
fix(util): import and register components
Browse files Browse the repository at this point in the history
  • Loading branch information
bre97-web committed Mar 5, 2024
1 parent 8609df3 commit d6e59e0
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions packages/vue-components/utils/register-components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ import {
Card,
ContainerStyleProvider,
Window,
Radio,
Switch,
LinearProgress,
CircularProgress,
Chip,
} from '../lib'
import type { App, Component } from 'vue'

Expand All @@ -31,17 +36,22 @@ export const RegisterAllComponents = ({
instance.component('Am-Elevation', Elevation)
instance.component('Am-Button', Button)
instance.component('Am-Ripple', Ripple)
instance.component('Am-Theme-Provider', ThemeProvider)
instance.component('Am-ThemeProvider', ThemeProvider)
instance.component('Am-Typography', Typography)
instance.component('Am-Icon', Icon)
instance.component('Am-Divider', Divider)
instance.component('Am-Icon-Button', IconButton)
instance.component('Am-IconButton', IconButton)
instance.component('Am-Fab', Fab)
instance.component('Am-Checkbox', Checkbox)
instance.component('Am-Navigation-Bar', NavigationBar)
instance.component('Am-Navigation-Tab', NavigationTab)
instance.component('Am-NavigationBar', NavigationBar)
instance.component('Am-NavigationTab', NavigationTab)
instance.component('Am-Card', Card)
instance.component('Am-Container-Style-Provider', ContainerStyleProvider)
instance.component('Am-ContainerStyleProvider', ContainerStyleProvider)
instance.component('Am-Radio', Radio)
instance.component('Am-Switch', Switch)
instance.component('Am-LinearProgress', LinearProgress)
instance.component('Am-CircularProgress', CircularProgress)
instance.component('Am-Chip', Chip)
}
}) as any

Expand Down Expand Up @@ -71,7 +81,7 @@ export const RegisterComponents = (...components: Component[]) => ({
*/
export const RegisterAllLayouts = ({
install: (instance: App) => {
instance.component('Am-Window-Layout', Window)
instance.component('Am-WindowLayout', Window)
}
}) as any

Expand Down

0 comments on commit d6e59e0

Please sign in to comment.