Skip to content

Commit 1c9f9c1

Browse files
committed
feat: split components and layout
1 parent d4bf8a0 commit 1c9f9c1

File tree

8 files changed

+12
-2
lines changed

8 files changed

+12
-2
lines changed
Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
import Layout from './components/Layout.vue'
1+
import type { App } from 'vue'
2+
import NqCard from './components/NqCard.vue'
3+
import NqGrid from './components/NqGrid.vue'
4+
import NqLargeCard from './components/NqLargeCard.vue'
5+
import Layout from './layout/Layout.vue'
26

3-
export { Layout }
7+
export { Layout, NqCard, NqGrid, NqLargeCard }
48
export * from './types'
9+
10+
export function registerNqComponents(app: App) {
11+
app.component('NqCard', NqCard)
12+
app.component('NqLargeCard', NqLargeCard)
13+
app.component('NqGrid', NqGrid)
14+
}

0 commit comments

Comments
 (0)