Skip to content

Commit

Permalink
restore register components
Browse files Browse the repository at this point in the history
  • Loading branch information
smithoo committed Dec 19, 2023
1 parent ff16134 commit b1ea455
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/vlossom/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { App } from 'vue';
import type { VlossomOptions } from '@/declaration/types';
import { Vlossom } from './vlossom';
import * as VsComponents from '@/components';

let vlossom: Vlossom;

Expand All @@ -11,9 +12,9 @@ export function createVlossom(options?: VlossomOptions) {

app.config.globalProperties.$vlossom = vlossom;

// Object.values(VsComponents).forEach((component) => {
// app.use(component);
// });
Object.values(VsComponents).forEach((component) => {
app.use(component);
});
},
};
}
Expand Down

0 comments on commit b1ea455

Please sign in to comment.