Skip to content

Commit

Permalink
feat: add tabs and bottom nav
Browse files Browse the repository at this point in the history
todo: figure out a cleaner approach
  • Loading branch information
rigor789 committed Jul 16, 2020
1 parent b7900aa commit 7540b94
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/runtime/src/resolveAssets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
Component,
resolveComponent as _resolveComponent,
} from '@vue/runtime-core'
import { ActionBar, isKnownView } from '.'
import { ActionBar, BottomNavigation, isKnownView, Tabs } from '.'

export function resolveComponent(name: string): Component | string | undefined {
// in the standalone compiler, everything is treated as a component because we don't
Expand All @@ -18,6 +18,12 @@ export function resolveComponent(name: string): Component | string | undefined {
if (name === 'ActionBar') {
return ActionBar
}
if (name === 'Tabs') {
return Tabs
}
if (name === 'BottomNavigation') {
return BottomNavigation
}

return _resolveComponent(name)
}

0 comments on commit 7540b94

Please sign in to comment.